From: Alexander Kanavin Date: Fri, 27 Aug 2021 12:24:36 +0000 (+0200) Subject: rust: fix upstream version checks X-Git-Tag: yocto-3.4~266 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=e2e87d82ad1ec071077f29613e2e568196912daa;p=openembedded-core.git rust: fix upstream version checks Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc index 52502fb49f..1529ecfafe 100644 --- a/meta/recipes-devtools/rust/rust-source.inc +++ b/meta/recipes-devtools/rust/rust-source.inc @@ -1,3 +1,6 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${PV}-src.tar.xz;name=rust" RUSTSRC = "${WORKDIR}/rustc-${PV}-src" + +UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html" +UPSTREAM_CHECK_REGEX = "rustc-(?P\d+(\.\d+)+)-src" diff --git a/meta/recipes-example/rust-hello-world/rust-hello-world_git.bb b/meta/recipes-example/rust-hello-world/rust-hello-world_git.bb index c29eac34e5..3ebd9cc661 100644 --- a/meta/recipes-example/rust-hello-world/rust-hello-world_git.bb +++ b/meta/recipes-example/rust-hello-world/rust-hello-world_git.bb @@ -8,6 +8,8 @@ SRC_URI += "\ file://0001-enable-LTO.patch \ " +UPSTREAM_CHECK_COMMITS = "1" + SUMMARY = "Hello World by Cargo for Rust" HOMEPAGE = "https://github.com/meta-rust/rust-hello-world" LICENSE = "MIT | Apache-2.0"