openembedded-core.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/13] rust: drop PV from include file names
@ 2021-10-10 19:09 Alexander Kanavin
  2021-10-10 19:09 ` [PATCH 02/13] rust: update 1.54.0 -> 1.55.0 Alexander Kanavin
                   ` (11 more replies)
  0 siblings, 12 replies; 16+ messages in thread
From: Alexander Kanavin @ 2021-10-10 19:09 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexander Kanavin

This complicates (semi) automated upgrades, and isn't necessary
as we carry only a single version of the toolchain.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 .../cargo/cargo-cross-canadian_1.54.0.bb       |  4 ++--
 meta/recipes-devtools/cargo/cargo_1.54.0.bb    |  4 ++--
 ...initions-for-riscv64-musl-libc-0.2.93.patch |  0
 ...l-mod.rs-add-riscv64-to-b64-set-libc-.patch |  0
 ...definitions-to-match-musl-libc-0.2.93.patch |  0
 ...s-for-modified-files-for-rust-1.54.0-.patch |  0
 meta/recipes-devtools/rust/libstd-rs_1.54.0.bb |  2 +-
 .../rust/rust-cross-canadian_1.54.0.bb         |  4 ++--
 .../recipes-devtools/rust/rust-cross_1.54.0.bb |  2 +-
 meta/recipes-devtools/rust/rust-llvm_1.54.0.bb |  2 +-
 .../rust/rust-snapshot-1.54.0.inc              | 18 ------------------
 meta/recipes-devtools/rust/rust-snapshot.inc   | 16 ++++++++++++++++
 .../rust/rust-source-1.54.0.inc                |  3 ---
 meta/recipes-devtools/rust/rust-source.inc     |  1 +
 .../rust/rust-tools-cross-canadian_1.54.0.bb   |  4 ++--
 meta/recipes-devtools/rust/rust_1.54.0.bb      |  4 ++--
 16 files changed, 30 insertions(+), 34 deletions(-)
 rename meta/recipes-devtools/rust/{libstd-rs-1.54.0 => libstd-rs}/0005-Add-base-definitions-for-riscv64-musl-libc-0.2.93.patch (100%)
 rename meta/recipes-devtools/rust/{libstd-rs-1.54.0 => libstd-rs}/0006-FIXUP-linux-musl-mod.rs-add-riscv64-to-b64-set-libc-.patch (100%)
 rename meta/recipes-devtools/rust/{libstd-rs-1.54.0 => libstd-rs}/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch (100%)
 rename meta/recipes-devtools/rust/{libstd-rs-1.54.0 => libstd-rs}/0008-Update-checksums-for-modified-files-for-rust-1.54.0-.patch (100%)
 delete mode 100644 meta/recipes-devtools/rust/rust-snapshot-1.54.0.inc
 delete mode 100644 meta/recipes-devtools/rust/rust-source-1.54.0.inc

diff --git a/meta/recipes-devtools/cargo/cargo-cross-canadian_1.54.0.bb b/meta/recipes-devtools/cargo/cargo-cross-canadian_1.54.0.bb
index dba400bcfb7..63fd69107be 100644
--- a/meta/recipes-devtools/cargo/cargo-cross-canadian_1.54.0.bb
+++ b/meta/recipes-devtools/cargo/cargo-cross-canadian_1.54.0.bb
@@ -1,5 +1,5 @@
-require recipes-devtools/rust/rust-source-${PV}.inc
-require recipes-devtools/rust/rust-snapshot-${PV}.inc
+require recipes-devtools/rust/rust-source.inc
+require recipes-devtools/rust/rust-snapshot.inc
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/cargo-${PV}:"
 
diff --git a/meta/recipes-devtools/cargo/cargo_1.54.0.bb b/meta/recipes-devtools/cargo/cargo_1.54.0.bb
index 175f544d660..eee58fc2452 100644
--- a/meta/recipes-devtools/cargo/cargo_1.54.0.bb
+++ b/meta/recipes-devtools/cargo/cargo_1.54.0.bb
@@ -1,4 +1,4 @@
-require recipes-devtools/rust/rust-source-${PV}.inc
-require recipes-devtools/rust/rust-snapshot-${PV}.inc
+require recipes-devtools/rust/rust-source.inc
+require recipes-devtools/rust/rust-snapshot.inc
 require cargo.inc
 BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-devtools/rust/libstd-rs-1.54.0/0005-Add-base-definitions-for-riscv64-musl-libc-0.2.93.patch b/meta/recipes-devtools/rust/libstd-rs/0005-Add-base-definitions-for-riscv64-musl-libc-0.2.93.patch
