summaryrefslogtreecommitdiffstats
path: root/lib/bb/cooker.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-07-25 14:54:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-27 16:53:03 +0100
commit6765218430e31c165888f26fbc75023c89a6eab2 (patch)
treef6d07a6260bd87c040a71b6e1355f641be5c991d /lib/bb/cooker.py
parentfb47c7452455f3f8d943b21dd61300ec55eea141 (diff)
downloadbitbake-6765218430e31c165888f26fbc75023c89a6eab2.tar.gz
bitbake: show more information for NoProvider errors
"Nothing PROVIDES" errors often come up when a recipe has been skipped for some reason, and therefore it is useful to print out that reason information when showing the error so that the user understands why the error has occurred. Given that we already feed the reason information into the skiplist for various situations (COMMERCIAL_LICENSE, COMPATIBLE_MACHINE etc.) this should now output a useful error message for skipped recipes. Fixes [YOCTO #846], [YOCTO #1127] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r--lib/bb/cooker.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 146c211ff..025dfe415 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -59,11 +59,13 @@ class state:
class SkippedPackage:
def __init__(self, info = None, reason = None):
+ self.pn = None
self.skipreason = None
self.provides = None
self.rprovides = None
if info:
+ self.pn = info.pn
self.skipreason = info.skipreason
self.provides = info.provides
self.rprovides = info.rprovides
@@ -322,7 +324,7 @@ class BBCooker:
bb.data.expandKeys(localdata)
# We set abort to False here to prevent unbuildable targets raising
# an exception when we're just generating data
- taskdata = bb.taskdata.TaskData(False)
+ taskdata = bb.taskdata.TaskData(False, skiplist=self.skiplist)
runlist = []
for k in pkgs_to_build:
@@ -1053,7 +1055,7 @@ class BBCooker:
bb.data.update_data(localdata)
bb.data.expandKeys(localdata)
- taskdata = bb.taskdata.TaskData(self.configuration.abort)
+ taskdata = bb.taskdata.TaskData(self.configuration.abort, skiplist=self.skiplist)
runlist = []
for k in targets: