summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Hansson <mattias.hansson@axis.com>2020-01-17 17:14:33 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-28 11:15:01 (GMT)
commitee756983714fd0657ceaac77ddae05578db2c36a (patch)
tree1a897f5ef0c0b8af63bf64a63cab0c19c62b7962
parent47de27d7344b07be8f6a6b48f92e6a47bb65a936 (diff)
downloadpoky-ee756983714fd0657ceaac77ddae05578db2c36a.tar.gz
base.bbclass: add dependency on pseudo from do_prepare_recipe_sysroot
do_prepare_recipe_sysroot may perform groupadd, which requires pseudo. However, do_prepare_recipe_sysroot does not depend on pseudo explicitly, which sometimes causes a build error when building a recipe that adds groups. This issue only occurs when executing do_prepare_recipe_sysroot for a recipe that adds groups before finishing a task that depends on pseudo for a recipe that doesn't add groups. (From OE-Core rev: 86f196dc077de7f3f6664e69703a96245b42ddc0) Signed-off-by: Mattias Hansson <mattihn@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/base.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 1636c6e..d6f566a 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -476,6 +476,7 @@ python () {
476 # If we're building a target package we need to use fakeroot (pseudo) 476 # If we're building a target package we need to use fakeroot (pseudo)
477 # in order to capture permissions, owners, groups and special files 477 # in order to capture permissions, owners, groups and special files
478 if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d): 478 if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
479 d.appendVarFlag('do_prepare_recipe_sysroot', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
479 d.setVarFlag('do_unpack', 'umask', '022') 480 d.setVarFlag('do_unpack', 'umask', '022')
480 d.setVarFlag('do_configure', 'umask', '022') 481 d.setVarFlag('do_configure', 'umask', '022')
481 d.setVarFlag('do_compile', 'umask', '022') 482 d.setVarFlag('do_compile', 'umask', '022')