Skip to contentSkip to conversation

coreutils: add pkgconfig for selinux

PATCH In review Yu, Mingli 2 participants 4 messages Sep 8, 2021 – Sep 10, 2021

lore
Share & tools
lore

Yu, Mingli

author
#0 lore raw

PATCH 1/3 coreutils: add pkgconfig for selinux

From: Mingli Yu <[email protected]>

Add pkgconfig setting for selinux.

---
 meta/recipes-core/coreutils/coreutils_8.32.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/coreutils/coreutils_8.32.bb +1 -0
index f82572ed52..01acf9a874 100644
@@ -52,6 +52,7 @@ PACKAGECONFIG:class-nativesdk ??= "xattr"
 PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"
 PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr,"
 PACKAGECONFIG[single-binary] = "--enable-single-binary,--disable-single-binary,,"
+PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
 
 # [ df mktemp nice printenv base64 gets a special treatment and is not included in this
 bindir_progs = "arch basename chcon cksum comm csplit cut dir dircolors dirname du \
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/3 findutils: add pkgconfig for selinux

From: Mingli Yu <[email protected]>

Add pkgconfig setting for selinux.

---
 meta/recipes-extended/findutils/findutils_4.8.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-extended/findutils/findutils_4.8.0.bb +1 -0
index 675e53c0da..d8ccf4b8e1 100644
@@ -8,6 +8,7 @@ DEPENDS = "bison-native"
 
 SRC_URI[sha256sum] = "57127b7e97d91282c6ace556378d5455a9509898297e46e10443016ea1387164"
 
+PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
 # http://savannah.gnu.org/bugs/?27299
 CACHED_CONFIGUREVARS += "gl_cv_func_wcwidth_works=yes"
 
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH 3/3 tar: add pkgconfig for selinux

In reply to Yu, Mingli

From: Mingli Yu <[email protected]>

Add pkgconfig setting for selinux.

---
 meta/recipes-extended/tar/tar_1.34.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-extended/tar/tar_1.34.bb +1 -0
index 98755a11cc..a6a417a1a5 100644
@@ -16,6 +16,7 @@ PACKAGECONFIG ??= ""
 PACKAGECONFIG:append:class-target = " ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)}"
 
 PACKAGECONFIG[acl] = "--with-posix-acls,--without-posix-acls,acl"
+PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
 
 EXTRA_OECONF += "DEFAULT_RMT_DIR=${sbindir}"
 
Signature · 1 line
2.17.1
#3 lore raw

Re: [OE-core] [PATCH 3/3] tar: add pkgconfig for selinux

Quoted 14 lines · Mingli

From: Mingli Yu <[email protected]>

Add pkgconfig setting for selinux.

---
 meta/recipes-extended/tar/tar_1.34.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-extended/tar/tar_1.34.bb +0 -0
index 98755a11cc..a6a417a1a5 100644

meta/recipes-extended/tar/tar_1.34.bb PACKAGECONFIG ??= "" · line 22

Quoted 7 lines
meta/recipes-extended/tar/tar_1.34.bb +1 -0
@@ -16,6 +16,7 @@ PACKAGECONFIG ??= ""
 PACKAGECONFIG:append:class-target = " ${@bb.utils.filter('DISTRO_FEATURES', 'acl', d)}"
 
 PACKAGECONFIG[acl] = "--with-posix-acls,--without-posix-acls,acl"
+PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
 
 EXTRA_OECONF += "DEFAULT_RMT_DIR=${sbindir}"
 

This breaks one of the selftests, you could reproduce with

oe-selftest -r oescripts.OEListPackageconfigTests.test_packageconfig_flags_default

however I've added a patch to fix it.

Cheers,

Richard