[meta-oe] augeas: add selinux to PACKAGECONFIG if enable selinux distro feature

Submitted by Yi Zhao on Aug. 13, 2021, 4:42 a.m. | Patch ID: 180061

Details

Message ID 20210813044213.125664-1-yi.zhao@windriver.com
State Accepted
Commit ed556a580a9fe7c93aaf78e1c025d8d8c0f5edab
Headers show

Commit Message

Yi Zhao Aug. 13, 2021, 4:42 a.m.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 meta-oe/recipes-support/augeas/augeas.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/meta-oe/recipes-support/augeas/augeas.inc b/meta-oe/recipes-support/augeas/augeas.inc
index 23a057135..d83ba493e 100644
--- a/meta-oe/recipes-support/augeas/augeas.inc
+++ b/meta-oe/recipes-support/augeas/augeas.inc
@@ -27,7 +27,7 @@  do_install:append() {
     rm -fr ${D}${datadir}/vim
 }
 
-PACKAGECONFIG ??= ""
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
 PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
 
 EXTRA_AUTORECONF += "-I ${S}/gnulib/m4"