* [PATCH] sstate.bbclass: provide an exception for useradd scenario
@ 2017-10-12 8:09 Maxin B. John
2017-10-12 9:26 ` Fabien Lahoudere
0 siblings, 1 reply; 2+ messages in thread
From: Maxin B. John @ 2017-10-12 8:09 UTC (permalink / raw)
To: openembedded-core
Packages, which depend on users/groups created from other packages,
needs "shadow-native" as a build time dependency. So, add an exception
to the "shadow-native" from otherwise discarded native/cross tools
dependency.
Fixes [YOCTO #11960]
Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
meta/classes/sstate.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 2a54993..e30fbe1 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -967,7 +967,8 @@ def setscene_depvalid(task, taskdependees, notneeded, d, log=None):
if isNativeCross(taskdependees[dep][0]):
return False
# Native/cross tools depended upon by target sysroot are not needed
- if isNativeCross(taskdependees[task][0]):
+ # Add an exception for shadow-native as required by useradd.bbclass
+ if isNativeCross(taskdependees[task][0]) and taskdependees[task][0] != 'shadow-native':
continue
# Target populate_sysroot need their dependencies
return False
--
2.4.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sstate.bbclass: provide an exception for useradd scenario
2017-10-12 8:09 [PATCH] sstate.bbclass: provide an exception for useradd scenario Maxin B. John
@ 2017-10-12 9:26 ` Fabien Lahoudere
0 siblings, 0 replies; 2+ messages in thread
From: Fabien Lahoudere @ 2017-10-12 9:26 UTC (permalink / raw)
To: openembedded-core
I test this patch fix and it fix user issue on my project.
On Thu, 2017-10-12 at 11:09 +0300, Maxin B. John wrote:
> Packages, which depend on users/groups created from other packages,
> needs "shadow-native" as a build time dependency. So, add an exception
> to the "shadow-native" from otherwise discarded native/cross tools
> dependency.
>
> Fixes [YOCTO #11960]
>
> Signed-off-by: Maxin B. John <maxin.john@intel.com>
Tested-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
> ---
> meta/classes/sstate.bbclass | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> index 2a54993..e30fbe1 100644
> --- a/meta/classes/sstate.bbclass
> +++ b/meta/classes/sstate.bbclass
> @@ -967,7 +967,8 @@ def setscene_depvalid(task, taskdependees, notneeded, d, log=None):
> if isNativeCross(taskdependees[dep][0]):
> return False
> # Native/cross tools depended upon by target sysroot are not needed
> - if isNativeCross(taskdependees[task][0]):
> + # Add an exception for shadow-native as required by useradd.bbclass
> + if isNativeCross(taskdependees[task][0]) and taskdependees[task][0] != 'shadow-
> native':
> continue
> # Target populate_sysroot need their dependencies
> return False
> --
> 2.4.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-12 9:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-12 8:09 [PATCH] sstate.bbclass: provide an exception for useradd scenario Maxin B. John
2017-10-12 9:26 ` Fabien Lahoudere
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.