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-11 22:39:20 +0100
commit505fdf638ce62e9424f65d783956b75db3861016 (patch)
tree0f0c5c4893c34e91b2ab0a2ebf857fdce2f56615 /meta/classes/sstate.bbclass
parent7074a39333f6900fab3667bb49be11c33d849981 (diff)
downloadpoky-505fdf638ce62e9424f65d783956b75db3861016.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: 0d9d7acebe0be42d4cf8a30ecbbbbcb2dfd16a4b) 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 d7f1b3f26e..62e45cb4a8 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)