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-15 16:38:28 +0000 |
commit | 7c3b93da9e1a0f249a640d8f4eacc9272817c745 (patch) | |
tree | 1e100f8c110531e842ba7cae8a292f61137c4dd5 /meta/classes/sstate.bbclass | |
parent | b091cc926ac8b70e5cc77a2483b26c54e4c008c2 (diff) | |
download | poky-7c3b93da9e1a0f249a640d8f4eacc9272817c745.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: b6893ed80df90b0e9468f291205f38cc76960e08)
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>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-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 103de01264..d3816ec7b0 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -977,7 +977,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True, | |||
977 | 977 | ||
978 | localdata2 = bb.data.createCopy(localdata) | 978 | localdata2 = bb.data.createCopy(localdata) |
979 | srcuri = "file://" + sstatefile | 979 | srcuri = "file://" + sstatefile |
980 | localdata.setVar('SRC_URI', srcuri) | 980 | localdata2.setVar('SRC_URI', srcuri) |
981 | bb.debug(2, "SState: Attempting to fetch %s" % srcuri) | 981 | bb.debug(2, "SState: Attempting to fetch %s" % srcuri) |
982 | 982 | ||
983 | try: | 983 | try: |