summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/taskdata.py
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-03-14 11:44:34 +0000
committerRichard Purdie <richard@openedhand.com>2008-03-14 11:44:34 +0000
commit853280f161ed24f9b976a6f53739c08ac2362ddb (patch)
treeae67e05e66c92dd3fc668b1976084a628bc99882 /bitbake/lib/bb/taskdata.py
parent097076da2349e638342e69e465c85683adb6ccc7 (diff)
downloadpoky-853280f161ed24f9b976a6f53739c08ac2362ddb.tar.gz
bitbake: Update with changes from bitbake 1.8 branch
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4006 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/taskdata.py')
-rw-r--r--bitbake/lib/bb/taskdata.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py
index 4a79e7a56d..0fb34ad748 100644
--- a/bitbake/lib/bb/taskdata.py
+++ b/bitbake/lib/bb/taskdata.py
@@ -150,7 +150,7 @@ class TaskData:
150 ids = [] 150 ids = []
151 for dep in task_deps['depends'][task].split(): 151 for dep in task_deps['depends'][task].split():
152 if dep: 152 if dep:
153 ids.append(str(self.getbuild_id(dep.split(":")[0])) + ":" + dep.split(":")[1]) 153 ids.append(((self.getbuild_id(dep.split(":")[0])), dep.split(":")[1]))
154 self.tasks_idepends[taskid].extend(ids) 154 self.tasks_idepends[taskid].extend(ids)
155 155
156 # Work out build dependencies 156 # Work out build dependencies
@@ -167,11 +167,11 @@ class TaskData:
167 rdepends = dataCache.rundeps[fn] 167 rdepends = dataCache.rundeps[fn]
168 rrecs = dataCache.runrecs[fn] 168 rrecs = dataCache.runrecs[fn]
169 for package in rdepends: 169 for package in rdepends:
170 for rdepend in rdepends[package]: 170 for rdepend in bb.utils.explode_deps(rdepends[package]):
171 bb.msg.debug(2, bb.msg.domain.TaskData, "Added runtime dependency %s for %s" % (rdepend, fn)) 171 bb.msg.debug(2, bb.msg.domain.TaskData, "Added runtime dependency %s for %s" % (rdepend, fn))
172 rdependids[self.getrun_id(rdepend)] = None 172 rdependids[self.getrun_id(rdepend)] = None
173 for package in rrecs: 173 for package in rrecs:
174 for rdepend in rrecs[package]: 174 for rdepend in bb.utils.explode_deps(rrecs[package]):
175 bb.msg.debug(2, bb.msg.domain.TaskData, "Added runtime recommendation %s for %s" % (rdepend, fn)) 175 bb.msg.debug(2, bb.msg.domain.TaskData, "Added runtime recommendation %s for %s" % (rdepend, fn))
176 rdependids[self.getrun_id(rdepend)] = None 176 rdependids[self.getrun_id(rdepend)] = None
177 self.rdepids[fnid] = rdependids.keys() 177 self.rdepids[fnid] = rdependids.keys()
@@ -458,8 +458,6 @@ class TaskData:
458 """ 458 """
459 if fnid in self.failed_fnids: 459 if fnid in self.failed_fnids:
460 return 460 return
461 if not missing_list:
462 missing_list = [fnid]
463 bb.msg.debug(1, bb.msg.domain.Provider, "File '%s' is unbuildable, removing..." % self.fn_index[fnid]) 461 bb.msg.debug(1, bb.msg.domain.Provider, "File '%s' is unbuildable, removing..." % self.fn_index[fnid])
464 self.failed_fnids.append(fnid) 462 self.failed_fnids.append(fnid)
465 for target in self.build_targets: 463 for target in self.build_targets:
@@ -487,6 +485,12 @@ class TaskData:
487 dependees = self.get_dependees(targetid) 485 dependees = self.get_dependees(targetid)
488 for fnid in dependees: 486 for fnid in dependees:
489 self.fail_fnid(fnid, missing_list) 487 self.fail_fnid(fnid, missing_list)
488 for taskid in range(len(self.tasks_idepends)):
489 idepends = self.tasks_idepends[taskid]
490 for (idependid, idependtask) in idepends:
491 if idependid == targetid:
492 self.fail_fnid(self.tasks_fnid[taskid], missing_list)
493
490 if self.abort and targetid in self.external_targets: 494 if self.abort and targetid in self.external_targets:
491 bb.msg.error(bb.msg.domain.Provider, "Required build target '%s' has no buildable providers.\nMissing or unbuildable dependency chain was: %s" % (self.build_names_index[targetid], missing_list)) 495 bb.msg.error(bb.msg.domain.Provider, "Required build target '%s' has no buildable providers.\nMissing or unbuildable dependency chain was: %s" % (self.build_names_index[targetid], missing_list))
492 raise bb.providers.NoProvider 496 raise bb.providers.NoProvider