From 5e31831526cf5381f5c60041cadd150a9502aed4 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Thu, 24 Apr 2025 18:19:59 +0200 Subject: [PATCH] uutils-coreutils: Simplify configuration of selinux support Also correct a comment. Signed-off-by: Peter Kjellerstedt Signed-off-by: Khem Raj --- .../uutils-coreutils/uutils-coreutils_0.0.30.bb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.30.bb b/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.30.bb index cc4be305d1..f209ea1778 100644 --- a/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.30.bb +++ b/meta-oe/recipes-core/uutils-coreutils/uutils-coreutils_0.0.30.bb @@ -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 \