Sorry, this patch doesn't work, it breaks fresh build's sanity check since
the hosttools are bot ready when run sanity check.
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker
(see sanity.conf).
Following is the list of potential problems / advisories:
Please install the following missing utilities: GNU make,C Compiler (gcc
),C++ Compiler (g++
),patch,diffstat,makeinfo,git,bzip2,tar,gzip,gawk,chrpath,wget,cpio,perl,file,which
Please ignore this patch.
// Robert
On 1/28/19 5:19 PM, Robert Yang wrote:
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.ParseStarted 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 <[email protected]>
---
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__)
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core