summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-11-10 20:39:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-11 17:09:16 +0000
commit259afff65287d9010d849f926fcfd10157223875 (patch)
tree4a867149d6c4ec2787aa5a5d1882b68e9b077279 /meta/recipes-devtools
parent7d88111fab70a55b5e45b5d6d27781fc957c8c6b (diff)
downloadpoky-259afff65287d9010d849f926fcfd10157223875.tar.gz
rust: update 1.56.0 -> 1.56.1
This update includes fixes for the 'trojan source' vulnerability: https://blog.rust-lang.org/2021/11/01/Rust-1.56.1.html Drop two unused patches. (From OE-Core rev: 5ff0b0d8c6c37ebf916062f03a378fe0e34b1c53) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/cargo/cargo-cross-canadian_1.56.1.bb (renamed from meta/recipes-devtools/cargo/cargo-cross-canadian_1.56.0.bb)0
-rw-r--r--meta/recipes-devtools/cargo/cargo_1.56.1.bb (renamed from meta/recipes-devtools/cargo/cargo_1.56.0.bb)0
-rw-r--r--meta/recipes-devtools/rust/files/riscv-march.patch73
-rw-r--r--meta/recipes-devtools/rust/files/rv64gc.patch37
-rw-r--r--meta/recipes-devtools/rust/libstd-rs_1.56.1.bb (renamed from meta/recipes-devtools/rust/libstd-rs_1.56.0.bb)0
-rw-r--r--meta/recipes-devtools/rust/rust-cross-canadian_1.56.1.bb (renamed from meta/recipes-devtools/rust/rust-cross-canadian_1.56.0.bb)0
-rw-r--r--meta/recipes-devtools/rust/rust-cross_1.56.1.bb (renamed from meta/recipes-devtools/rust/rust-cross_1.56.0.bb)0
-rw-r--r--meta/recipes-devtools/rust/rust-llvm/0002-llvm-allow-env-override-of-exe-path.patch1
-rw-r--r--meta/recipes-devtools/rust/rust-llvm_1.56.1.bb (renamed from meta/recipes-devtools/rust/rust-llvm_1.56.0.bb)0
-rw-r--r--meta/recipes-devtools/rust/rust-snapshot.inc16
-rw-r--r--meta/recipes-devtools/rust/rust-source.inc2
-rw-r--r--meta/recipes-devtools/rust/rust-tools-cross-canadian_1.56.1.bb (renamed from meta/recipes-devtools/rust/rust-tools-cross-canadian_1.56.0.bb)0
-rw-r--r--meta/recipes-devtools/rust/rust_1.56.1.bb (renamed from meta/recipes-devtools/rust/rust_1.56.0.bb)0
13 files changed, 10 insertions, 119 deletions
diff --git a/meta/recipes-devtools/cargo/cargo-cross-canadian_1.56.0.bb b/meta/recipes-devtools/cargo/cargo-cross-canadian_1.56.1.bb
index 63fd69107b..63fd69107b 100644
--- a/meta/recipes-devtools/cargo/cargo-cross-canadian_1.56.0.bb
+++ b/meta/recipes-devtools/cargo/cargo-cross-canadian_1.56.1.bb
diff --git a/meta/recipes-devtools/cargo/cargo_1.56.0.bb b/meta/recipes-devtools/cargo/cargo_1.56.1.bb
index eee58fc245..eee58fc245 100644
--- a/meta/recipes-devtools/cargo/cargo_1.56.0.bb
+++ b/meta/recipes-devtools/cargo/cargo_1.56.1.bb
diff --git a/meta/recipes-devtools/rust/files/riscv-march.patch b/meta/recipes-devtools/rust/files/riscv-march.patch
deleted file mode 100644
index a10b3a4d93..0000000000
--- a/meta/recipes-devtools/rust/files/riscv-march.patch
+++ /dev/null
@@ -1,73 +0,0 @@
1Add suppor for riscv64 and riscv32 musl targets
2
3Upstream-Status: Pending
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5
6--- a/vendor/cc/src/lib.rs
7+++ b/vendor/cc/src/lib.rs
8@@ -2361,6 +2361,7 @@ impl Build {
9 "riscv-none-embed",
10 ]),
11 "riscv64gc-unknown-linux-gnu" => Some("riscv64-linux-gnu"),
12+ "riscv64gc-unknown-linux-musl" => Some("riscv64-linux-musl"),
13 "s390x-unknown-linux-gnu" => Some("s390x-linux-gnu"),
14 "sparc-unknown-linux-gnu" => Some("sparc-linux-gnu"),
15 "sparc64-unknown-linux-gnu" => Some("sparc64-linux-gnu"),
16--- a/compiler/rustc_target/src/spec/mod.rs
17+++ b/compiler/rustc_target/src/spec/mod.rs
18@@ -641,9 +641,11 @@ supported_targets! {
19 ("riscv32imc-unknown-none-elf", riscv32imc_unknown_none_elf),
20 ("riscv32imac-unknown-none-elf", riscv32imac_unknown_none_elf),
21 ("riscv32gc-unknown-linux-gnu", riscv32gc_unknown_linux_gnu),
22+ ("riscv32gc-unknown-linux-musl", riscv32gc_unknown_linux_musl),
23 ("riscv64imac-unknown-none-elf", riscv64imac_unknown_none_elf),
24 ("riscv64gc-unknown-none-elf", riscv64gc_unknown_none_elf),
25 ("riscv64gc-unknown-linux-gnu", riscv64gc_unknown_linux_gnu),
26+ ("riscv64gc-unknown-linux-musl", riscv64gc_unknown_linux_musl),
27
28 ("aarch64-unknown-none", aarch64_unknown_none),
29 ("aarch64-unknown-none-softfloat", aarch64_unknown_none_softfloat),
30--- /dev/null
31+++ b/compiler/rustc_target/src/spec/riscv32gc_unknown_linux_musl.rs
32@@ -0,0 +1,19 @@
33+use crate::spec::{CodeModel, Target, TargetOptions};
34+
35+pub fn target() -> Target {
36+ Target {
37+ llvm_target: "riscv32-unknown-linux-musl".to_string(),
38+ pointer_width: 32,
39+ data_layout: "e-m:e-p:32:32-i64:64-n32-S128".to_string(),
40+ arch: "riscv32".to_string(),
41+ options: TargetOptions {
42+ unsupported_abis: super::riscv_base::unsupported_abis(),
43+ code_model: Some(CodeModel::Medium),
44+ cpu: "generic-rv32".to_string(),
45+ features: "+m,+a,+f,+d,+c".to_string(),
46+ llvm_abiname: "ilp32d".to_string(),
47+ max_atomic_width: Some(32),
48+ ..super::linux_musl_base::opts()
49+ },
50+ }
51+}
52--- /dev/null
53+++ b/compiler/rustc_target/src/spec/riscv64gc_unknown_linux_musl.rs
54@@ -0,0 +1,19 @@
55+use crate::spec::{CodeModel, Target, TargetOptions};
56+
57+pub fn target() -> Target {
58+ Target {
59+ llvm_target: "riscv64-unknown-linux-musl".to_string(),
60+ pointer_width: 64,
61+ data_layout: "e-m:e-p:64:64-i64:64-i128:128-n64-S128".to_string(),
62+ arch: "riscv64".to_string(),
63+ options: TargetOptions {
64+ unsupported_abis: super::riscv_base::unsupported_abis(),
65+ code_model: Some(CodeModel::Medium),
66+ cpu: "generic-rv64".to_string(),
67+ features: "+m,+a,+f,+d,+c".to_string(),
68+ llvm_abiname: "lp64d".to_string(),
69+ max_atomic_width: Some(64),
70+ ..super::linux_musl_base::opts()
71+ },
72+ }
73+}
diff --git a/meta/recipes-devtools/rust/files/rv64gc.patch b/meta/recipes-devtools/rust/files/rv64gc.patch
deleted file mode 100644
index aab1e18453..0000000000
--- a/meta/recipes-devtools/rust/files/rv64gc.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1--- a/vendor/cc-1.0.60/.cargo-checksum.json
2+++ b/vendor/cc-1.0.60/.cargo-checksum.json
3@@ -1 +1 @@
4-{"files":{"Cargo.lock":"30b9e23f97015aea3eed3e17c6d76d565c2924efec8bdae64c899080847afe89","Cargo.toml":"f6f22b69df3df57c58373cdee72b22218ffa030bc375b36632660037dd72c866","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"51405d284d2e0620db62c655c652fc0ec84f20c1cb30529227355c9575a9e6dd","src/bin/gcc-shim.rs":"b77907875029494b6288841c3aed2e4939ed40708c7f597fca5c9e2570490ca6","src/com.rs":"bcdaf1c28b71e6ef889c6b08d1ce9d7c0761344a677f523bc4c3cd297957f804","src/lib.rs":"903c5f2f5dd0cc7d04f99f605a95e6abde8b38156fd4e73eefc58493f55a4e5a","src/registry.rs":"3cc1b5a50879fa751572878ae1d0afbfc960c11665258492754b2c8bccb0ff5d","src/setup_config.rs":"7014103587d3382eac599cb76f016e2609b8140970861b2237982d1db24af265","src/winapi.rs":"ea8b7edbb9ff87957254f465c2334e714c5d6b3b19a8d757c48ea7ca0881c50c","src/windows_registry.rs":"52afe8554f577c87841c48ddee3ba7ffe70a00129e1d6eeb2ec0efb3d2b9aa11","tests/cc_env.rs":"e02b3b0824ad039b47e4462c5ef6dbe6c824c28e7953af94a0f28f7b5158042e","tests/cflags.rs":"57f06eb5ce1557e5b4a032d0c4673e18fbe6f8d26c1deb153126e368b96b41b3","tests/cxxflags.rs":"c2c6c6d8a0d7146616fa1caed26876ee7bc9fcfffd525eb4743593cade5f3371","tests/support/mod.rs":"16274867f23871e9b07614eda4c7344da13d1751fed63d4f633857e40be86394","tests/test.rs":"65c073e0e2cf4aa0433066102788e9f57442719e6f32f5ad5248aa7132bb4597"},"package":"ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c"}
5\ No newline at end of file
6+{"files":{"Cargo.lock":"30b9e23f97015aea3eed3e17c6d76d565c2924efec8bdae64c899080847afe89","Cargo.toml":"f6f22b69df3df57c58373cdee72b22218ffa030bc375b36632660037dd72c866","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"51405d284d2e0620db62c655c652fc0ec84f20c1cb30529227355c9575a9e6dd","src/bin/gcc-shim.rs":"b77907875029494b6288841c3aed2e4939ed40708c7f597fca5c9e2570490ca6","src/com.rs":"bcdaf1c28b71e6ef889c6b08d1ce9d7c0761344a677f523bc4c3cd297957f804","src/lib.rs":"2788af2bdf425f267b33bc524f3e627851b52422e38f480a7e39eb834264fd73","src/registry.rs":"3cc1b5a50879fa751572878ae1d0afbfc960c11665258492754b2c8bccb0ff5d","src/setup_config.rs":"7014103587d3382eac599cb76f016e2609b8140970861b2237982d1db24af265","src/winapi.rs":"ea8b7edbb9ff87957254f465c2334e714c5d6b3b19a8d757c48ea7ca0881c50c","src/windows_registry.rs":"52afe8554f577c87841c48ddee3ba7ffe70a00129e1d6eeb2ec0efb3d2b9aa11","tests/cc_env.rs":"e02b3b0824ad039b47e4462c5ef6dbe6c824c28e7953af94a0f28f7b5158042e","tests/cflags.rs":"57f06eb5ce1557e5b4a032d0c4673e18fbe6f8d26c1deb153126e368b96b41b3","tests/cxxflags.rs":"c2c6c6d8a0d7146616fa1caed26876ee7bc9fcfffd525eb4743593cade5f3371","tests/support/mod.rs":"16274867f23871e9b07614eda4c7344da13d1751fed63d4f633857e40be86394","tests/test.rs":"65c073e0e2cf4aa0433066102788e9f57442719e6f32f5ad5248aa7132bb4597"},"package":"ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c"}
7--- a/vendor/cc-1.0.60/src/lib.rs
8+++ b/vendor/cc-1.0.60/src/lib.rs
9@@ -1639,14 +1639,17 @@ impl Build {
10 let mut parts = target.split('-');
11 if let Some(arch) = parts.next() {
12 let arch = &arch[5..];
13- cmd.args.push(("-march=rv".to_owned() + arch).into());
14 if target.contains("linux") && arch.starts_with("64") {
15+ cmd.args.push(("-march=rv64gc").into());
16 cmd.args.push("-mabi=lp64d".into());
17 } else if target.contains("linux") && arch.starts_with("32") {
18+ cmd.args.push(("-march=rv32gc").into());
19 cmd.args.push("-mabi=ilp32d".into());
20 } else if arch.starts_with("64") {
21+ cmd.args.push(("-march=rv".to_owned() + arch).into());
22 cmd.args.push("-mabi=lp64".into());
23 } else {
24+ cmd.args.push(("-march=rv".to_owned() + arch).into());
25 cmd.args.push("-mabi=ilp32".into());
26 }
27 cmd.args.push("-mcmodel=medany".into());
28@@ -2332,6 +2335,9 @@ impl Build {
29 "riscv-none-embed",
30 ]),
31 "riscv64gc-unknown-linux-gnu" => Some("riscv64-linux-gnu"),
32+ "riscv32gc-unknown-linux-gnu" => Some("riscv32-linux-gnu"),
33+ "riscv64gc-unknown-linux-musl" => Some("riscv64-linux-musl"),
34+ "riscv32gc-unknown-linux-musl" => Some("riscv32-linux-musl"),
35 "s390x-unknown-linux-gnu" => Some("s390x-linux-gnu"),
36 "sparc-unknown-linux-gnu" => Some("sparc-linux-gnu"),
37 "sparc64-unknown-linux-gnu" => Some("sparc64-linux-gnu"),
diff --git a/meta/recipes-devtools/rust/libstd-rs_1.56.0.bb b/meta/recipes-devtools/rust/libstd-rs_1.56.1.bb
index e50665e1b7..e50665e1b7 100644
--- a/meta/recipes-devtools/rust/libstd-rs_1.56.0.bb
+++ b/meta/recipes-devtools/rust/libstd-rs_1.56.1.bb
diff --git a/meta/recipes-devtools/rust/rust-cross-canadian_1.56.0.bb b/meta/recipes-devtools/rust/rust-cross-canadian_1.56.1.bb
index 766912c019..766912c019 100644
--- a/meta/recipes-devtools/rust/rust-cross-canadian_1.56.0.bb
+++ b/meta/recipes-devtools/rust/rust-cross-canadian_1.56.1.bb
diff --git a/meta/recipes-devtools/rust/rust-cross_1.56.0.bb b/meta/recipes-devtools/rust/rust-cross_1.56.1.bb
index 3179d395d2..3179d395d2 100644
--- a/meta/recipes-devtools/rust/rust-cross_1.56.0.bb
+++ b/meta/recipes-devtools/rust/rust-cross_1.56.1.bb
diff --git a/meta/recipes-devtools/rust/rust-llvm/0002-llvm-allow-env-override-of-exe-path.patch b/meta/recipes-devtools/rust/rust-llvm/0002-llvm-allow-env-override-of-exe-path.patch
index 943c2118bb..9be26677a9 100644
--- a/meta/recipes-devtools/rust/rust-llvm/0002-llvm-allow-env-override-of-exe-path.patch
+++ b/meta/recipes-devtools/rust/rust-llvm/0002-llvm-allow-env-override-of-exe-path.patch
@@ -8,6 +8,7 @@ return the libraries, include directories, etc. from inside the sysroot rather
8than from the native sysroot. Thus provide an env override for calling 8than from the native sysroot. Thus provide an env override for calling
9llvm-config from a target sysroot. 9llvm-config from a target sysroot.
10 10
11Upstream-Status: Inappropriate [oe-core specific]
11Signed-off-by: Martin Kelly <mkelly@xevo.com> 12Signed-off-by: Martin Kelly <mkelly@xevo.com>
12Signed-off-by: Khem Raj <raj.khem@gmail.com> 13Signed-off-by: Khem Raj <raj.khem@gmail.com>
13--- 14---
diff --git a/meta/recipes-devtools/rust/rust-llvm_1.56.0.bb b/meta/recipes-devtools/rust/rust-llvm_1.56.1.bb
index 222c20ad3c..222c20ad3c 100644
--- a/meta/recipes-devtools/rust/rust-llvm_1.56.0.bb
+++ b/meta/recipes-devtools/rust/rust-llvm_1.56.1.bb
diff --git a/meta/recipes-devtools/rust/rust-snapshot.inc b/meta/recipes-devtools/rust/rust-snapshot.inc
index 18e98d70a0..3418a2e0ba 100644
--- a/meta/recipes-devtools/rust/rust-snapshot.inc
+++ b/meta/recipes-devtools/rust/rust-snapshot.inc
@@ -2,17 +2,17 @@
2## snapshot info is taken from rust/src/stage0.txt 2## snapshot info is taken from rust/src/stage0.txt
3## TODO: find a way to add additional SRC_URIs based on the contents of an 3## TODO: find a way to add additional SRC_URIs based on the contents of an
4## earlier SRC_URI. 4## earlier SRC_URI.
5RS_VERSION = "1.56.0" 5RS_VERSION = "1.56.1"
6CARGO_VERSION = "1.56.0" 6CARGO_VERSION = "1.56.1"
7 7
8# TODO: Add hashes for other architecture toolchains as well. Make a script? 8# TODO: Add hashes for other architecture toolchains as well. Make a script?
9SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "f693e4f41a959d62528e0043b0b010c4815fb9f5887267ae34ff8b860f8ec4ae" 9SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "b01011cbb5503c456ecc6a557a38e099994b8497df545c661ce8fd48c5beadc6"
10SRC_URI[rustc-snapshot-x86_64.sha256sum] = "2a5f919e2036496c02ab4707a5eb8bd8a4ce6ea589e01cb39f25d213a26dcdfe" 10SRC_URI[rustc-snapshot-x86_64.sha256sum] = "a7001d1218b62d377cab15522d1b1c376b073c05f7d0ff32cf278871a5eeda3d"
11SRC_URI[cargo-snapshot-x86_64.sha256sum] = "f972125810d2db7df2e0af56d9f6a3dcdacc52d983bdf0ca17309b45fc44209b" 11SRC_URI[cargo-snapshot-x86_64.sha256sum] = "dfed65a50e2b58b6807c1fb6f8afa7abd5c3b22c682d505721d615823687c708"
12 12
13SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "3cd1c69c618e5efaf578a156c2a950c93964f9b47ba4d705d5700bdc64880231" 13SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "a83416d15354e4dfa1c1e4a756282c6be7169679f2b04eca82ed34e2116b93f0"
14SRC_URI[rustc-snapshot-aarch64.sha256sum] = "0d2491a59f697d2ea52fc429b8d4665acb5f79b0e16703f3604b61b8aa68d1c4" 14SRC_URI[rustc-snapshot-aarch64.sha256sum] = "77aec6a8c5f3d33941c79a48cda3bb08878c23dd1947dc027dfe5c4da41305b3"
15SRC_URI[cargo-snapshot-aarch64.sha256sum] = "9d97cd655845572846c058577f68ea74b6111f8ea7649db308f786475f764a09" 15SRC_URI[cargo-snapshot-aarch64.sha256sum] = "3d263eb1871b5d6ca4b198b9611925923e9353e1f5c2becf8c7b784298e88743"
16 16
17SRC_URI += " \ 17SRC_URI += " \
18 https://static.rust-lang.org/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${BUILD_ARCH};subdir=rust-snapshot-components \ 18 https://static.rust-lang.org/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${BUILD_ARCH};subdir=rust-snapshot-components \
diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc
index 326a592544..e197604716 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -1,5 +1,5 @@
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"
2SRC_URI[rust.sha256sum] = "f13468889833c88e744ad579c5d8fbb7ecb53216159b54481a90e5dcdaa9e320" 2SRC_URI[rust.sha256sum] = "61fdcc8bc2530ee18f91318347e09b7cc07e9ca04b1c627c135ecc8dcb8f2ac5"
3 3
4RUSTSRC = "${WORKDIR}/rustc-${PV}-src" 4RUSTSRC = "${WORKDIR}/rustc-${PV}-src"
5 5
diff --git a/meta/recipes-devtools/rust/rust-tools-cross-canadian_1.56.0.bb b/meta/recipes-devtools/rust/rust-tools-cross-canadian_1.56.1.bb
index 2d809d68f5..2d809d68f5 100644
--- a/meta/recipes-devtools/rust/rust-tools-cross-canadian_1.56.0.bb
+++ b/meta/recipes-devtools/rust/rust-tools-cross-canadian_1.56.1.bb
diff --git a/meta/recipes-devtools/rust/rust_1.56.0.bb b/meta/recipes-devtools/rust/rust_1.56.1.bb
index 036fb43334..036fb43334 100644
--- a/meta/recipes-devtools/rust/rust_1.56.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.56.1.bb