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 <[email protected]>

Tested-by: Fabien Lahoudere <[email protected]>

> ---
>  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
> 
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to