shadow: use config 'attr' if distro has 'xattr'
PATCH 1/1 shadow: use config 'attr' if distro has 'xattr'
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.
--- meta/recipes-extended/shadow/shadow.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0
b/meta/recipes-extended/shadow/shadow.inc index 99ffac3..e59ff64 100644
meta/recipes-extended/shadow/shadow.inc +2 -1
@@ -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}"
Signature · 1 line
2.9.3
Quoted 5 lines · José Bollo
When
DISTRO_FEATUREShas 'xattr' the shadow package now automatically activates its config 'attr'. The current implmentation is a copy of what is made currently for libcap.
The formatting of the patch is a bit messed up (looks like you copy/pasted), and can you send this to [email protected] instead please.
Ross