summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-10 23:49:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-24 10:17:32 +0100
commitc84431993213d695ef99a388152d25eac4b70f9e (patch)
treeab179d7f03e524bc48713f018c39537b358298b7 /meta/classes/sstate.bbclass
parentdd7020ab2b5d70bc321471714ec9b5b0dacf780f (diff)
downloadpoky-c84431993213d695ef99a388152d25eac4b70f9e.tar.gz
sstate: Avoid problems with recipes using SRCPV when fetching sstate
When fetching sstate, SRCPV can be expanded withuin PV which breaks the sstate fetcher as other variables like SRC_URI are changed by the fetcher code. Expand the variable before doing this to avoid those problems and hence avoid setscene task failures with remote sstate storage in git recipes. (From OE-Core rev: 5232aa1c46380e7197098bed39fc6d5b8456caa7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 0d9d7acebe0be42d4cf8a30ecbbbbcb2dfd16a4b) 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.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 4bf087b4e8..8b4bfc25b7 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -731,6 +731,7 @@ def pstaging_fetch(sstatefetch, d):
731 localdata.setVar('FILESPATH', dldir) 731 localdata.setVar('FILESPATH', dldir)
732 localdata.setVar('DL_DIR', dldir) 732 localdata.setVar('DL_DIR', dldir)
733 localdata.setVar('PREMIRRORS', mirrors) 733 localdata.setVar('PREMIRRORS', mirrors)
734 localdata.setVar('SRCPV', d.getVar('SRCPV'))
734 735
735 # if BB_NO_NETWORK is set but we also have SSTATE_MIRROR_ALLOW_NETWORK, 736 # if BB_NO_NETWORK is set but we also have SSTATE_MIRROR_ALLOW_NETWORK,
736 # we'll want to allow network access for the current set of fetches. 737 # we'll want to allow network access for the current set of fetches.
@@ -755,6 +756,9 @@ def pstaging_fetch(sstatefetch, d):
755 except bb.fetch2.BBFetchException: 756 except bb.fetch2.BBFetchException:
756 pass 757 pass
757 758
759pstaging_fetch[vardepsexclude] += "SRCPV"
760
761
758def sstate_setscene(d): 762def sstate_setscene(d):
759 shared_state = sstate_state_fromvars(d) 763 shared_state = sstate_state_fromvars(d)
760 accelerate = sstate_installpkg(shared_state, d) 764 accelerate = sstate_installpkg(shared_state, d)