From ae1da8b75c6e12642c4a08accd21c764541b86c9 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 21 Jan 2023 12:26:21 +0000 Subject: bitbake: cooker: Fix siggen recipe cache race issue We need to reset the cache before the start() call which starts the parsing processs, tweak the code to ensure this is the case. (Bitbake rev: 4712d6237df5d2188238294fbdb9f107b068a3a7) Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index cfaa7cbe6c..709e69493d 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -2187,12 +2187,11 @@ class CookerParser(object): self.num_processes = min(int(self.cfgdata.getVar("BB_NUMBER_PARSE_THREADS") or multiprocessing.cpu_count()), self.toparse) + bb.cache.SiggenRecipeInfo.reset() self.start() self.haveshutdown = False self.syncthread = None - bb.cache.SiggenRecipeInfo.reset() - def start(self): self.results = self.load_cached() self.processes = [] -- cgit v1.2.3-54-g00ecf