Skip to contentSkip to conversation

sstate.bbclass: fixes for SSTATE_SIG_KEY when use SSTATE_MIRRORS

PATCH In review Robert Yang 2 participants 4 messages Sep 10, 2015

lore
Share & tools
lore
#0 lore raw

cover sstate.bbclass: fixes for SSTATE_SIG_KEY when use SSTATE_MIRRORS

The following changes since commit 56c5fa106eeccda2ca92dbeb73ff01ba40992e7d:

ptest: use fakeroot for do_install_ptest_base (2015-09-09 14:25:09 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/ss
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/ss

Robert Yang (1):
sstate.bbclass: fixes for SSTATE_SIG_KEY when use SSTATE_MIRRORS

 meta/classes/sstate.bbclass |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 sstate.bbclass: fixes for SSTATE_SIG_KEY when use SSTATE_MIRRORS

Fixed:
WARNING: Failed to fetch URL file://Ubuntu-12.04/39/sstate:m4-native:x86_64-linux:1.4.17:r0:x86_64:3:39ecb836d5fc7802ce6f45f33f1cae36_populate_sysroot.tgz.sig, attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find file file://Ubuntu-12.04/39/sstate:m4-native:x86_64-linux:1.4.17:r0:x86_64:3:39ecb836d5fc7802ce6f45f33f1cae36_populate_sysroot.tgz.sig anywhere. The paths that were searched were:

---
 meta/classes/sstate.bbclass |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
meta/classes/sstate.bbclass +4 -3
index 77313bc..7e682fe 100644
@@ -615,9 +615,10 @@ def pstaging_fetch(sstatefetch, sstatepkg, d):
 
     # Try a fetch from the sstate mirror, if it fails just return and
     # we will build the package
-    for srcuri in ['file://{0}'.format(sstatefetch),
-                   'file://{0}.siginfo'.format(sstatefetch),
-                   'file://{0}.sig'.format(sstatefetch)]:
+    srcuris = ['file://{0}'.format(sstatefetch), 'file://{0}.siginfo'.format(sstatefetch)]
+    if d.getVar("SSTATE_SIG_KEY", True):
+        srcuris.append('file://{0}.sig'.format(sstatefetch))
+    for srcuri in srcuris:
         localdata.setVar('SRC_URI', srcuri)
         try:
             fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False)
Signature · 1 line
1.7.9.5
#2 lore raw
In reply to Robert Yang

I sent an almost identical patch to this yesterday :)

(your patch breaks is SSTATE_VERIFY_KEY="0")

Ross

Quoted 26 lines · Robert Yang

The following changes since commit
56c5fa106eeccda2ca92dbeb73ff01ba40992e7d:

ptest: use fakeroot for do_install_ptest_base (2015-09-09 14:25:09 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/ss

http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/ss

Robert Yang (1):
sstate.bbclass: fixes for SSTATE_SIG_KEY when use SSTATE_MIRRORS

 meta/classes/sstate.bbclass |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

--
1.7.9.5

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw
Quoted 1 line · Ross

I sent an almost identical patch to this yesterday :)

Thanks, please drop this one, something is wrong with my thunderbird's searching, I had searched before I worked on it, but didn't find the patch, I searched it again just now, and did find it. (while its sorting isn't correct)

// Robert

Quoted 35 lines

(your patch breaks is SSTATE_VERIFY_KEY="0")

Ross

On 10 September 2015 at 11:04, Robert Yang <[email protected] <mailto:[email protected]>> wrote:

    The following changes since commit 56c5fa106eeccda2ca92dbeb73ff01ba40992e7d:

       ptest: use fakeroot for do_install_ptest_base (2015-09-09 14:25:09 +0100)

    are available in the git repository at:

       git://git.openembedded.org/openembedded-core-contrib
    <http://git.openembedded.org/openembedded-core-contrib> rbt/ss
    http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/ss

    Robert Yang (1):
       sstate.bbclass: fixes for SSTATE_SIG_KEY when use SSTATE_MIRRORS

      meta/classes/sstate.bbclass |    7 ++++---
      1 file changed, 4 insertions(+), 3 deletions(-)

    --
    1.7.9.5

    --
    _______________________________________________
    Openembedded-core mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openembedded.org/mailman/listinfo/openembedded-core