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-11 23:44:42 +0000 |
commit | e4cc9273f5f8e80b607ba82a21a0bc635eca5c19 (patch) | |
tree | 54cb1402764b407fb6aee4210af17453a262e4cd /meta/classes/sstate.bbclass | |
parent | 11fba270e740a9e9072a2d0f492cd765df5ac6e4 (diff) | |
download | poky-e4cc9273f5f8e80b607ba82a21a0bc635eca5c19.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: 604146a242c3d5f5a9872bb756910f4bd1b58406)
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>
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 00a0e8fbd7..3d6fb84d63 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -961,7 +961,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True, | |||
961 | 961 | ||
962 | localdata2 = bb.data.createCopy(localdata) | 962 | localdata2 = bb.data.createCopy(localdata) |
963 | srcuri = "file://" + sstatefile | 963 | srcuri = "file://" + sstatefile |
964 | localdata.setVar('SRC_URI', srcuri) | 964 | localdata2.setVar('SRC_URI', srcuri) |
965 | bb.debug(2, "SState: Attempting to fetch %s" % srcuri) | 965 | bb.debug(2, "SState: Attempting to fetch %s" % srcuri) |
966 | 966 | ||
967 | try: | 967 | try: |