Skip to contentSkip to conversation

sstate: Fix sstate file mirroring checksum issue

PATCH New Richard Purdie 1 participant 1 message Sep 7, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sstate: Fix sstate file mirroring checksum issue

After a recent fix in bitbake, the checksums may be checked for local file fetches at an earlier code point. The underlying recipe checksums won't match sstate values so ensure these aren't set via SRC_URI flags when reconfiguring the fetch for sstate.

---
 meta/classes-global/sstate.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes-global/sstate.bbclass +1 -0
index cd77c58dbf8..2c8e7b8cc23 100644
@@ -784,6 +784,7 @@ def pstaging_fetch(sstatefetch, d):
         uris += ['file://{0}.sig;downloadfilename={0}.sig'.format(sstatefetch)]
 
     for srcuri in uris:
+        localdata.delVar('SRC_URI')
         localdata.setVar('SRC_URI', srcuri)
         try:
             fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False)
Signature · 1 line
2.34.1