[oe-commits] [openembedded-core] 17/29: base.bbclass: add dependency on pseudo from do_prepare_recipe_sysroot

git at git.openembedded.org git at git.openembedded.org
Tue Jan 28 11:51:59 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch warrior
in repository openembedded-core.

commit 86f196dc077de7f3f6664e69703a96245b42ddc0
Author: Mattias Hansson <mattias.hansson at axis.com>
AuthorDate: Fri Jan 17 19:14:33 2020 +0200

    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.
    
    Signed-off-by: Mattias Hansson <mattihn at axis.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Anuj Mittal <anuj.mittal at intel.com>
    Signed-off-by: Adrian Bunk <bunk at stusta.de>
---
 meta/classes/base.bbclass | 1 +
 1 file changed, 1 insertion(+)

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 () {
     # 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')

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list