]> git.ipfire.org Git - thirdparty/openembedded/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)
committerAnuj Mittal <anuj.mittal@intel.com>
Fri, 11 Mar 2022 02:45:22 +0000 (10:45 +0800)
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 1fa763b2022822a76fde541724e83e1977833d03)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/sstate.bbclass

index 103de01264f3066ad1785a0d964d1ffb68de65cc..d3816ec7b01bbe5b9eab4ac15308aa1d9216e392 100644 (file)
@@ -977,7 +977,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: