[oe-commits] [openembedded-core] 07/07: base.bbclass: Use bb.event.ParseStarted for HOSTTOOLS

git at git.openembedded.org git at git.openembedded.org
Mon Jan 28 14:10:02 UTC 2019


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

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

commit 4f68ae790181f04a578f35ea16714599e1622c8e
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Mon Jan 28 17:19:23 2019 +0800

    base.bbclass: Use bb.event.ParseStarted for HOSTTOOLS
    
    Fixed:
    $ export BB_SERVER_TIMEOUT=-1
    $ bitbake quilt-native
    $ rm -fr tmp
    $ bitbake quilt-native
    ERROR: Error running gcc  --version: /bin/sh: gcc: command not found
    
    This is because bb.event.ConfigParsed fires only once when server is running,
    but bb.event.ParseStarted fires every time when build configs are changed, so
    use bb.event.ParseStarted to fix the problem.
    
    [YOCTO #13022]
    
    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/base.bbclass | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index f1a3c0e..c273a29 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -220,11 +220,18 @@ def buildcfg_neededvars(d):
         bb.fatal('The following variable(s) were not set: %s\nPlease set them directly, or choose a MACHINE or DISTRO that sets them.' % ', '.join(pesteruser))
 
 addhandler base_eventhandler
-base_eventhandler[eventmask] = "bb.event.ConfigParsed bb.event.MultiConfigParsed bb.event.BuildStarted bb.event.RecipePreFinalise bb.runqueue.sceneQueueComplete bb.event.RecipeParsed"
+base_eventhandler[eventmask] = "\
+	bb.event.ParseStarted \
+	bb.event.MultiConfigParsed \
+	bb.event.BuildStarted \
+	bb.event.RecipePreFinalise \
+	bb.runqueue.sceneQueueComplete \
+	bb.event.RecipeParsed \
+"
 python base_eventhandler() {
     import bb.runqueue
 
-    if isinstance(e, bb.event.ConfigParsed):
+    if isinstance(e, bb.event.ParseStarted):
         if not d.getVar("NATIVELSBSTRING", False):
             d.setVar("NATIVELSBSTRING", lsb_distro_identifier(d))
         d.setVar('BB_VERSION', bb.__version__)

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


More information about the Openembedded-commits mailing list