Hi, would be nice to get this applied as it fixes this parsing
error from latest poky master branch:
Parsing recipes...WARNING:
/oe/build/../meta-virtualization/recipes-devtools/go/go-build_git.bb: Exception
during build_dependencies for fetcher_hashes_dummyfunc
WARNING: /oe/build/../meta-virtualization/recipes-devtools/go/go-build_git.bb:
Error during finalise of
/oe/build/../meta-virtualization/recipes-devtools/go/go-build_git.bb
ERROR: ExpansionError during parsing
/oe/build/../meta-virtualization/recipes-devtools/go/go-build_git.bb
Traceback (most recent call last):
File "Var <fetcher_hashes_dummyfunc[vardepvalue]>", line 1, in <module>
File "/oe/poky/bitbake/lib/bb/fetch2/__init__.py", line 834, in
get_hashvalue(d=<bb.data_smart.DataSmart object at 0x7f0fd64ce640>,
method_name='sortable_revision'):
def get_hashvalue(d, method_name='sortable_revision'):
> pkgv, revs = _get_srcrev(d, method_name=method_name)
return " ".join(revs)
File "/oe/poky/bitbake/lib/bb/fetch2/__init__.py", line 804, in
_get_srcrev(d=<bb.data_smart.DataSmart object at 0x7f0fd64ce640>,
method_name='sortable_revision'):
if not format:
> raise FetchError("The SRCREV_FORMAT variable must be set when
multiple SCMs are used.\n"\
"The SCMs are:\n%s" % '\n'.join(scms))
bb.data_smart.ExpansionError: Failure expanding variable
fetcher_hashes_dummyfunc[vardepvalue], expression was
${@bb.fetch.get_hashvalue(d)} which triggered exception FetchError: Fetcher
failure: The SRCREV_FORMAT variable must be set when multiple SCMs are used.
The SCMs are:
git://github.com/lf-edge/runx;nobranch=1;name=runx;protocol=https
git://github.com/opencontainers/runc;branch=release-1.1;name=runc;protocol=https;destsuffix=git/src/import/gobuild/go/src/github.com/opencontainers/runc
The variable dependency chain for the failure is:
fetcher_hashes_dummyfunc[vardepvalue]
ERROR: Parsing halted due to errors, see error messages above
Cheers,
-Mikko
On Mon, Aug 28, 2023 at 02:28:34PM -0600, Javier Tia wrote:
> Recipes that use multiple SCMs in the SRC_URI, must supply SRCREV_FORMAT
> to avoid an expansion error.
>
> Signed-off-by: Javier Tia <[email protected]>
> ---
> recipes-devtools/go/go-build_git.bb | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/recipes-devtools/go/go-build_git.bb
> b/recipes-devtools/go/go-build_git.bb
> index 2337c9e1..2a78be01 100644
> --- a/recipes-devtools/go/go-build_git.bb
> +++ b/recipes-devtools/go/go-build_git.bb
> @@ -4,12 +4,12 @@ DESCRIPTION = "Xen Runtime for OCI"
>
> SRCREV_runx = "f24efd33fb18469e9cfe4d1bfe8e2c90ec8c4e93"
> SRCREV_runc = "1e7bb5b773162b57333d57f612fd72e3f8612d94"
> -
> +SRCREV_FORMAT = "runx"
> SRC_URI = "\
> - git://github.com/lf-edge/runx;nobranch=1;name=runx;protocol=https \
> -
> git://github.com/opencontainers/runc;branch=release-1.1;name=runc;protocol=https;destsuffix=git/src/import/gobuild/go/src/github.com/opencontainers/runc
> \
> - file://0001-build-use-instead-of-go.patch \
> - "
> + git://github.com/lf-edge/runx;nobranch=1;name=runx;protocol=https \
> +
> git://github.com/opencontainers/runc;branch=release-1.1;name=runc;protocol=https;destsuffix=git/src/import/gobuild/go/src/github.com/opencontainers/runc
> \
> + file://0001-build-use-instead-of-go.patch \
> +"
> SRC_URI[md5sum] = "0d701ac1e2a67d47ce7127432df2c32b"
> SRC_URI[sha256sum] =
> "5a26478906d5005f4f809402e981518d2b8844949199f60c4b6e1f986ca2a769"
>
> --
> 2.42.0
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8269):
https://lists.yoctoproject.org/g/meta-virtualization/message/8269
Mute This Topic: https://lists.yoctoproject.org/mt/101018420/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-