diff mbox series

[meta-oe,kirkstone,4/4] gosu: set SRCREV_FORMAT variable

Message ID 20251213201820.3214133-4-skandigraun@gmail.com
State New
Headers show
Series [meta-networking,kirkstone,1/4] znc: patch CVE-2024-39844 | expand

Commit Message

Gyorgy Sarvari Dec. 13, 2025, 8:18 p.m. UTC
The recipe fetches from multiple repositories, however the SRCREV_FORMAT
variable wasn't set. Due to this the recipe couldn't reuse sstate artifacts from
a mirror, only threw warnings:

WARNING: gosu-1.14-r0 do_package_qa_setscene: ExpansionError('SRCPV',
  '${@bb.fetch2.get_srcrev(d)}', FetchError('The SRCREV_FORMAT variable
  must be set when multiple SCMs are used.\nThe SCMs are:
  git://github.com/tianon/gosu.git;branch=master;protocol=https
  git://github.com/opencontainers/runc;name=runc;branch=main;protocol=https', None))
WARNING: Setscene task (/cocto/kirkstone-next/meta-openembedded/meta-oe/recipes-support/
  gosu/gosu_1.14.bb:do_package_qa_setscene) failed with exit code '1' - real task
  will be run instead

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
 meta-oe/recipes-support/gosu/gosu_1.14.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/gosu/gosu_1.14.bb b/meta-oe/recipes-support/gosu/gosu_1.14.bb
index 624adf3099..f354f67194 100644
--- a/meta-oe/recipes-support/gosu/gosu_1.14.bb
+++ b/meta-oe/recipes-support/gosu/gosu_1.14.bb
@@ -5,13 +5,15 @@  LICENSE = "Apache-2.0 "
 LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
 GO_IMPORT = "github.com/tianon/gosu"
-SRC_URI = "git://${GO_IMPORT}.git;branch=master;protocol=https \
+SRC_URI = "git://${GO_IMPORT}.git;branch=master;protocol=https;name=core \
            git://github.com/opencontainers/runc;name=runc;destsuffix=${S}/src/github.com/opencontainers/runc;branch=main;protocol=https \
 "
-SRCREV = "9f7cd138a1ebc0684d43ef6046bf723978e8741f"
+SRCREV_core = "9f7cd138a1ebc0684d43ef6046bf723978e8741f"
 SRCREV_runc = "d7f7b22a85a2387557bdcda125710c2506f8d5c5"
 inherit go
 
+SRCREV_FORMAT = "core"
+
 do_compile:prepend() {
     # New Go versions has Go modules support enabled by default
     export GO111MODULE=off