mirror of
https://git.yoctoproject.org/poky
synced 2026-05-07 16:59:22 +00:00
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 <Yash.Shinde@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ab1bd4a04b
commit
be70d81a3c
@@ -24,7 +24,7 @@ GLIBCVERSION ?= "2.40%"
|
||||
LINUXLIBCVERSION ?= "6.10%"
|
||||
QEMUVERSION ?= "9.0%"
|
||||
GOVERSION ?= "1.22%"
|
||||
RUSTVERSION ?= "1.75%"
|
||||
RUSTVERSION ?= "1.76%"
|
||||
|
||||
PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "${GCCVERSION}"
|
||||
|
||||
@@ -210,7 +210,7 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase):
|
||||
|
||||
exclude_fail_tests = " ".join([" --exclude " + item for item in exclude_list])
|
||||
# Add exclude_fail_tests with other test arguments
|
||||
testargs = exclude_fail_tests + " --doc --no-fail-fast --bless"
|
||||
testargs = exclude_fail_tests + " --no-fail-fast --bless"
|
||||
|
||||
# wrap the execution with a qemu instance.
|
||||
# Tests are run with 512 tasks in parallel to execute all tests very quickly
|
||||
|
||||
+16
-15
@@ -12,31 +12,32 @@ Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
||||
src/lib.rs | 22 ++--------------------
|
||||
1 file changed, 2 insertions(+), 20 deletions(-)
|
||||
|
||||
Index: rustc-1.72.0-src/vendor/cc/src/lib.rs
|
||||
Index: rustc-1.76.0-src/vendor/cc/src/lib.rs
|
||||
===================================================================
|
||||
--- rustc-1.72.0-src.orig/vendor/cc/src/lib.rs
|
||||
+++ rustc-1.72.0-src/vendor/cc/src/lib.rs
|
||||
@@ -56,12 +56,11 @@
|
||||
#![allow(deprecated)]
|
||||
--- rustc-1.76.0-src.orig/vendor/cc/src/lib.rs
|
||||
+++ rustc-1.76.0-src/vendor/cc/src/lib.rs
|
||||
@@ -54,12 +54,11 @@
|
||||
#![deny(missing_docs)]
|
||||
|
||||
use std::borrow::Cow;
|
||||
-use std::collections::{hash_map, HashMap};
|
||||
+use std::collections::HashMap;
|
||||
use std::env;
|
||||
use std::ffi::{OsStr, OsString};
|
||||
use std::fmt::{self, Display, Formatter};
|
||||
use std::fs;
|
||||
use std::fs::{self, File};
|
||||
-use std::hash::Hasher;
|
||||
use std::io::{self, BufRead, BufReader, Read, Write};
|
||||
use std::path::{Component, Path, PathBuf};
|
||||
use std::process::{Child, Command, Stdio};
|
||||
@@ -1037,24 +1036,7 @@ impl Build {
|
||||
@@ -1108,25 +1107,7 @@
|
||||
|
||||
let mut objects = Vec::new();
|
||||
for file in self.files.iter() {
|
||||
- let obj = if file.has_root() {
|
||||
- // If `file` is an absolute path, prefix the `basename`
|
||||
- // with the `dirname`'s hash to ensure name uniqueness.
|
||||
- let obj = if file.has_root() || file.components().any(|x| x == Component::ParentDir) {
|
||||
- // If `file` is an absolute path or might not be usable directly as a suffix due to
|
||||
- // using "..", use the `basename` prefixed with the `dirname`'s hash to ensure name
|
||||
- // uniqueness.
|
||||
- let basename = file
|
||||
- .file_name()
|
||||
- .ok_or_else(|| Error::new(ErrorKind::InvalidArgument, "file_name() failure"))?
|
||||
@@ -56,12 +57,12 @@ Index: rustc-1.72.0-src/vendor/cc/src/lib.rs
|
||||
let obj = if !obj.starts_with(&dst) {
|
||||
dst.join(obj.file_name().ok_or_else(|| {
|
||||
Error::new(ErrorKind::IOError, "Getting object file details failed.")
|
||||
Index: rustc-1.72.0-src/vendor/cc/.cargo-checksum.json
|
||||
Index: rustc-1.76.0-src/vendor/cc/.cargo-checksum.json
|
||||
===================================================================
|
||||
--- rustc-1.72.0-src.orig/vendor/cc/.cargo-checksum.json
|
||||
+++ rustc-1.72.0-src/vendor/cc/.cargo-checksum.json
|
||||
--- rustc-1.76.0-src.orig/vendor/cc/.cargo-checksum.json
|
||||
+++ rustc-1.76.0-src/vendor/cc/.cargo-checksum.json
|
||||
@@ -1 +1 @@
|
||||
-{"files":{"Cargo.lock":"dddb9c49058d411a098e98dc1c06e3bc89f859a2080d96c11b11aec67394bb8c","Cargo.toml":"1953a8bc4b98e351fe75917c151b1e08a46531d562aebba25a90add4aadecac2","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"58af5106352aafa62175a90f8a5f25fa114028bf909220dc0735d79745999ec1","src/bin/gcc-shim.rs":"36dc4e447428e73c548cc7106ca1e8f282c098463b014e13a729a44445de4880","src/com.rs":"29d0dee08a656ab1a4cc3e5fe24542e0fab5c1373cbc9b05059f7572cf9b8313","src/lib.rs":"17a4659710aa290c4ed9c23063c7b202c5bcf2a84de33aa1f01fc6fded69a1f8","src/registry.rs":"98ae2b71781acc49297e5544fa0cf059f735636f8f1338edef8dbf7232443945","src/setup_config.rs":"72deaf1927c0b713fd5c2b2d5b8f0ea3a303a00fda1579427895cac26a94122d","src/vs_instances.rs":"2d3f8278a803b0e7052f4eeb1979b29f963dd0143f4458e2cb5f33c4e5f0963b","src/winapi.rs":"e128e95b2d39ae7a02f54a7e25d33c488c14759b9f1a50a449e10545856950c3","src/windows_registry.rs":"1f973f804b4b451e48ff6d98ce660355772f164dfdf79a6ae514645c7c764005","tests/cc_env.rs":"e02b3b0824ad039b47e4462c5ef6dbe6c824c28e7953af94a0f28f7b5158042e","tests/cflags.rs":"57f06eb5ce1557e5b4a032d0c4673e18fbe6f8d26c1deb153126e368b96b41b3","tests/cxxflags.rs":"c2c6c6d8a0d7146616fa1caed26876ee7bc9fcfffd525eb4743593cade5f3371","tests/support/mod.rs":"a3c8d116973bb16066bf6ec4de5143183f97de7aad085d85f8118a2eaac3e1e0","tests/test.rs":"61fb35ae6dd5cf506ada000bdd82c92e9f8eac9cc053b63e83d3f897436fbf8f"},"package":"50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f"}
|
||||
-{"files":{"Cargo.lock":"f36b5fb99e6a2272cb5ad088fb7e21baa135c5335f9babfd3d6e79cd915d5082","Cargo.toml":"2be00f2836c949a6ff7120610ee0191a6d12d50f141aafd6622d4c2e932f0d71","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"fe18a56553aa54cbef39b659e98340ddf4dbb18f156e7b34a8be25d97e4d123f","src/bin/gcc-shim.rs":"36dc4e447428e73c548cc7106ca1e8f282c098463b014e13a729a44445de4880","src/com.rs":"cf188faf2651f613ee5c38fd6af29188ff4b0c3036b615874bce0e3b6e61a96f","src/lib.rs":"cdf0c6dc4e12ad313fb93ab42f994e26c7e5aaeb07ca61620032d8f4014dacd0","src/os_pipe.rs":"5b950b491b93226885c34a9070387c081f50029fdf19770bb983bca2a64aa705","src/os_pipe/unix.rs":"64a765352b3e94c4590d11f99824dc60a887fe5bc61eba81398aab1180908f55","src/os_pipe/windows.rs":"fa35d5b6adb83a8442ec06b08f3d30631ac7b8513f3cf8b3986d27b7ee58cf93","src/registry.rs":"d888d22abd8a32a61562529274b2d5d2f9e5a3bfa754589d6beb04b740144771","src/setup_config.rs":"5fee84b80d089ae4a92f10080b072ea2bb32c2edbcdc759cb9072e380404fc46","src/vs_instances.rs":"2d3f8278a803b0e7052f4eeb1979b29f963dd0143f4458e2cb5f33c4e5f0963b","src/winapi.rs":"132a7c23d57911db0bef03446cd106e7f75818096132522219d72b9d2a8f247f","src/windows_registry.rs":"c58ae361caf3b6f13dff515e25b3a7e5cf443bb9470d2d347784b5872c3de06d","src/windows_sys.rs":"ff7cdf4450db85c8704dfd3aa765dd62da24f0650825457094405af82958f688","tests/cc_env.rs":"e02b3b0824ad039b47e4462c5ef6dbe6c824c28e7953af94a0f28f7b5158042e","tests/cflags.rs":"57f06eb5ce1557e5b4a032d0c4673e18fbe6f8d26c1deb153126e368b96b41b3","tests/cxxflags.rs":"c2c6c6d8a0d7146616fa1caed26876ee7bc9fcfffd525eb4743593cade5f3371","tests/support/mod.rs":"a3c8d116973bb16066bf6ec4de5143183f97de7aad085d85f8118a2eaac3e1e0","tests/test.rs":"bab74eb7e7a383cb5da4143e74c26ddfa3e7162b5f46c1d46a722250e925444d"},"package":"f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"}
|
||||
\ No newline at end of file
|
||||
+{"files":{"Cargo.lock":"dddb9c49058d411a098e98dc1c06e3bc89f859a2080d96c11b11aec67394bb8c","Cargo.toml":"1953a8bc4b98e351fe75917c151b1e08a46531d562aebba25a90add4aadecac2","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"58af5106352aafa62175a90f8a5f25fa114028bf909220dc0735d79745999ec1","src/bin/gcc-shim.rs":"36dc4e447428e73c548cc7106ca1e8f282c098463b014e13a729a44445de4880","src/com.rs":"29d0dee08a656ab1a4cc3e5fe24542e0fab5c1373cbc9b05059f7572cf9b8313","src/lib.rs":"dfb36b17362e9a5b266cb19a229d982e8c0bba784b1e99769f690692b0cd5c4e","src/registry.rs":"98ae2b71781acc49297e5544fa0cf059f735636f8f1338edef8dbf7232443945","src/setup_config.rs":"72deaf1927c0b713fd5c2b2d5b8f0ea3a303a00fda1579427895cac26a94122d","src/vs_instances.rs":"2d3f8278a803b0e7052f4eeb1979b29f963dd0143f4458e2cb5f33c4e5f0963b","src/winapi.rs":"e128e95b2d39ae7a02f54a7e25d33c488c14759b9f1a50a449e10545856950c3","src/windows_registry.rs":"1f973f804b4b451e48ff6d98ce660355772f164dfdf79a6ae514645c7c764005","tests/cc_env.rs":"e02b3b0824ad039b47e4462c5ef6dbe6c824c28e7953af94a0f28f7b5158042e","tests/cflags.rs":"57f06eb5ce1557e5b4a032d0c4673e18fbe6f8d26c1deb153126e368b96b41b3","tests/cxxflags.rs":"c2c6c6d8a0d7146616fa1caed26876ee7bc9fcfffd525eb4743593cade5f3371","tests/support/mod.rs":"a3c8d116973bb16066bf6ec4de5143183f97de7aad085d85f8118a2eaac3e1e0","tests/test.rs":"61fb35ae6dd5cf506ada000bdd82c92e9f8eac9cc053b63e83d3f897436fbf8f"},"package":"50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f"}
|
||||
+{"files":{"Cargo.lock":"f36b5fb99e6a2272cb5ad088fb7e21baa135c5335f9babfd3d6e79cd915d5082","Cargo.toml":"2be00f2836c949a6ff7120610ee0191a6d12d50f141aafd6622d4c2e932f0d71","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"fe18a56553aa54cbef39b659e98340ddf4dbb18f156e7b34a8be25d97e4d123f","src/bin/gcc-shim.rs":"36dc4e447428e73c548cc7106ca1e8f282c098463b014e13a729a44445de4880","src/com.rs":"cf188faf2651f613ee5c38fd6af29188ff4b0c3036b615874bce0e3b6e61a96f","src/lib.rs":"c5a1ae53355aae6da9179faa7c46277fc86d9ca46e37a0eb296cd92eb3f0ca72","src/os_pipe.rs":"5b950b491b93226885c34a9070387c081f50029fdf19770bb983bca2a64aa705","src/os_pipe/unix.rs":"64a765352b3e94c4590d11f99824dc60a887fe5bc61eba81398aab1180908f55","src/os_pipe/windows.rs":"fa35d5b6adb83a8442ec06b08f3d30631ac7b8513f3cf8b3986d27b7ee58cf93","src/registry.rs":"d888d22abd8a32a61562529274b2d5d2f9e5a3bfa754589d6beb04b740144771","src/setup_config.rs":"5fee84b80d089ae4a92f10080b072ea2bb32c2edbcdc759cb9072e380404fc46","src/vs_instances.rs":"2d3f8278a803b0e7052f4eeb1979b29f963dd0143f4458e2cb5f33c4e5f0963b","src/winapi.rs":"132a7c23d57911db0bef03446cd106e7f75818096132522219d72b9d2a8f247f","src/windows_registry.rs":"c58ae361caf3b6f13dff515e25b3a7e5cf443bb9470d2d347784b5872c3de06d","src/windows_sys.rs":"ff7cdf4450db85c8704dfd3aa765dd62da24f0650825457094405af82958f688","tests/cc_env.rs":"e02b3b0824ad039b47e4462c5ef6dbe6c824c28e7953af94a0f28f7b5158042e","tests/cflags.rs":"57f06eb5ce1557e5b4a032d0c4673e18fbe6f8d26c1deb153126e368b96b41b3","tests/cxxflags.rs":"c2c6c6d8a0d7146616fa1caed26876ee7bc9fcfffd525eb4743593cade5f3371","tests/support/mod.rs":"a3c8d116973bb16066bf6ec4de5143183f97de7aad085d85f8118a2eaac3e1e0","tests/test.rs":"bab74eb7e7a383cb5da4143e74c26ddfa3e7162b5f46c1d46a722250e925444d"},"package":"f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"}
|
||||
\ No newline at end of file
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
Detect and fetch custom target configurations when rustc is
|
||||
bootstrapped in rust oe-selftest.
|
||||
|
||||
Upstream-Status: Backport [https://github.com/rust-lang/rust/pull/119619/commits/26c71cbcf1a9bce6ceb962d753c467d098f63cf6]
|
||||
|
||||
Signed-off-by: onur-ozkan <work@onurozkan.dev>
|
||||
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
|
||||
---
|
||||
diff --git a/src/tools/compiletest/src/common.rs b/src/tools/compiletest/src/common.rs
|
||||
index e85f6319936..c45c0b3c652 100644
|
||||
--- a/src/tools/compiletest/src/common.rs
|
||||
+++ b/src/tools/compiletest/src/common.rs
|
||||
@@ -479,6 +479,7 @@ fn new(config: &Config) -> TargetCfgs {
|
||||
let mut targets: HashMap<String, TargetCfg> = serde_json::from_str(&rustc_output(
|
||||
config,
|
||||
&["--print=all-target-specs-json", "-Zunstable-options"],
|
||||
+ Default::default(),
|
||||
))
|
||||
.unwrap();
|
||||
|
||||
@@ -491,16 +492,33 @@ fn new(config: &Config) -> TargetCfgs {
|
||||
let mut all_families = HashSet::new();
|
||||
let mut all_pointer_widths = HashSet::new();
|
||||
|
||||
- // Handle custom target specs, which are not included in `--print=all-target-specs-json`.
|
||||
- if config.target.ends_with(".json") {
|
||||
- targets.insert(
|
||||
- config.target.clone(),
|
||||
- serde_json::from_str(&rustc_output(
|
||||
- config,
|
||||
- &["--print=target-spec-json", "-Zunstable-options", "--target", &config.target],
|
||||
- ))
|
||||
- .unwrap(),
|
||||
- );
|
||||
+ // If current target is not included in the `--print=all-target-specs-json` output,
|
||||
+ // we check whether it is a custom target from the user or a synthetic target from bootstrap.
|
||||
+ if !targets.contains_key(&config.target) {
|
||||
+ let mut envs: HashMap<String, String> = HashMap::new();
|
||||
+
|
||||
+ if let Ok(t) = std::env::var("RUST_TARGET_PATH") {
|
||||
+ envs.insert("RUST_TARGET_PATH".into(), t);
|
||||
+ }
|
||||
+
|
||||
+ // This returns false only when the target is neither a synthetic target
|
||||
+ // nor a custom target from the user, indicating it is most likely invalid.
|
||||
+ if config.target.ends_with(".json") || !envs.is_empty() {
|
||||
+ targets.insert(
|
||||
+ config.target.clone(),
|
||||
+ serde_json::from_str(&rustc_output(
|
||||
+ config,
|
||||
+ &[
|
||||
+ "--print=target-spec-json",
|
||||
+ "-Zunstable-options",
|
||||
+ "--target",
|
||||
+ &config.target,
|
||||
+ ],
|
||||
+ envs,
|
||||
+ ))
|
||||
+ .unwrap(),
|
||||
+ );
|
||||
+ }
|
||||
}
|
||||
|
||||
for (target, cfg) in targets.iter() {
|
||||
@@ -545,7 +563,9 @@ fn get_current_target_config(
|
||||
// code below extracts them from `--print=cfg`: make sure to only override fields that can
|
||||
// actually be changed with `-C` flags.
|
||||
for config in
|
||||
- rustc_output(config, &["--print=cfg", "--target", &config.target]).trim().lines()
|
||||
+ rustc_output(config, &["--print=cfg", "--target", &config.target], Default::default())
|
||||
+ .trim()
|
||||
+ .lines()
|
||||
{
|
||||
let (name, value) = config
|
||||
.split_once("=\"")
|
||||
@@ -624,11 +644,12 @@ pub enum Endian {
|
||||
Big,
|
||||
}
|
||||
|
||||
-fn rustc_output(config: &Config, args: &[&str]) -> String {
|
||||
+fn rustc_output(config: &Config, args: &[&str], envs: HashMap<String, String>) -> String {
|
||||
let mut command = Command::new(&config.rustc_path);
|
||||
add_dylib_path(&mut command, iter::once(&config.compile_lib_path));
|
||||
command.args(&config.target_rustcflags).args(args);
|
||||
command.env("RUSTC_BOOTSTRAP", "1");
|
||||
+ command.envs(envs);
|
||||
|
||||
let output = match command.output() {
|
||||
Ok(output) => output,
|
||||
|
||||
@@ -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 <work@onurozkan.dev>
|
||||
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
|
||||
---
|
||||
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();
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,26 +0,0 @@
|
||||
Add correct build value for cross-compiled targets on stage1 when
|
||||
bootstapping rustc.
|
||||
|
||||
Upstream-Status: Backport [https://github.com/rust-lang/rust/pull/119619/commits/b888e2f82b9dbe81875f50d13adbc0271a9401ff]
|
||||
|
||||
Signed-off-by: onur-ozkan <work@onurozkan.dev>
|
||||
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
|
||||
---
|
||||
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
|
||||
--- a/src/bootstrap/src/core/build_steps/test.rs
|
||||
+++ b/src/bootstrap/src/core/build_steps/test.rs
|
||||
@@ -1489,8 +1489,12 @@
|
||||
// NOTE: Only stage 1 is special cased because we need the rustc_private artifacts to match the
|
||||
// running compiler in stage 2 when plugins run.
|
||||
let stage_id = if suite == "ui-fulldeps" && compiler.stage == 1 {
|
||||
- compiler = builder.compiler(compiler.stage - 1, target);
|
||||
- format!("stage{}-{}", compiler.stage + 1, target)
|
||||
+ // At stage 0 (stage - 1) we are using the beta compiler. Using `self.target` can lead finding
|
||||
+ // an incorrect compiler path on cross-targets, as the stage 0 beta compiler is always equal
|
||||
+ // to `build.build` in the configuration.
|
||||
+ let build = builder.build.build;
|
||||
+ compiler = builder.compiler(compiler.stage - 1, build);
|
||||
+ format!("stage{}-{}", compiler.stage + 1, build)
|
||||
} else {
|
||||
format!("stage{}-{}", compiler.stage, target)
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
@@ -4,47 +4,47 @@
|
||||
## The exact (previous) version that has been used is specified in the source tarball.
|
||||
## The version is replicated here.
|
||||
|
||||
SNAPSHOT_VERSION = "1.74.0"
|
||||
SNAPSHOT_VERSION = "1.75.0"
|
||||
|
||||
SRC_URI[cargo-snapshot-aarch64.sha256sum] = "a18dc9132cf76ccba90bcbb53b56a4d37ebfb34845f61e79f7b5d4710a269647"
|
||||
SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "c5ad01692bc08ce6f4db2ac815be63498b45013380c71f22b3d33bf3be767270"
|
||||
SRC_URI[rustc-snapshot-aarch64.sha256sum] = "a49bb365481913ead305658e7e9dc621da7895036b840fb57b1bc85c721d07e6"
|
||||
SRC_URI[cargo-snapshot-aarch64.sha256sum] = "cf367bccbc97ba86b4cf8a0141c9c270523e38f865dc7220b3cfdd79b67200ed"
|
||||
SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "2ea0dc380ac1fced245bafadafd0da50167a4a416b6011e3d73ba3e657a71d15"
|
||||
SRC_URI[rustc-snapshot-aarch64.sha256sum] = "b1d7bb8b0420b71585cf9c4eb5fd1e986fd83edc2d393510b54a9b20272386a3"
|
||||
|
||||
SRC_URI[cargo-snapshot-i686.sha256sum] = "9f5b5226a69f95950a381ec5bb15dde7a90865a6df8aa0b470082a40d42d9f38"
|
||||
SRC_URI[rust-std-snapshot-i686.sha256sum] = "69757b72def9c433753e8bb575c817fc1ba389cf1a9c25276db1491ec025e495"
|
||||
SRC_URI[rustc-snapshot-i686.sha256sum] = "7a2bc1bf7e51942d32e82f461eacebe7f929c3eec210dcb7dc6624efd997d7da"
|
||||
SRC_URI[cargo-snapshot-i686.sha256sum] = "ab652e4755def10f37c245245643d60f56cb28a7dcd2defb8a1d560eafbf08f1"
|
||||
SRC_URI[rust-std-snapshot-i686.sha256sum] = "42c0aba08ddcad191c84adcb5b6479b4599b9e4656e4e2b6d3ed5b46fa4a04fb"
|
||||
SRC_URI[rustc-snapshot-i686.sha256sum] = "a39aed533c63b4da6c0d9f30e76d7290ed5b3be2e66bde43d02764d7b50d382f"
|
||||
|
||||
SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "77d6d55122150d8fc56d31fb166fd1b2ae48bff7376459c1b0030727fc604998"
|
||||
SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "13b85a882e912d0d8b3228feb5c263d34ec353d483c9defbd3e6bba38935553b"
|
||||
SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "703e8c81f9ca3100fc459db92fd5899de62cf77393f334f98159cd97feb11633"
|
||||
SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "e4e4b38375a2fa0697b80ef6d7b0f8a4505836baded47b755ad751fbe605354b"
|
||||
SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "fede876247ca3977a001cfca9038851eb99dd38063fc2bec439e75e25453242d"
|
||||
SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "36a6507eb6c5fc6d3884579e908ab7865436a1705e42677bcb5d1d75e5bee8d7"
|
||||
|
||||
SRC_URI[cargo-snapshot-powerpc.sha256sum] = "08ea8a345839f34d26f21b94ed6d458e6a38513999f7ddc05175c371983e6deb"
|
||||
SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "458ee056fbeccf1cf96c20506654e5e9104c4e8f23d46cd4bb9b97ff5b3f4d55"
|
||||
SRC_URI[rustc-snapshot-powerpc.sha256sum] = "d4095cbe26ec197274dae9409e68843653e8c08c0b79e8cd74e72d9907e99816"
|
||||
SRC_URI[cargo-snapshot-powerpc.sha256sum] = "c758265f0fe5a5c36fccd9f67a297c3274a795e67530aa8c09d376840d6184af"
|
||||
SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "eb56d591650773c7ce00f32fde1adcb878b4010167f348ea167d492fba8628d0"
|
||||
SRC_URI[rustc-snapshot-powerpc.sha256sum] = "49a6adcc8d26a38a77048b13b46f83581ee33262627099ea4f6d0d8eacaf889c"
|
||||
|
||||
SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "696863642318f139634e6856f5e946ea970318ce79d4d9b1595871a70a662a89"
|
||||
SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "7ec56629b7d887753ce3a895fb73b77d2d395acac30207c2b69237ef63279872"
|
||||
SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "ca162463db262df9d646687386a1c19f15c8ca9bf1f29eea94f2a8a6d7a6102d"
|
||||
SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "409c9f596e9f88da78587edff1633c319ac0ac14ea622f26d30d16ec1f92e1c9"
|
||||
SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "776ea8d200f65cacdb619eecae319511ec2ab398321c8d976c846b9dc44b87d5"
|
||||
SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "6888a22227037aa3015a2195905acdea420e51f0909cf6653b30765938ea5745"
|
||||
|
||||
SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "2eccd404aabe5137a8e45b6173c27d08862a0e674d5866be71aff1434f271d50"
|
||||
SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "785956d68855de18546c87d6d06cd2505cb8a10edba84327bf2b448420a31d55"
|
||||
SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "8727b1a92e88ac1ce05198ee185dac86553edd7f50b726781c9ab64544b59809"
|
||||
SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "6b293abc4cafba101c714b37dc369cd229e04151efad626896b811165019bb95"
|
||||
SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "22286818e4f0f13f712082e7a740aceb32e28ab3f568d6ed0e9e06b4972b30f5"
|
||||
SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "5268dd59f78f946d2dba8ad362ba8c724432422c6f497a69f6dbad240e4497d0"
|
||||
|
||||
SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "5b224e465e006b5fe959ad64d0df0540c4318ba4e39edd89794d520eef60b026"
|
||||
SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "2a500156825dde03a53c965e5764a440b1ebce973b8a31f21e8bd8104271d56e"
|
||||
SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "f4f27f1c40208b61ea7e61f9edf2de1787aea78a1edb7fe15bceb20de5c7a4a3"
|
||||
SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "13937d19fc5fa531c1def3a526695be94aeb34e7f8653fc6e5acd782bcc6267d"
|
||||
SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "35db7870fbe27308c2a9bad0371cd05af2fd2975e00b7f5a5bb305798960a9cb"
|
||||
SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "4dbed202d8d11eb1fb29204bf9d8358e8da85791e990ec1dd576f75701b33abb"
|
||||
|
||||
SRC_URI[cargo-snapshot-s390x.sha256sum] = "06267377c811271d6e4ba6feea1d4b84a9f4c5c8d1dbd46092d0a0595f24e9b6"
|
||||
SRC_URI[rust-std-snapshot-s390x.sha256sum] = "35142541b88a1244c8225c64ee18585446d7e67841a9335ccaa95acf2d34dde5"
|
||||
SRC_URI[rustc-snapshot-s390x.sha256sum] = "41eae7788549aec58a6980ae6222d3330a01a37d1e7856d087a4e9c8a19aa890"
|
||||
SRC_URI[cargo-snapshot-s390x.sha256sum] = "720cabf7e03d91bf080cb15d5ebb8fb56eae1938b7ab763f82aa46a997d1ddb7"
|
||||
SRC_URI[rust-std-snapshot-s390x.sha256sum] = "810be45b498c4ce1ba9181702a2534c5a35e52fbab547d94b62f70e28388748d"
|
||||
SRC_URI[rustc-snapshot-s390x.sha256sum] = "ce4faea55ee9a5032ad6eca5f1b0be3d572d6fc0146366c0c984831322b6e3a3"
|
||||
|
||||
SRC_URI[cargo-snapshot-x86_64.sha256sum] = "f219386d4569c40b660518e99267afff428c13bf980bda7a614c8d4038d013f6"
|
||||
SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "548413213012e2f62b08ed8a913a51210ae7402619027224580176031f2789ea"
|
||||
SRC_URI[rustc-snapshot-x86_64.sha256sum] = "7d464be2ae0d6ce69f056d1ea9a8ce2b3b1d537418caea216fdd303903972181"
|
||||
SRC_URI[cargo-snapshot-x86_64.sha256sum] = "6ac164e7da969a1d524f747f22792e9aa08bc7446f058314445a4f3c1d31a6bd"
|
||||
SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "136b132199f7bbda2aa0bbff6d1e6ae7d5fca2994a2f2a432a5e99de224b6314"
|
||||
SRC_URI[rustc-snapshot-x86_64.sha256sum] = "2824ba4045acdddfa436da4f0bb72807b64a089aa2e7c9a66ca1a3a571114ce7"
|
||||
|
||||
SRC_URI[rust-std-snapshot-i586.sha256sum] = "bd4502462c5e2b2617b23f28862e544f14c4d02658f6d331f0cfbbba914aa4c0"
|
||||
SRC_URI[rust-std-snapshot-i586.sha256sum] = "7bdc6cd915a47e116ca78e07fe8d5d8acb6217e2aa6187806f782d81853a39b3"
|
||||
|
||||
SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "68e96875ca7fc6ed0e023fcf752f28b95e9cc7d9881af4e8e167259fdaec7168"
|
||||
SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "6943fda4f3958f28883cc5fb9f455611cc42f4d228841984b8a2a0123e7b65a7"
|
||||
|
||||
SRC_URI += " \
|
||||
${RUST_DIST_SERVER}/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \
|
||||
|
||||
@@ -4,12 +4,8 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n
|
||||
file://hardcodepaths.patch;patchdir=${RUSTSRC} \
|
||||
file://zlib-off64_t.patch;patchdir=${RUSTSRC} \
|
||||
file://0001-Revert-Map-source-absolute-paths-to-OUT_DIR-as-relat.patch;patchdir=${RUSTSRC} \
|
||||
file://rv32-missing-syscalls.patch;patchdir=${RUSTSRC} \
|
||||
file://rv32-rustix-libc-backend.patch;patchdir=${RUSTSRC} \
|
||||
file://rv32-cargo-rustix-0.38.19-fix.patch;patchdir=${RUSTSRC} \
|
||||
file://custom-target-cfg.patch;patchdir=${RUSTSRC} \
|
||||
file://rustc-bootstrap.patch;patchdir=${RUSTSRC} \
|
||||
file://target-build-value.patch;patchdir=${RUSTSRC} \
|
||||
file://0001-Handle-vendored-sources-when-remapping-paths.patch;patchdir=${RUSTSRC} \
|
||||
file://repro-issue-fix-with-v175.patch;patchdir=${RUSTSRC} \
|
||||
file://0001-cargo-do-not-write-host-information-into-compilation.patch;patchdir=${RUSTSRC} \
|
||||
@@ -17,7 +13,7 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n
|
||||
file://cross-targets-backport.patch;patchdir=${RUSTSRC} \
|
||||
file://rust-oe-selftest.patch;patchdir=${RUSTSRC} \
|
||||
"
|
||||
SRC_URI[rust.sha256sum] = "4526f786d673e4859ff2afa0bab2ba13c918b796519a25c1acce06dba9542340"
|
||||
SRC_URI[rust.sha256sum] = "805482b436442a6786d270cacbab8f00529e06141b27b7fb01909b97ce4f3464"
|
||||
|
||||
RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user