summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-08-27 14:24:36 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-01 14:06:17 +0100
commitd2b0f230e0066fc7b82736b733fcda9588ac610a (patch)
tree54a5ff85a03ff8d18877f1e12ef56d9b188a1195
parentaf0beedc6f068b0d338ce7849136b2ecf2094e12 (diff)
downloadpoky-d2b0f230e0066fc7b82736b733fcda9588ac610a.tar.gz
rust: fix upstream version checks
(From OE-Core rev: e2e87d82ad1ec071077f29613e2e568196912daa) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/rust/rust-source.inc3
-rw-r--r--meta/recipes-example/rust-hello-world/rust-hello-world_git.bb2
2 files changed, 5 insertions, 0 deletions
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 @@
1SRC_URI += "https://static.rust-lang.org/dist/rustc-${PV}-src.tar.xz;name=rust" 1SRC_URI += "https://static.rust-lang.org/dist/rustc-${PV}-src.tar.xz;name=rust"
2 2
3RUSTSRC = "${WORKDIR}/rustc-${PV}-src" 3RUSTSRC = "${WORKDIR}/rustc-${PV}-src"
4
5UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html"
6UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\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 += "\
8 file://0001-enable-LTO.patch \ 8 file://0001-enable-LTO.patch \
9 " 9 "
10 10
11UPSTREAM_CHECK_COMMITS = "1"
12
11SUMMARY = "Hello World by Cargo for Rust" 13SUMMARY = "Hello World by Cargo for Rust"
12HOMEPAGE = "https://github.com/meta-rust/rust-hello-world" 14HOMEPAGE = "https://github.com/meta-rust/rust-hello-world"
13LICENSE = "MIT | Apache-2.0" 15LICENSE = "MIT | Apache-2.0"