summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2022-03-06 21:08:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-07 22:44:55 +0000
commitdc9ea6b8ebfa902029aa00338f2bd3ebbfd3ae6f (patch)
tree540b27c1d2e76049158ed819efae7042b93b2bde
parent0e702fff268bc04b56d551a3c5305b1b7184b5b4 (diff)
downloadpoky-dc9ea6b8ebfa902029aa00338f2bd3ebbfd3ae6f.tar.gz
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. (From OE-Core rev: 1fa763b2022822a76fde541724e83e1977833d03) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/sstate.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index dc9a2c085b..7aca415159 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,
988 988
989 localdata2 = bb.data.createCopy(localdata) 989 localdata2 = bb.data.createCopy(localdata)
990 srcuri = "file://" + sstatefile 990 srcuri = "file://" + sstatefile
991 localdata.setVar('SRC_URI', srcuri) 991 localdata2.setVar('SRC_URI', srcuri)
992 bb.debug(2, "SState: Attempting to fetch %s" % srcuri) 992 bb.debug(2, "SState: Attempting to fetch %s" % srcuri)
993 993
994 import traceback 994 import traceback