]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: add dependency on pseudo from do_prepare_recipe_sysroot
authorMattias Hansson <mattias.hansson@axis.com>
Tue, 15 Oct 2019 08:00:15 +0000 (10:00 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Oct 2019 15:56:26 +0000 (16:56 +0100)
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.

Signed-off-by: Mattias Hansson <mattihn@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass

index d3184ecf7bb2381070cb5899d4f69be7aff3686f..1cea3a2213883a333ddaaf2d8fd10232ca6a8c47 100644 (file)
@@ -482,6 +482,7 @@ python () {
     # If we're building a target package we need to use fakeroot (pseudo)
     # in order to capture permissions, owners, groups and special files
     if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
+        d.appendVarFlag('do_prepare_recipe_sysroot', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
         d.setVarFlag('do_unpack', 'umask', '022')
         d.setVarFlag('do_configure', 'umask', '022')
         d.setVarFlag('do_compile', 'umask', '022')