From: Jose Quaresma Date: Sun, 6 Mar 2022 21:08:23 +0000 (+0000) Subject: sstate: inside the threadedpool don't write to the shared localdata X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4930 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fa763b2022822a76fde541724e83e1977833d03;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git sstate: inside the threadedpool don't write to the shared localdata When inside the threadedpool we make a copy of the localdata to avoid some race condition, so we need to use this new localdata2 and stop write the shared localdata. Signed-off-by: Jose Quaresma Signed-off-by: Richard Purdie --- diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index dc9a2c085b8..7aca4151593 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -988,7 +988,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True, localdata2 = bb.data.createCopy(localdata) srcuri = "file://" + sstatefile - localdata.setVar('SRC_URI', srcuri) + localdata2.setVar('SRC_URI', srcuri) bb.debug(2, "SState: Attempting to fetch %s" % srcuri) import traceback