[OE-core] [PATCH] shadow: use config 'attr' if distro has 'xattr'

jobol at nonadev.net jobol at nonadev.net
Tue Mar 7 12:52:42 UTC 2017


From: José Bollo <jose.bollo at iot.bzh>

When DISTRO_FEATURES has 'xattr' the shadow package
now automatically activates its config 'attr'.
The current implmentation is a copy of what is
made currently for libcap.

Change-Id: Ie2a8469bc18b8ca7a067caf83413a28f8bcfbc84
Signed-off-by: José Bollo <jose.bollo at iot.bzh>
---
 meta/recipes-extended/shadow/shadow.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index 99ffac3..e59ff64 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -74,7 +74,8 @@ PAM_PLUGINS = "libpam-runtime \
                pam-plugin-shells \
                pam-plugin-rootok"
 
-PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}"
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
+                   ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}"
 PACKAGECONFIG_class-native = ""
 PACKAGECONFIG_class-nativesdk = ""
 PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}"
-- 
2.9.3




More information about the Openembedded-core mailing list