From daed107ce188c6ae53a3d612de58885f23b7257e Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 25 Jul 2011 14:54:41 +0100 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/cooker.py') 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: 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 @@ -328,7 +330,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: @@ -1060,7 +1062,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: -- cgit v1.2.3-54-g00ecf