From: Pádraig Brady Date: Sat, 10 Jan 2026 16:37:13 +0000 (+0000) Subject: build: support 'dist' and 'syntax-check' targets without libselinux X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01993d76bc6c14004200c5a4c00bb9a1881514ea;p=thirdparty%2Fcoreutils.git build: support 'dist' and 'syntax-check' targets without libselinux Following on from commit v9.8-60-g8ba47d09a ... Without libselinux installed, runcon and chcon stub binaries will not be built by default. We separate these utilities out to a separate "not built unless appropriate" class, so that we can add these to EXTRA_MANS so that the 'check-x-vs-1' target doesn't fail, and the 'dist' target includes these man pages. * build-aux/gen-lists-of-programs.sh: Separate out build_if_appropriate_progs, and propagate that through to no_install_progs_default which populates EXTRA_MANS. * src/local.mk: Separate out build_if_appropriate__progs for clarity and consistency. --- diff --git a/build-aux/gen-lists-of-programs.sh b/build-aux/gen-lists-of-programs.sh index 1892b1aebe..5d307219aa 100755 --- a/build-aux/gen-lists-of-programs.sh +++ b/build-aux/gen-lists-of-programs.sh @@ -26,20 +26,26 @@ disabled_by_default_progs=' # Programs that can be built only when certain requisite system # features are detected at configure time. build_if_possible_progs=' - chcon chroot df hostid libstdbuf.so nice pinky - runcon stdbuf stty timeout users who ' +# Programs that are built only when certain requisite system +# features are detected at configure time. I.e., they can +# be built on all systems, but are only effective on some. +# These will be built to create man pages for distribution. +build_if_appropriate_progs=' + chcon + runcon +' # All the other programs, to be built by default, and that should # be buildable without problems on any target system. @@ -149,7 +155,8 @@ case $#,$1 in echo "gl_ADD_PROG([optional_bin_progs], [$p])" done # Extra 'echo' to normalize whitespace. - echo "no_install_progs_default='`echo $disabled_by_default_progs`'" + echo "no_install_progs_default='`echo $disabled_by_default_progs \ + $build_if_appropriate_progs`'" sed 's/^ *//' <