summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-01-05 23:52:36 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-01-05 23:52:36 +0000
commit32d2d4f60fa13cd6c4039e4eef158851ad001a7b (patch)
tree3c26c053f76847b14403287699fe186cc1a6c5ed
parent4a9408ef274bbf63620f137f4de2d3b9f17f372c (diff)
downloadbitbake-contrib-32d2d4f60fa13cd6c4039e4eef158851ad001a7b.tar.gz
runqueue.py: Disable task number acceleration since it can allow the tasks to run out of sequence
-rw-r--r--ChangeLog2
-rw-r--r--lib/bb/runqueue.py23
2 files changed, 14 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 02452110d..001ec1696 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -80,6 +80,8 @@ Changes in Bitbake 1.9.x:
- SRCREV handling updates, improvements and fixes from Poky
- Add bb.utils.lockfile() and bb.utils.unlockfile() from Poky
- Add support for task selfstamp and lockfiles flags
+ - Disable task number acceleration since it can allow the tasks to run
+ out of sequence
Changes in Bitbake 1.8.0:
- Release 1.7.x as a stable series
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 85401838a..c8f56cfbb 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -498,18 +498,19 @@ class RunQueue:
self.state = runQueueRunning
+ # RP - this code allows tasks to run out of the correct order - disabled, FIXME
# Find any tasks with current stamps and remove them from the queue
- for task1 in range(self.stats.total):
- task = self.prio_map[task1]
- fn = self.taskData.fn_index[self.runq_fnid[task]]
- taskname = self.runq_task[task]
- if bb.build.stamp_is_current(taskname, self.dataCache, fn):
- bb.msg.debug(2, bb.msg.domain.RunQueue, "Stamp current task %s (%s)" % (task, self.get_user_idstring(task)))
- self.runq_running[task] = 1
- self.runq_buildable[task] = 1
- self.task_complete(task)
- self.stats.taskCompleted()
- self.stats.taskSkipped()
+ # for task1 in range(self.stats.total):
+ # task = self.prio_map[task1]
+ # fn = self.taskData.fn_index[self.runq_fnid[task]]
+ # taskname = self.runq_task[task]
+ # if bb.build.stamp_is_current(taskname, self.dataCache, fn):
+ # bb.msg.debug(2, bb.msg.domain.RunQueue, "Stamp current task %s (%s)" % (task, self.get_user_idstring(task)))
+ # self.runq_running[task] = 1
+ # self.runq_buildable[task] = 1
+ # self.task_complete(task)
+ # self.stats.taskCompleted()
+ # self.stats.taskSkipped()
def task_complete(self, task):
"""