Skip to contentSkip to conversation

uninative: allow PREMIRRORS to use versioned url subpath

PATCH New [email protected] 1 participant 1 message Jun 23, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uninative: allow PREMIRRORS to use versioned url subpath

This allows users running their own mirrors to store uninative tarballs under versioned paths just like the default UNINATIVE_URL without having to completely override UNINATIVE_URL in their distro configuration and manually update the versioned URL on each upgrade.

The hashed subpath is left for compatibility, but not practical for mirror management.

---
 meta/classes/uninative.bbclass               | 1 +
 meta/conf/distro/include/yocto-uninative.inc | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
meta/classes/uninative.bbclass +1 -0
index 1e19917a97..543f747358 100644
@@ -64,6 +64,7 @@ python uninative_event_fetchloader() {
                     continue
                 if find.startswith("http"):
                     localdata.appendVar("PREMIRRORS", " ${UNINATIVE_URL}${UNINATIVE_TARBALL} %s/uninative/%s/${UNINATIVE_TARBALL}" % (replace, chksum))
+                    localdata.appendVar("PREMIRRORS", " ${UNINATIVE_URL}${UNINATIVE_TARBALL} %s/uninative/${UNINATIVE_VERSION}/${UNINATIVE_TARBALL}" % replace)
 
             srcuri = d.expand("${UNINATIVE_URL}${UNINATIVE_TARBALL};sha256sum=%s" % chksum)
             bb.note("Fetching uninative binary shim %s (will check PREMIRRORS first)" % srcuri)
meta/conf/distro/include/yocto-uninative.inc +2 -1
index 740cca0ecf..d7d1e2cb59 100644
@@ -7,8 +7,9 @@
 #
 
 UNINATIVE_MAXGLIBCVERSION = "2.33"
+UNINATIVE_VERSION = "3.2"
 
-UNINATIVE_URL ?= "http://downloads.yoctoproject.org/releases/uninative/3.2/"
+UNINATIVE_URL ?= "http://downloads.yoctoproject.org/releases/uninative/${UNINATIVE_VERSION}/"
 UNINATIVE_CHECKSUM[aarch64] ?= "4f0872cdca2775b637a8a99815ca5c8dd42146abe903a24a50ee0448358c764b"
 UNINATIVE_CHECKSUM[i686] ?= "e2eeab92e67263db37d9bb6d4c58579abd1f47ff4cded3171bde572fece124b2"
 UNINATIVE_CHECKSUM[x86_64] ?= "3ee8c7d55e2d4c7ae3887cddb97219f97b94efddfeee2e24923c0cb0e8ce84c6"
Signature · 1 line
2.25.1