From be70d81a3cc2775c38270653570e9089f0a68701 Mon Sep 17 00:00:00 2001 From: Yash Shinde Date: Thu, 8 Aug 2024 03:00:34 -0700 Subject: rust: Upgrade 1.75.0->1.76.0 * Drop "--doc" option for rust oe-selftest since it is not supported on bootstrap builds for cross-targets. * Drop the following backported patches which are merged with rust v1.76 upgrade. - custom-target-cfg.patch - rustc-bootstrap.patch - rv32-missing-syscalls.patch - target-build-value.patch https://blog.rust-lang.org/2024/02/08/Rust-1.76.0.html * Drop 'rust-rustdoc' and 'rust-dbg' from 'exclude_packages' list to check for rust reproducibility. (From OE-Core rev: 71d17ed3c7be029fc68e9dd3f5d6c4aa72ef861a) Signed-off-by: Yash Shinde Signed-off-by: Richard Purdie --- .../rust/files/rustc-bootstrap.patch | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 meta/recipes-devtools/rust/files/rustc-bootstrap.patch (limited to 'meta/recipes-devtools/rust/files/rustc-bootstrap.patch') diff --git a/meta/recipes-devtools/rust/files/rustc-bootstrap.patch b/meta/recipes-devtools/rust/files/rustc-bootstrap.patch deleted file mode 100644 index 1271d75e60..0000000000 --- a/meta/recipes-devtools/rust/files/rustc-bootstrap.patch +++ /dev/null @@ -1,21 +0,0 @@ -When rust.channel is set to either beta or stable, we can't use -nightly features on bootstrap without RUSTC_BOOTSTRAP. Set RUSTC_BOOTSTRAP=1 -to use nightly features on stable or beta. - -Upstream-Status: Backport [https://github.com/rust-lang/rust/pull/119619/commits/8aa7dd06f6e50621dc10f9f9490681be8a45876f] - -Signed-off-by: onur-ozkan -Signed-off-by: Yash Shinde ---- -diff --git a/src/bootstrap/synthetic_targets.rs b/ src/bootstrap/synthetic_targets.rs -index d2c65b740da..45baf56f46b 100644 ---- a/src/bootstrap/src/core/build_steps/synthetic_targets.rs -+++ b/src/bootstrap/src/core/build_steps/synthetic_targets.rs -@@ -59,6 +59,7 @@ fn create_synthetic_target( - let mut cmd = Command::new(builder.rustc(compiler)); - cmd.arg("--target").arg(base.rustc_target_arg()); - cmd.args(["-Zunstable-options", "--print", "target-spec-json"]); -+ cmd.env("RUSTC_BOOTSTRAP", "1"); - cmd.stdout(Stdio::piped()); - - let output = cmd.spawn().unwrap().wait_with_output().unwrap(); -- cgit v1.2.3-54-g00ecf