From 6f8dd36ca0ccce2a526d45224ff13b4e85bdcc69 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 20 Jun 2023 12:33:04 +0100 Subject: [PATCH] bitbake: runqueue: Fix handling of virtual files in layername calculation I'd tested target configurations but in real world use, it became clear the layername functionality in worker context was failing for virtual class extensions. Fix this. (Bitbake rev: 888778ebfa85677ff36065dfcd0f8a7684edfc80) Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 01701348ed..0bb3bc20ab 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -2158,6 +2158,7 @@ class RunQueueExecute: bb.event.fire(startevent, self.cfgData) taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] + realfn = bb.cache.virtualfn2realfn(taskfn)[0] runtask = { 'fn' : taskfn, 'task' : task, @@ -2166,7 +2167,7 @@ class RunQueueExecute: 'unihash' : self.rqdata.get_task_unihash(task), 'quieterrors' : True, 'appends' : self.cooker.collections[mc].get_file_appends(taskfn), - 'layername' : self.cooker.collections[mc].calc_bbfile_priority(taskfn)[2], + 'layername' : self.cooker.collections[mc].calc_bbfile_priority(realfn)[2], 'taskdepdata' : self.sq_build_taskdepdata(task), 'dry_run' : False, 'taskdep': taskdep, @@ -2252,6 +2253,7 @@ class RunQueueExecute: bb.event.fire(startevent, self.cfgData) taskdep = self.rqdata.dataCaches[mc].task_deps[taskfn] + realfn = bb.cache.virtualfn2realfn(taskfn)[0] runtask = { 'fn' : taskfn, 'task' : task, @@ -2260,7 +2262,7 @@ class RunQueueExecute: 'unihash' : self.rqdata.get_task_unihash(task), 'quieterrors' : False, 'appends' : self.cooker.collections[mc].get_file_appends(taskfn), - 'layername' : self.cooker.collections[mc].calc_bbfile_priority(taskfn)[2], + 'layername' : self.cooker.collections[mc].calc_bbfile_priority(realfn)[2], 'taskdepdata' : self.build_taskdepdata(task), 'dry_run' : self.rqdata.setscene_enforce, 'taskdep': taskdep,