diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-07-25 14:54:41 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-27 16:54:04 +0100 |
commit | daed107ce188c6ae53a3d612de58885f23b7257e (patch) | |
tree | 5ae56653c3b71b6c23d3aba01c4b6abafd27b16f /bitbake/lib/bb/cooker.py | |
parent | 60218d19f7c3651908e352e5e001257fd34d138b (diff) | |
download | poky-daed107ce188c6ae53a3d612de58885f23b7257e.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]
(Bitbake rev: 6765218430e31c165888f26fbc75023c89a6eab2)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 9d0a6d49b5..33b684fbd8 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -59,11 +59,13 @@ class state: | |||
59 | 59 | ||
60 | class SkippedPackage: | 60 | class SkippedPackage: |
61 | def __init__(self, info = None, reason = None): | 61 | def __init__(self, info = None, reason = None): |
62 | self.pn = None | ||
62 | self.skipreason = None | 63 | self.skipreason = None |
63 | self.provides = None | 64 | self.provides = None |
64 | self.rprovides = None | 65 | self.rprovides = None |
65 | 66 | ||
66 | if info: | 67 | if info: |
68 | self.pn = info.pn | ||
67 | self.skipreason = info.skipreason | 69 | self.skipreason = info.skipreason |
68 | self.provides = info.provides | 70 | self.provides = info.provides |
69 | self.rprovides = info.rprovides | 71 | self.rprovides = info.rprovides |
@@ -328,7 +330,7 @@ class BBCooker: | |||
328 | bb.data.expandKeys(localdata) | 330 | bb.data.expandKeys(localdata) |
329 | # We set abort to False here to prevent unbuildable targets raising | 331 | # We set abort to False here to prevent unbuildable targets raising |
330 | # an exception when we're just generating data | 332 | # an exception when we're just generating data |
331 | taskdata = bb.taskdata.TaskData(False) | 333 | taskdata = bb.taskdata.TaskData(False, skiplist=self.skiplist) |
332 | 334 | ||
333 | runlist = [] | 335 | runlist = [] |
334 | for k in pkgs_to_build: | 336 | for k in pkgs_to_build: |
@@ -1060,7 +1062,7 @@ class BBCooker: | |||
1060 | bb.data.update_data(localdata) | 1062 | bb.data.update_data(localdata) |
1061 | bb.data.expandKeys(localdata) | 1063 | bb.data.expandKeys(localdata) |
1062 | 1064 | ||
1063 | taskdata = bb.taskdata.TaskData(self.configuration.abort) | 1065 | taskdata = bb.taskdata.TaskData(self.configuration.abort, skiplist=self.skiplist) |
1064 | 1066 | ||
1065 | runlist = [] | 1067 | runlist = [] |
1066 | for k in targets: | 1068 | for k in targets: |