similarity index 100%
rename from meta/recipes-devtools/rust/libstd-rs-1.54.0/0005-Add-base-definitions-for-riscv64-musl-libc-0.2.93.patch
rename to meta/recipes-devtools/rust/libstd-rs/0005-Add-base-definitions-for-riscv64-musl-libc-0.2.93.patch
diff --git a/meta/recipes-devtools/rust/libstd-rs-1.54.0/0006-FIXUP-linux-musl-mod.rs-add-riscv64-to-b64-set-libc-.patch b/meta/recipes-devtools/rust/libstd-rs/0006-FIXUP-linux-musl-mod.rs-add-riscv64-to-b64-set-libc-.patch
similarity index 100%
rename from meta/recipes-devtools/rust/libstd-rs-1.54.0/0006-FIXUP-linux-musl-mod.rs-add-riscv64-to-b64-set-libc-.patch
rename to meta/recipes-devtools/rust/libstd-rs/0006-FIXUP-linux-musl-mod.rs-add-riscv64-to-b64-set-libc-.patch
diff --git a/meta/recipes-devtools/rust/libstd-rs-1.54.0/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch b/meta/recipes-devtools/rust/libstd-rs/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch
similarity index 100%
rename from meta/recipes-devtools/rust/libstd-rs-1.54.0/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch
rename to meta/recipes-devtools/rust/libstd-rs/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch
diff --git a/meta/recipes-devtools/rust/libstd-rs-1.54.0/0008-Update-checksums-for-modified-files-for-rust-1.54.0-.patch b/meta/recipes-devtools/rust/libstd-rs/0008-Update-checksums-for-modified-files-for-rust-1.54.0-.patch
similarity index 100%
rename from meta/recipes-devtools/rust/libstd-rs-1.54.0/0008-Update-checksums-for-modified-files-for-rust-1.54.0-.patch
rename to meta/recipes-devtools/rust/libstd-rs/0008-Update-checksums-for-modified-files-for-rust-1.54.0-.patch
diff --git a/meta/recipes-devtools/rust/libstd-rs_1.54.0.bb b/meta/recipes-devtools/rust/libstd-rs_1.54.0.bb
index 1239f6a176f..cc30158d222 100644
--- a/meta/recipes-devtools/rust/libstd-rs_1.54.0.bb
+++ b/meta/recipes-devtools/rust/libstd-rs_1.54.0.bb
@@ -1,4 +1,4 @@
-require rust-source-${PV}.inc
+require rust-source.inc
 require libstd-rs.inc
 
 SRC_URI += " \
diff --git a/meta/recipes-devtools/rust/rust-cross-canadian_1.54.0.bb b/meta/recipes-devtools/rust/rust-cross-canadian_1.54.0.bb
index a5d02eb8d77..766912c019b 100644
--- a/meta/recipes-devtools/rust/rust-cross-canadian_1.54.0.bb
+++ b/meta/recipes-devtools/rust/rust-cross-canadian_1.54.0.bb
@@ -1,6 +1,6 @@
 require rust-cross-canadian.inc
-require rust-source-${PV}.inc
-require rust-snapshot-${PV}.inc
+require rust-source.inc
+require rust-snapshot.inc
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/rust:"
 
diff --git a/meta/recipes-devtools/rust/rust-cross_1.54.0.bb b/meta/recipes-devtools/rust/rust-cross_1.54.0.bb
index ddc25d36b58..3179d395d25 100644
--- a/meta/recipes-devtools/rust/rust-cross_1.54.0.bb
+++ b/meta/recipes-devtools/rust/rust-cross_1.54.0.bb
@@ -1,2 +1,2 @@
 require rust-cross.inc
