gosu: set SRCREV_FORMAT variable

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>
This commit is contained in:
Gyorgy Sarvari
2025-12-13 21:18:20 +01:00
parent af6c27eaa1
commit cdd9a07823
+4 -2
View File
@@ -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