summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMaxin B. John <maxin.john@intel.com>2017-10-12 11:09:07 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-10-16 23:52:43 +0100
commit06178f64eebdd5cdce4bb8b81f79b4d552af6c0a (patch)
treed2dead9c889a6a4efc7aa54e5be89db7ff199e11 /meta
parent5cb096ba2b3cdddc4d28bd59761e5503271f9240 (diff)
downloadpoky-06178f64eebdd5cdce4bb8b81f79b4d552af6c0a.tar.gz
sstate.bbclass: provide an exception for useradd scenario
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] (From OE-Core rev: 979699b55214933e0f11727a2fb9bfda8a3a3870) Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sstate.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 2a54993d1d..e30fbe1280 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -967,7 +967,8 @@ def setscene_depvalid(task, taskdependees, notneeded, d, log=None):
967 if isNativeCross(taskdependees[dep][0]): 967 if isNativeCross(taskdependees[dep][0]):
968 return False 968 return False
969 # Native/cross tools depended upon by target sysroot are not needed 969 # Native/cross tools depended upon by target sysroot are not needed
970 if isNativeCross(taskdependees[task][0]): 970 # Add an exception for shadow-native as required by useradd.bbclass
971 if isNativeCross(taskdependees[task][0]) and taskdependees[task][0] != 'shadow-native':
971 continue 972 continue
972 # Target populate_sysroot need their dependencies 973 # Target populate_sysroot need their dependencies
973 return False 974 return False