Skip to contentSkip to conversation

shadow: use config 'attr' if distro has 'xattr'

PATCH In review José Bollo 2 participants 2 messages Mar 6, 2017

lore
Share & tools
lore
#0 lore raw

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.

Change-Id Ie2a8469bc18b8ca7a067caf83413a28f8bcfbc84
---
 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
#1 lore raw
Quoted 5 lines · José Bollo

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.

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