diff options
author | Jose Quaresma <quaresma.jose@gmail.com> | 2022-03-06 21:08:23 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-22 22:18:51 +0000 |
commit | f0c3b282572d173c64febb196235668a62229784 (patch) | |
tree | 831f8a8e59d28c60db1222c30030249ef33186e6 | |
parent | b60e2e5a5d3273b2affcaa7581d8e8530f3e3889 (diff) | |
download | poky-f0c3b282572d173c64febb196235668a62229784.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: 3d05b9b419b629001933fad7ee53b9f3bb366305)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/sstate.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index caa25815e0..de6e7fa960 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -950,7 +950,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True, | |||
950 | 950 | ||
951 | localdata2 = bb.data.createCopy(localdata) | 951 | localdata2 = bb.data.createCopy(localdata) |
952 | srcuri = "file://" + sstatefile | 952 | srcuri = "file://" + sstatefile |
953 | localdata.setVar('SRC_URI', srcuri) | 953 | localdata2.setVar('SRC_URI', srcuri) |
954 | bb.debug(2, "SState: Attempting to fetch %s" % srcuri) | 954 | bb.debug(2, "SState: Attempting to fetch %s" % srcuri) |
955 | 955 | ||
956 | try: | 956 | try: |