-require rust-source-${PV}.inc
+require rust-source.inc
diff --git a/meta/recipes-devtools/rust/rust-llvm_1.54.0.bb b/meta/recipes-devtools/rust/rust-llvm_1.54.0.bb
index 81b2bd12b76..5e37798edd2 100644
--- a/meta/recipes-devtools/rust/rust-llvm_1.54.0.bb
+++ b/meta/recipes-devtools/rust/rust-llvm_1.54.0.bb
@@ -1,5 +1,5 @@
 # check src/llvm-project/llvm/CMakeLists.txt for llvm version in use
 #
 LLVM_RELEASE = "12.0.1"
-require rust-source-${PV}.inc
+require rust-source.inc
 require rust-llvm.inc
diff --git a/meta/recipes-devtools/rust/rust-snapshot-1.54.0.inc b/meta/recipes-devtools/rust/rust-snapshot-1.54.0.inc
deleted file mode 100644
index 598f4ed1097..00000000000
--- a/meta/recipes-devtools/rust/rust-snapshot-1.54.0.inc
+++ /dev/null
@@ -1,18 +0,0 @@
-require rust-snapshot.inc
-
-## This is information on the rust-snapshot (binary) used to build our current release.
-## snapshot info is taken from rust/src/stage0.txt
-## TODO: find a way to add additional SRC_URIs based on the contents of an
-##       earlier SRC_URI.
-RS_VERSION = "1.53.0"
-CARGO_VERSION = "1.53.0"
-
-# TODO: Add hashes for other architecture toolchains as well. Make a script?
-SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "66d5257bbd194db08e67ca63a74cc80cdc4a36eaa30bf7dfe65861d9deaff7f7"
-SRC_URI[rustc-snapshot-x86_64.sha256sum] = "9c2f0443a546dd18f1f020c7711a7b9864432545ceb812e79315c1e76508b193"
-SRC_URI[cargo-snapshot-x86_64.sha256sum] = "e4437f6c83574fc60e183f4df439190f7610e4a669476802795645da66fbb83b"
-
-SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "fc261d0ff057c58b36057c30217bad1a29a9a3f257c70f5df88ad3f1d982386e"
-SRC_URI[rustc-snapshot-aarch64.sha256sum] = "a857e5c615f6b5b3afc6b707ae007b3b4624585b0b2ba9b38b553114db37f8d5"
-SRC_URI[cargo-snapshot-aarch64.sha256sum] = "4fa425a2d4633aeca67fa42695b3b9100f8b988dd1c21e60d6b2aa1164e55c0c"
-
diff --git a/meta/recipes-devtools/rust/rust-snapshot.inc b/meta/recipes-devtools/rust/rust-snapshot.inc
index 79d03afd1ba..d448ffc7af1 100644
--- a/meta/recipes-devtools/rust/rust-snapshot.inc
+++ b/meta/recipes-devtools/rust/rust-snapshot.inc
@@ -1,3 +1,19 @@
+## This is information on the rust-snapshot (binary) used to build our current release.
+## snapshot info is taken from rust/src/stage0.txt
+## TODO: find a way to add additional SRC_URIs based on the contents of an
+##       earlier SRC_URI.
+RS_VERSION = "1.53.0"
+CARGO_VERSION = "1.53.0"
+
+# TODO: Add hashes for other architecture toolchains as well. Make a script?
+SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "66d5257bbd194db08e67ca63a74cc80cdc4a36eaa30bf7dfe65861d9deaff7f7"
+SRC_URI[rustc-snapshot-x86_64.sha256sum] = "9c2f0443a546dd18f1f020c7711a7b9864432545ceb812e79315c1e76508b193"
+SRC_URI[cargo-snapshot-x86_64.sha256sum] = "e4437f6c83574fc60e183f4df439190f7610e4a669476802795645da66fbb83b"
+
+SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "fc261d0ff057c58b36057c30217bad1a29a9a3f257c70f5df88ad3f1d982386e"
+SRC_URI[rustc-snapshot-aarch64.sha256sum] = "a857e5c615f6b5b3afc6b707ae007b3b4624585b0b2ba9b38b553114db37f8d5"
+SRC_URI[cargo-snapshot-aarch64.sha256sum] = "4fa425a2d4633aeca67fa42695b3b9100f8b988dd1c21e60d6b2aa1164e55c0c"
+
 SRC_URI += " \
     https://static.rust-lang.org/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${BUILD_ARCH};subdir=rust-snapshot-components \
     https://static.rust-lang.org/dist/${RUSTC_SNAPSHOT}.tar.xz;name=rustc-snapshot-${BUILD_ARCH};subdir=rust-snapshot-components \
diff --git a/meta/recipes-devtools/rust/rust-source-1.54.0.inc b/meta/recipes-devtools/rust/rust-source-1.54.0.inc
deleted file mode 100644
index 335c7ceb450..00000000000
--- a/meta/recipes-devtools/rust/rust-source-1.54.0.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-require rust-source.inc
-
-SRC_URI[rust.sha256sum] = "a2934f85f76a35a3796c0fefd31e91f5b6dd8377cd8c3769c1c10e7ce7a495f4"
diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc
index 1529ecfafe6..a1042d5f87a 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -1,3 +1,4 @@
+SRC_URI[rust.sha256sum] = "a2934f85f76a35a3796c0fefd31e91f5b6dd8377cd8c3769c1c10e7ce7a495f4"
 SRC_URI += "https://static.rust-lang.org/dist/rustc-${PV}-src.tar.xz;name=rust"
 
 RUSTSRC = "${WORKDIR}/rustc-${PV}-src"
