* [PATCH 0/1] print clear message for "bitbake -e ASSUME_PROVIDED"
@ 2012-11-06 12:18 Robert Yang
2012-11-06 12:18 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2012-11-06 12:18 UTC (permalink / raw)
To: bitbake-devel; +Cc: Zhenfeng.Zhao
The following changes since commit 78983e939ab17f02f8911c8b0d0e326b419856b9:
lib/oe/classextend: Ensure we don't extend expressions more than once (2012-11-06 09:34:47 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib robert/assume
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/assume
Robert Yang (1):
print clear message for "bitbake -e ASSUME_PROVIDED"
bitbake/lib/bb/cooker.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
--
1.7.7
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] print clear message for "bitbake -e ASSUME_PROVIDED"
2012-11-06 12:18 [PATCH 0/1] print clear message for "bitbake -e ASSUME_PROVIDED" Robert Yang
@ 2012-11-06 12:18 ` Robert Yang
0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2012-11-06 12:18 UTC (permalink / raw)
To: bitbake-devel; +Cc: Zhenfeng.Zhao
"bitbake -e ASSUME_PROVIDED" should fail, but the error message wasn't
clear enough in the past:
$ bitbake -e bzip2-native
[snip]
ERROR: Command execution failed: Traceback (most recent call last):
File "/buildarea/lyang1/poky/bitbake/lib/bb/command.py", line 94, in
runAsyncCommand
commandmethod(self.cmds_async, self, options)
File "/buildarea/lyang1/poky/bitbake/lib/bb/command.py", line 323, in
showEnvironmentTarget
command.cooker.showEnvironment(None, pkg)
File "/buildarea/lyang1/poky/bitbake/lib/bb/cooker.py", line 325, in
showEnvironment
fnid = taskdata.build_targets[targetid][0]
KeyError: 0
[snip]
With this patch, the massage will be:
[snip]
ERROR: bzip2-native is in ASSUME_PROVIDED
ERROR: Command execution failed: Exited with 1
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
[YOCTO #3392]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
bitbake/lib/bb/cooker.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index e299059..5f88f1f 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -313,6 +313,10 @@ class BBCooker:
elif len(pkgs_to_build) == 1:
self.updateCache()
+ ignore = self.configuration.data.getVar("ASSUME_PROVIDED", True) or ""
+ if pkgs_to_build[0] in set(ignore.split()):
+ bb.fatal("%s is in ASSUME_PROVIDED" % pkgs_to_build[0])
+
localdata = data.createCopy(self.configuration.data)
bb.data.update_data(localdata)
bb.data.expandKeys(localdata)
--
1.7.7
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-06 16:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-06 12:18 [PATCH 0/1] print clear message for "bitbake -e ASSUME_PROVIDED" Robert Yang
2012-11-06 12:18 ` [PATCH 1/1] " Robert Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.