]> 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)
committerSteve Sakoman <steve@sakoman.com>
Mon, 7 Mar 2022 17:05:33 +0000 (07:05 -1000)
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>
(cherry picked from commit 90fe6948a9df0b43c58120a9358adb3da1ceb5b9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/sstate.bbclass

index 00a0e8fbd7b9dc8e2b569855d924bfeb0d611676..3d6fb84d639d7232704ef950ebbc1e6f7eca2272 100644 (file)
@@ -961,7 +961,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)
 
             try: