Skip to contentSkip to conversation

uutils-coreutils: Simplify configuration of selinux support

PATCH New Peter Kjellerstedt 1 participant 1 message Apr 24, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uutils-coreutils: Simplify configuration of selinux support

Also correct a comment.

---
 .../uutils-coreutils/uutils-coreutils_0.0.30.bb           | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.30.bb +2 -6
index cc4be305d1..f209ea1778 100644
@@ -23,17 +23,13 @@ PROVIDES = "coreutils"
 RPROVIDES:${PN} = "coreutils"
 
 PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
-
-PACKAGECONFIG[selinux] = ",,libselinux"
+PACKAGECONFIG[selinux] = "--features feat_selinux,,clang-native libselinux-native libselinux"
 
 CARGO_BUILD_FLAGS += "--features unix"
-CARGO_BUILD_FLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'selinux', '--features feat_selinux', '', d)}"
-
-DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'selinux', 'clang-native libselinux-native', '', d)}"
 
 # The code which follows is strongly inspired from the GNU coreutils bitbake recipe:
 
-# [ df mktemp nice printenv base64 gets a special treatment and is not included in this
+# df mktemp nice printenv base32 base64 get a special treatment and are not included in this
 bindir_progs = "[ arch basename cksum comm csplit cut dir dircolors dirname du \
                 env expand expr factor fmt fold groups head hostid id install \
                 join link logname md5sum mkfifo nl nohup nproc od paste pathchk \