Skip to content

check-package: warn about symbols not recognized by a package infra, support inline flags

Angelo Compagnucci buildroot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest15 patches 3 repliesIn review

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15utils/check-package: factor-out check_disabled()utils/check-package utils/checkpackagelib/base.py utils/checkpackagelib/test_base.py +1 more+60 -30 replies
2/15utils/check-package: support inline flagsutils/checkpackagelib/base.py utils/checkpackagelib/test_base.py+99 -30 replies
3/15utils/check-package: remove hard-coded list from lib_config:Indentpackage/Config.in package/Config.in.host package/kodi/Config.in +2 more+11 -50 replies
4/15package/andes-spi-burn: fix the license files variablepackage/andes-spi-burn/andes-spi-burn.hash package/andes-spi-burn/andes-spi-burn.mk+2 -20 replies
5/15package/fbv: drop the unused configure optionspackage/fbv/fbv.mk+1 -120 replies
6/15package/usbip: fix the configure options variablepackage/usbip/usbip.mk+1 -10 replies
7/15package/postgresql: drop the unused install-world optionspackage/postgresql/postgresql.mk+0 -21 reply
8/15package/libselinux: drop the unused make environmentpackage/libselinux/libselinux.mk+0 -30 replies
9/15package/zfs: drop the unused module subdirectoriespackage/zfs/zfs.mk+0 -121 reply
10/15package/mesa3d: drop the unused host Vulkan driverspackage/mesa3d/mesa3d.mk+0 -10 replies
11/15package/nxp-mwifiex: drop the unused make optionspackage/nxp-mwifiex/nxp-mwifiex.mk+0 -20 replies
12/15package/libglib2/libglib2-bootstrap: drop unused variablespackage/libglib2/libglib2-bootstrap/libglib2-bootstrap.mk+0 -31 reply
13/15package/linux-pam: fix linking with the NLS and atomic librariespackage/linux-pam/linux-pam.mk+1 -10 replies
14/15utils/check-package: warn about symbols not recognized by a package infra.checkpackageignore fs/initramfs/initramfs.mk linux/linux-ext-xenomai.mk +6 more+888 -50 replies
15/15utils/check-package: warn about disabled installutils/checkpackagelib/lib_mk.py utils/checkpackagelib/test_lib_mk.py+218 -00 replies

Reviews trailers per patch

3 of 15 patches have a Reviewed-by or Acked-by.

PatchAngelo CompagnucciMaxim KochetkovJosé Luis Salvador RufoFiona Klute
1/15Co-authored-by
2/15
3/15
4/15
5/15
6/15
7/15R-b
8/15
9/15R-b
10/15
11/15
12/15R-b
13/15
14/15Co-authored-by
15/15Co-authored-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [Buildroot] [PATCH v4 00/15] check-package: warn about symbols not recognized by a package infra, support inline flags

This series resurrects two check-package series sent by Ricardo Martincoski in 2023, which never got a review and have been sitting on patchwork since then:

- "check-package: warn about symbols not recognized by a package infra" (January 2023): the fixes of the tree and patch 29 were applied, but the two new checks, patches 27 and 28, were not;
- "check-package: support inline flags" v3 (September 2023), which lets a file enable special rules of a check with a comment, and removes the list of Config.in files hard-coded in lib_config:Indent.

Both are rebased on current master and sent together, since they touch the same code. This is v4 after the inline flags series; the two checks were only sent once, as v1.

Patches 1 to 3 are the inline flags series, with only a conflict solved in the first one.

Patches 14 and 15 are the two checks: TypoInVariableSuffix warns about variables that the package infra used in the file does not know and that nothing else uses, DisabledInstall about install hooks that never run because the installation step is disabled. After almost four years, the lists of variables known by each infra were outdated, and the checks gave about 250 warnings on the current tree, so they are updated in patch 14 with the variables added to the infras in the meantime.

The remaining warnings are all real problems: variables misspelled or left behind by conversions to another infra. Rather than adding these files to .checkpackageignore, patches 4 to 13 fix them, as the original series did with its first 24 patches, so that the checks can go in with no new entry in the ignore list but one:

