summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMattias Hansson <mattias.hansson@axis.com>2019-12-14 14:14:59 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-16 23:08:51 +0000
commita2ab2dcf12bc1c819580d83a15c95af080233c06 (patch)
tree1a73cb34b3957d86a2dc2123628a71ec6e8faf6d /meta/classes
parent46aacaafae626f38f2df6e2fb0c677049f0aaefc (diff)
downloadpoky-a2ab2dcf12bc1c819580d83a15c95af080233c06.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: e20a67fe9cc7de042f39f3c39b74de61dc5c6dfe) 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: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 d3184ecf7b..1cea3a2213 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -482,6 +482,7 @@ python () {
482 # If we're building a target package we need to use fakeroot (pseudo) 482 # If we're building a target package we need to use fakeroot (pseudo)
483 # in order to capture permissions, owners, groups and special files 483 # in order to capture permissions, owners, groups and special files
484 if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d): 484 if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
485 d.appendVarFlag('do_prepare_recipe_sysroot', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
485 d.setVarFlag('do_unpack', 'umask', '022') 486 d.setVarFlag('do_unpack', 'umask', '022')
486 d.setVarFlag('do_configure', 'umask', '022') 487 d.setVarFlag('do_configure', 'umask', '022')
487 d.setVarFlag('do_compile', 'umask', '022') 488 d.setVarFlag('do_compile', 'umask', '022')