]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: inside the threadedpool don't write to the shared localdata
authorJose Quaresma <quaresma.jose@gmail.com>
Sun, 6 Mar 2022 21:08:23 +0000 (21:08 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Mar 2022 12:10:48 +0000 (12:10 +0000)
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 <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass

index dc9a2c085b8ca880f4bb9d2909ed02bc81346507..7aca41515938b75425856c8e297db7452dc6e27c 100644 (file)
@@ -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