From: Pádraig Brady Date: Sat, 10 Jan 2026 19:12:41 +0000 (+0000) Subject: selinux-h: only override default --with-selinux user setting X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d8f0bb05cce3c76e81e35b31c0ef3f52171b8aa;p=thirdparty%2Fgnulib.git selinux-h: only override default --with-selinux user setting * m4/selinux-selinux-h.m4 (gl_LIBSELINUX): Only override the default with_selinux user setting, leaving explicit --with-selinux untouched. E.g., coreutils uses --with-selinux to force build the runcon and chcon stubs on systems without libselinux. --- diff --git a/ChangeLog b/ChangeLog index 3a70f44748..e0cccce475 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2026-01-10 Pádraig Brady + + selinux-h: only override default --with-selinux user setting + * m4/selinux-selinux-h.m4 (gl_LIBSELINUX): Only override the default + with_selinux user setting, leaving explicit --with-selinux untouched. + E.g., coreutils uses --with-selinux to force build the runcon + and chcon stubs on systems without libselinux. + 2026-01-09 Bruno Haible announce-gen: Fix instructions for verifying the SHA3-256 checksums. diff --git a/m4/selinux-selinux-h.m4 b/m4/selinux-selinux-h.m4 index 5b93446162..89c3c1582b 100644 --- a/m4/selinux-selinux-h.m4 +++ b/m4/selinux-selinux-h.m4 @@ -92,6 +92,8 @@ AC_DEFUN([gl_LIBSELINUX], AC_MSG_WARN([This system supports SELinux but libselinux is missing.]) AC_MSG_WARN([AC_PACKAGE_NAME will be compiled without SELinux support.]) fi - with_selinux=no + if test "$with_selinux" = maybe; then + with_selinux=no + fi fi ])