- the license file of andes-spi-burn was never saved nor checked;
- the configure options of usbip were never passed;
- linux-pam has not been linked with libintl and libatomic since its move to meson, which breaks the build with an external libintl, as seen by the autobuilders (also in 2026.02.x);
- fbv, postgresql, libselinux, zfs, mesa3d, nxp-mwifiex and libglib2-bootstrap only had dead variables, removed with no change in the build.

The one entry left in .checkpackageignore is gcc-final: its m68k ColdFire libgcc fixup hook is registered under a wrong name since 2023, so it never runs, but fixing it changes the ColdFire internal toolchain and deserves its own patch and test.

This series supersedes the following patches, which can be marked as superseded on patchwork:

- [27/29] utils/check-package: warn about symbols not recognized by a package infra (patch 14 of this series)
https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/
- [28/29] utils/check-package: warn about disabled install (patch 15)
https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/
- [next,v3,1/3] utils/check-package: factor-out check_disabled() (patch 1)
https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/
- [next,v3,2/3] utils/check-package: support inline flags (patch 2)
https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/
- [next,v3,3/3] utils/check-package: remove hard-coded list from lib_config:Indent (patch 3)
https://patchwork.buildroot.org/project/buildroot/patch/[email protected]/

Each patch has its own "Changes" notes.

Angelo Compagnucci (10):
package/andes-spi-burn: fix the license files variable package/fbv: drop the unused configure options package/usbip: fix the configure options variable package/postgresql: drop the unused install-world options package/libselinux: drop the unused make environment package/zfs: drop the unused module subdirectories package/mesa3d: drop the unused host Vulkan drivers package/nxp-mwifiex: drop the unused make options package/libglib2/libglib2-bootstrap: drop unused variables package/linux-pam: fix linking with the NLS and atomic libraries

James Knight (1):
utils/check-package: remove hard-coded list from lib_config:Indent

Ricardo Martincoski (4):
utils/check-package: factor-out check_disabled() utils/check-package: support inline flags utils/check-package: warn about symbols not recognized by a package
infra
utils/check-package: warn about disabled install

 .checkpackageignore                           |   1 +
 fs/initramfs/initramfs.mk                     |   1 +
 linux/linux-ext-xenomai.mk                    |   2 +-
 package/Config.in                             |   2 +
 package/Config.in.host                        |   2 +
 package/andes-spi-burn/andes-spi-burn.hash    |   2 +-
 package/andes-spi-burn/andes-spi-burn.mk      |   2 +-
 package/fbv/fbv.mk                            |  13 +-
 package/kodi/Config.in                        |   2 +
 .../libglib2-bootstrap/libglib2-bootstrap.mk  |   3 -
 package/libselinux/libselinux.mk              |   3 -
 package/linux-pam/linux-pam.mk                |   2 +-
 package/luarocks/luarocks.mk                  |   2 +
 package/mesa3d/mesa3d.mk                      |   1 -
 package/nxp-mwifiex/nxp-mwifiex.mk            |   2 -
 package/postgresql/postgresql.mk              |   2 -
 package/usbip/usbip.mk                        |   2 +-
 package/x11r7/Config.in                       |   2 +
 package/zfs/zfs.mk                            |  12 -
 toolchain/toolchain.mk                        |   2 +
 utils/check-package                           |  21 +-
 utils/checkpackagelib/base.py                 |  21 +-
 utils/checkpackagelib/lib_config.py           |   8 +-
 utils/checkpackagelib/lib_mk.py               | 209 +++++++
 utils/checkpackagelib/pkg_infra.py            | 322 ++++++++++
 utils/checkpackagelib/test_base.py            | 131 +++++
 utils/checkpackagelib/test_lib_mk.py          | 555 ++++++++++++++++++
 utils/checkpackagelib/test_util.py            |   5 +-
 28 files changed, 1279 insertions(+), 53 deletions(-)
 create mode 100644 utils/checkpackagelib/pkg_infra.py
 create mode 100644 utils/checkpackagelib/test_base.py
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot