Skip to contentSkip to conversation

rust: fix upstream version checks

PATCH New Alexander Kanavin 1 participant 1 message Aug 27, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rust: fix upstream version checks

---
 meta/recipes-devtools/rust/rust-source.inc                    | 3 +++
 meta/recipes-example/rust-hello-world/rust-hello-world_git.bb | 2 ++
 2 files changed, 5 insertions(+)
meta/recipes-devtools/rust/rust-source.inc +3 -0
index 52502fb49f..1529ecfafe 100644
@@ -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<pver>\d+(\.\d+)+)-src"
meta/recipes-example/rust-hello-world/rust-hello-world_git.bb +2 -0
index c29eac34e5..3ebd9cc661 100644
@@ -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"
Signature · 1 line
2.31.1