* [PATCH] shadow: use config 'attr' if distro has 'xattr'
@ 2017-03-07 12:52 jobol
0 siblings, 0 replies; 3+ messages in thread
From: jobol @ 2017-03-07 12:52 UTC (permalink / raw)
To: openembedded-core; +Cc: José Bollo
From: José Bollo <jose.bollo@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@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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] shadow: use config 'attr' if distro has 'xattr'
2017-03-06 17:50 José Bollo
@ 2017-03-06 19:35 ` Burton, Ross
0 siblings, 0 replies; 3+ messages in thread
From: Burton, Ross @ 2017-03-06 19:35 UTC (permalink / raw)
To: José Bollo; +Cc: Poky Project
[-- Attachment #1: Type: text/plain, Size: 429 bytes --]
On 6 March 2017 at 17:50, José Bollo <jose.bollo@iot.bzh> wrote:
> 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
openembedded-core@lists.openembedded.org instead please.
Ross
[-- Attachment #2: Type: text/html, Size: 912 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] shadow: use config 'attr' if distro has 'xattr'
@ 2017-03-06 17:50 José Bollo
2017-03-06 19:35 ` Burton, Ross
0 siblings, 1 reply; 3+ messages in thread
From: José Bollo @ 2017-03-06 17:50 UTC (permalink / raw)
To: poky
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@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-07 12:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-07 12:52 [PATCH] shadow: use config 'attr' if distro has 'xattr' jobol
-- strict thread matches above, loose matches on Subject: below --
2017-03-06 17:50 José Bollo
2017-03-06 19:35 ` Burton, Ross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.