summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-10 12:54:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-11 11:06:21 +0000
commit5947cc196fae75d669b9f22d1e6534f905c7f204 (patch)
tree0349eab691266a55f91176263d425a1688d4110c /meta/classes
parent8d72948bf4aad4a58e5b314eb3be73739fe8c49a (diff)
downloadpoky-5947cc196fae75d669b9f22d1e6534f905c7f204.tar.gz
sstate: Stop overwriting SSTATE_PKG
Its rather antisocial to overwrite SSTATE_PKG with an expanded form for the variable and it stops the value of BB_UNIHASH being changed when the package is written out. Instead of expanding the variable, append to it instead to avoid this rather hard to figure out behaviour and allow the siggen code to behave as expected. (From OE-Core rev: fe454e9c7837a903ffcff4c6f8a25070a0f0af82) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 62eca02024b4c44d618ab9bcf87a3166c886dadb) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sstate.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 64808f8e10..eb1ecd6822 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -318,7 +318,8 @@ def sstate_installpkg(ss, d):
318 318
319 sstateinst = d.expand("${WORKDIR}/sstate-install-%s/" % ss['task']) 319 sstateinst = d.expand("${WORKDIR}/sstate-install-%s/" % ss['task'])
320 sstatefetch = d.getVar('SSTATE_PKGNAME') + '_' + ss['task'] + ".tgz" 320 sstatefetch = d.getVar('SSTATE_PKGNAME') + '_' + ss['task'] + ".tgz"
321 sstatepkg = d.getVar('SSTATE_PKG') + '_' + ss['task'] + ".tgz" 321 d.appendVar('SSTATE_PKG', '_'+ ss['task'] + ".tgz")
322 sstatepkg = d.getVar('SSTATE_PKG')
322 323
323 if not os.path.exists(sstatepkg): 324 if not os.path.exists(sstatepkg):
324 pstaging_fetch(sstatefetch, d) 325 pstaging_fetch(sstatefetch, d)
@@ -330,7 +331,6 @@ def sstate_installpkg(ss, d):
330 sstate_clean(ss, d) 331 sstate_clean(ss, d)
331 332
332 d.setVar('SSTATE_INSTDIR', sstateinst) 333 d.setVar('SSTATE_INSTDIR', sstateinst)
333 d.setVar('SSTATE_PKG', sstatepkg)
334 334
335 if bb.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG"), False): 335 if bb.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG"), False):
336 signer = get_signer(d, 'local') 336 signer = get_signer(d, 'local')
@@ -612,7 +612,8 @@ def sstate_package(ss, d):
612 tmpdir = d.getVar('TMPDIR') 612 tmpdir = d.getVar('TMPDIR')
613 613
614 sstatebuild = d.expand("${WORKDIR}/sstate-build-%s/" % ss['task']) 614 sstatebuild = d.expand("${WORKDIR}/sstate-build-%s/" % ss['task'])
615 sstatepkg = d.getVar('SSTATE_PKG') + '_'+ ss['task'] + ".tgz" 615 d.appendVar('SSTATE_PKG', '_'+ ss['task'] + ".tgz")
616 sstatepkg = d.getVar('SSTATE_PKG')
616 bb.utils.remove(sstatebuild, recurse=True) 617 bb.utils.remove(sstatebuild, recurse=True)
617 bb.utils.mkdirhier(sstatebuild) 618 bb.utils.mkdirhier(sstatebuild)
618 bb.utils.mkdirhier(os.path.dirname(sstatepkg)) 619 bb.utils.mkdirhier(os.path.dirname(sstatepkg))
@@ -648,7 +649,6 @@ def sstate_package(ss, d):
648 os.rename(plain, pdir) 649 os.rename(plain, pdir)
649 650
650 d.setVar('SSTATE_BUILDDIR', sstatebuild) 651 d.setVar('SSTATE_BUILDDIR', sstatebuild)
651 d.setVar('SSTATE_PKG', sstatepkg)
652 d.setVar('SSTATE_INSTDIR', sstatebuild) 652 d.setVar('SSTATE_INSTDIR', sstatebuild)
653 653
654 if d.getVar('SSTATE_SKIP_CREATION') == '1': 654 if d.getVar('SSTATE_SKIP_CREATION') == '1':