From: José Bollo Date: Tue, 7 Mar 2017 12:52:42 +0000 (+0100) Subject: shadow: use config 'attr' if distro has 'xattr' X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~22159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=860c941741ca57bdc6fdbb67ea3ad94bb8d08c16;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git shadow: use config 'attr' if distro has 'xattr' When DISTRO_FEATURES has 'xattr' the shadow package now automatically activates its config 'attr'. Signed-off-by: José Bollo Signed-off-by: Ross Burton --- diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index 99ffac35d13..e59ff640e37 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}"