diff --git a/meta/recipes-devtools/rust/rust-tools-cross-canadian_1.54.0.bb b/meta/recipes-devtools/rust/rust-tools-cross-canadian_1.54.0.bb
index 053147ba46c..2d809d68f52 100644
--- a/meta/recipes-devtools/rust/rust-tools-cross-canadian_1.54.0.bb
+++ b/meta/recipes-devtools/rust/rust-tools-cross-canadian_1.54.0.bb
@@ -1,6 +1,6 @@
 require rust-tools-cross-canadian.inc
-require rust-source-${PV}.inc
-require rust-snapshot-${PV}.inc
+require rust-source.inc
+require rust-snapshot.inc
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/rust:"
 
diff --git a/meta/recipes-devtools/rust/rust_1.54.0.bb b/meta/recipes-devtools/rust/rust_1.54.0.bb
index e7d8d70c261..036fb43334a 100644
--- a/meta/recipes-devtools/rust/rust_1.54.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.54.0.bb
@@ -1,6 +1,6 @@
 require rust-target.inc
-require rust-source-${PV}.inc
-require rust-snapshot-${PV}.inc
+require rust-source.inc
+require rust-snapshot.inc
 
 INSANE_SKIP:${PN}:class-native = "already-stripped"
 
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-10-11 17:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-10 19:09 [PATCH 01/13] rust: drop PV from include file names Alexander Kanavin
2021-10-10 19:09 ` [PATCH 02/13] rust: update 1.54.0 -> 1.55.0 Alexander Kanavin
2021-10-10 19:09 ` [PATCH 03/13] librsvg: update 2.40.21 -> 2.52.0 (transition to rust!) Alexander Kanavin
2021-10-10 19:09 ` [PATCH 04/13] librsvg: do not enable nativesdk Alexander Kanavin
2021-10-10 19:10 ` [PATCH 05/13] librsvg: add backports to fix big endian targets (e.g. mips) Alexander Kanavin
2021-10-10 19:10 ` [PATCH 06/13] librsvg: use only the target architecture to determine availability of atomic primitives Alexander Kanavin
2021-10-10 19:10 ` [PATCH 07/13] librsvg: restore reproducibility Alexander Kanavin
2021-10-10 19:10 ` [PATCH 08/13] adwaita-icon-theme: update 3.34/38 -> 41.0 Alexander Kanavin
2021-10-10 19:10 ` [PATCH 09/13] gstreamer1.0-plugins-bad: disable rsvg on x32 Alexander Kanavin
2021-10-10 19:10 ` [PATCH 10/13] rust/cargo: exclude UNINATIVE_LOADER from task signature Alexander Kanavin
2021-10-10 19:10 ` [PATCH 11/13] rust-common.bbclass: rewrite toolchain wrappers in (native) python Alexander Kanavin
2021-10-10 19:10 ` [PATCH 12/13] rust: do not write ar into target json definitions Alexander Kanavin
2021-10-10 19:10 ` [PATCH 13/13] rust: generate target definitions from (arch, abi), not just arch Alexander Kanavin
2021-10-11 17:02   ` [OE-core] " Khem Raj
2021-10-11 17:14     ` Alexander Kanavin
2021-10-11 17:22       ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).