mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
rust: Upgrade 1.85.1->1.86.0
Rust stable version updated to 1.86.0. https://blog.rust-lang.org/2025/04/03/Rust-1.86.0.html * Add pkgconfig-native and openssl to resolve openssl-sys crate dependency on pkg-config. As per rust document this is a required dependency. Fixes: | error: failed to run custom build command for `openssl-sys v0.9.106` | Could not find openssl via pkg-config: | The pkg-config command could not be found. | | Most likely, you need to install a pkg-config package for your OS. | Try `apt install pkg-config`, or `yum install pkg-config`, | or `pkg install pkg-config`, or `apk add pkgconfig` depending on your distribution https://crates.io/crates/openssl-sys/0.9.108/dependencies https://github.com/rust-lang/rust/blob/master/INSTALL.md#dependencies * Add Ninja as a dependency for building Rust to prevent bootstrap build regression. Fixes: | Building LLD for x86_64-unknown-linux-gnu | | Couldn't find required command: ninja (or ninja-build) | | You should install ninja as described at | <https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages>, | or set `ninja = false` in the `[llvm]` section of `config.toml`. | Alternatively, set `download-ci-llvm = true` in that `[llvm]` section | to download LLVM rather than building it. * Add bash to DEPENDS to resolve missing dependency for subtree-sync.sh Fixes: ERROR: rust-1.86.0-r0 do_package_qa: QA Issue: /usr/lib/rustlib/src/rust/library/portable-simd/subtree-sync.sh contained in package rust requires /bin/bash, but no providers found in RDEPENDS:rust? [file-rdeps] * Add do_install:append() task to remove cargo bin from rust native builds. This resolves the following conflict: Fixes: ERROR: libstd-rs-1.86.0-r0 do_prepare_recipe_sysroot: The file /usr/bin/cargo is installed by both rust-native and cargo-native, aborting * Update Unicode-3.0 license checksums. License-Update: Copyright and license files to distributions are updated.f9c16997dcIt adds copyright and license files (including HTML versions) to distributions, aligns with license compliance tools like reuse, and ensures all required license texts are properly included and formatted. * Disable building of extended Rust tools to reduce build time and filesystem usage. Update config.toml to disable building of extended Rust tools that are not required. This helps minimize unnecessary build time and filesystem usage. * The "remote-test-server" bin is now generated in stage2-tools-bin dir rather than stage1. Update the test suite accordingly. * Fix do_package QA issue by packing missing zsh files and directories: Fixes: do_package: QA Issue: rust: Files/directories were installed but not shipped in any package: /usr/share/zsh /usr/share/zsh/site-functions /usr/share/zsh/site-functions/_cargo Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install * From v1.86.0, a "self-contained" LLD is built as part of rust bootstrap build. This results in additional build time and installations. Disable rust-lld in config.toml to prevent it. References: https://github.com/rust-lang/rust/pull/1350018744b44e6b* Drop Zdual-proc-macros-additional-check.patch patch since it's merged with v1.86.0139d6ba054* LTO config is applied to rustdoc from v1.86.0. Rebase 0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch which disables it to avoid suffixes in binaries causing non-reproducibility. https://github.com/rust-lang/rust/commit/1fe351b * Restrict tests using "//@only <target_arch>" to avoid failures on riscv64, which is now part of default AB testing. Since riscv64 is Tier 2 with no automated testing, some tests may fail. This approach ensures tests continue running on supported architectures while skipping them on riscv64. https://doc.rust-lang.org/rustc/platform-support.html#tier-2-with-host-tools (From OE-Core rev: c064ef18343a956aea397d36d2e7665d6c8afd7d) Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
aad1f72e15
commit
72d932cc5b
@@ -12,7 +12,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
|
||||
GCCVERSION ?= "15.%"
|
||||
SDKGCCVERSION ?= "${GCCVERSION}"
|
||||
GLIBCVERSION ?= "2.41%"
|
||||
RUSTVERSION ?= "1.85.1%"
|
||||
RUSTVERSION ?= "1.86.0%"
|
||||
|
||||
PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "${GCCVERSION}"
|
||||
|
||||
@@ -104,7 +104,7 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase):
|
||||
# Copy remote-test-server to image through scp
|
||||
host_sys = get_bb_var("RUST_BUILD_SYS", "rust")
|
||||
ssh = SSHControl(ip=qemu.ip, logfile=qemu.sshlog, user="root")
|
||||
ssh.copy_to(builddir + "/build/" + host_sys + "/stage1-tools-bin/remote-test-server","~/")
|
||||
ssh.copy_to(builddir + "/build/" + host_sys + "/stage2-tools-bin/remote-test-server","~/")
|
||||
# Execute remote-test-server on image through background ssh
|
||||
command = '~/remote-test-server --bind 0.0.0.0:12345 -v'
|
||||
sshrun=subprocess.Popen(("ssh", '-o', 'UserKnownHostsFile=/dev/null', '-o', 'StrictHostKeyChecking=no', '-f', "root@%s" % qemu.ip, command), shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -24,23 +24,53 @@ diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core
|
||||
index 087df2f8a..00790affb 100644
|
||||
--- a/src/bootstrap/src/core/build_steps/tool.rs
|
||||
+++ b/src/bootstrap/src/core/build_steps/tool.rs
|
||||
@@ -635,7 +635,7 @@ impl Step for Rustdoc {
|
||||
}
|
||||
@@ -1,14 +1,11 @@
|
||||
use std::path::PathBuf;
|
||||
use std::{env, fs};
|
||||
|
||||
// NOTE: Never modify the rustflags here, it breaks the build cache for other tools!
|
||||
- let cargo = prepare_tool_cargo(
|
||||
+ let mut cargo = prepare_tool_cargo(
|
||||
builder,
|
||||
build_compiler,
|
||||
Mode::ToolRustc,
|
||||
@@ -645,6 +645,7 @@ impl Step for Rustdoc {
|
||||
-use crate::core::build_steps::compile::is_lto_stage;
|
||||
use crate::core::build_steps::toolstate::ToolState;
|
||||
use crate::core::build_steps::{compile, llvm};
|
||||
use crate::core::builder;
|
||||
-use crate::core::builder::{
|
||||
- Builder, Cargo as CargoCommand, RunConfig, ShouldRun, Step, cargo_profile_var,
|
||||
-};
|
||||
-use crate::core::config::{DebuginfoLevel, RustcLto, TargetSelection};
|
||||
+use crate::core::builder::{Builder, Cargo as CargoCommand, RunConfig, ShouldRun, Step};
|
||||
+use crate::core::config::{DebuginfoLevel, TargetSelection};
|
||||
use crate::utils::channel::GitInfo;
|
||||
use crate::utils::exec::{BootstrapCommand, command};
|
||||
use crate::utils::helpers::{add_dylib_path, exe, t};
|
||||
@@ -658,19 +655,7 @@
|
||||
SourceType::InTree,
|
||||
features.as_slice(),
|
||||
);
|
||||
-
|
||||
- // rustdoc is performance sensitive, so apply LTO to it.
|
||||
- if is_lto_stage(&build_compiler) {
|
||||
- let lto = match builder.config.rust_lto {
|
||||
- RustcLto::Off => Some("off"),
|
||||
- RustcLto::Thin => Some("thin"),
|
||||
- RustcLto::Fat => Some("fat"),
|
||||
- RustcLto::ThinLocal => None,
|
||||
- };
|
||||
- if let Some(lto) = lto {
|
||||
- cargo.env(cargo_profile_var("LTO", &builder.config), lto);
|
||||
- }
|
||||
- }
|
||||
+ cargo.rustflag("-Clto=off");
|
||||
|
||||
let _guard = builder.msg_tool(
|
||||
Kind::Build,
|
||||
--
|
||||
2.39.5
|
||||
|
||||
diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/builder/mod.rs
|
||||
--- a/src/bootstrap/src/core/builder/mod.rs
|
||||
+++ b/src/bootstrap/src/core/builder/mod.rs
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
use clap::ValueEnum;
|
||||
|
||||
-pub use self::cargo::{Cargo, cargo_profile_var};
|
||||
+pub use self::cargo::Cargo;
|
||||
pub use crate::Compiler;
|
||||
use crate::core::build_steps::{
|
||||
check, clean, clippy, compile, dist, doc, gcc, install, llvm, run, setup, test, tool, vendor,
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
Fix bootstrap failure when multilibs are enabled.
|
||||
|
||||
Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/139d6ba054a1a4cc5fe64981ad46fd5547bd4916]
|
||||
|
||||
Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
|
||||
---
|
||||
diff --git a/src/bootstrap/src/core/builder/cargo.rs b/src/bootstrap/src/core/builder/cargo.rs
|
||||
index 066e6bf53f..a2f6fac4b1 100644
|
||||
--- a/src/bootstrap/src/core/builder/cargo.rs
|
||||
+++ b/src/bootstrap/src/core/builder/cargo.rs
|
||||
@@ -646,7 +646,10 @@ impl Builder<'_> {
|
||||
// Build proc macros both for the host and the target unless proc-macros are not
|
||||
// supported by the target.
|
||||
if target != compiler.host && cmd_kind != Kind::Check {
|
||||
- let error = command(self.rustc(compiler))
|
||||
+ let mut rustc_cmd = command(self.rustc(compiler));
|
||||
+ self.add_rustc_lib_path(compiler, &mut rustc_cmd);
|
||||
+
|
||||
+ let error = rustc_cmd
|
||||
.arg("--target")
|
||||
.arg(target.rustc_target_arg())
|
||||
.arg("--print=file-names")
|
||||
@@ -654,6 +657,7 @@ impl Builder<'_> {
|
||||
.arg("-")
|
||||
.run_capture(self)
|
||||
.stderr();
|
||||
+
|
||||
let not_supported = error
|
||||
.lines()
|
||||
.any(|line| line.contains("unsupported crate type `proc-macro`"));
|
||||
|
||||
@@ -43,10 +43,10 @@ diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/sr
|
||||
fn test_can_print_warnings() {
|
||||
sess_and_cfg(&["-Awarnings"], |sess, _cfg| {
|
||||
assert!(!sess.dcx().can_emit_warnings());
|
||||
diff --git a/library/std/src/sync/poison/rwlock/tests.rs b/library/std/src/sync/poison/rwlock/tests.rs
|
||||
diff --git a/library/std/tests/sync/rwlock.rs b/library/std/tests/sync/rwlock.rs
|
||||
index 1a9d3d3f12f..0a9cfc48806 100644
|
||||
--- a/library/std/src/sync/poison/rwlock/tests.rs
|
||||
+++ b/library/std/src/sync/poison/rwlock/tests.rs
|
||||
--- a/library/std/tests/sync/rwlock.rs
|
||||
+++ b/library/std/tests/sync/rwlock.rs
|
||||
@@ -47,6 +47,7 @@ fn frob() {
|
||||
}
|
||||
|
||||
@@ -114,9 +114,9 @@ diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs
|
||||
fn test_time_options_threshold() {
|
||||
let unit = TimeThreshold::new(Duration::from_millis(50), Duration::from_millis(100));
|
||||
let integration = TimeThreshold::new(Duration::from_millis(500), Duration::from_millis(1000));
|
||||
diff --git a/library/std/src/sync/poison/mutex/tests.rs b/library/std/src/sync/poison/mutex/tests.rs
|
||||
--- a/library/std/src/sync/poison/mutex/tests.rs
|
||||
+++ b/library/std/src/sync/poison/mutex/tests.rs
|
||||
diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs
|
||||
--- a/library/std/tests/sync/mutex.rs
|
||||
+++ b/library/std/tests/sync/mutex.rs
|
||||
@@ -193,6 +193,7 @@
|
||||
}
|
||||
|
||||
@@ -125,9 +125,9 @@ diff --git a/library/std/src/sync/poison/mutex/tests.rs b/library/std/src/sync/p
|
||||
fn test_mutex_arc_poison_mapped() {
|
||||
let arc = Arc::new(Mutex::new(1));
|
||||
assert!(!arc.is_poisoned());
|
||||
diff --git a/library/std/src/sync/poison/mutex/tests.rs b/library/std/src/sync/poison/mutex/tests.rs
|
||||
--- a/library/std/src/sync/poison/mutex/tests.rs
|
||||
+++ b/library/std/src/sync/poison/mutex/tests.rs
|
||||
diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs
|
||||
--- a/library/std/tests/sync/mutex.rs
|
||||
+++ b/library/std/tests/sync/mutex.rs
|
||||
@@ -272,6 +272,7 @@
|
||||
}
|
||||
|
||||
@@ -136,9 +136,9 @@ diff --git a/library/std/src/sync/poison/mutex/tests.rs b/library/std/src/sync/p
|
||||
fn panic_while_mapping_unlocked_poison() {
|
||||
let lock = Mutex::new(());
|
||||
|
||||
diff --git a/library/std/src/sync/rwlock/tests.rs b/library/std/src/sync/poison/rwlock/tests.rs
|
||||
--- a/library/std/src/sync/poison/rwlock/tests.rs
|
||||
+++ b/library/std/src/sync/poison/rwlock/tests.rs
|
||||
diff --git a/library/std/src/sync/rwlock/tests.rs b/library/std/tests/sync/rwlock.rs
|
||||
--- a/library/std/tests/sync/rwlock.rs
|
||||
+++ b/library/std/tests/sync/rwlock.rs
|
||||
@@ -59,6 +59,7 @@ fn test_rw_arc_poison_wr() {
|
||||
}
|
||||
|
||||
@@ -163,10 +163,10 @@ diff --git a/library/std/src/sync/rwlock/tests.rs b/library/std/src/sync/poison/
|
||||
fn panic_while_mapping_write_unlocked_poison() {
|
||||
let lock = RwLock::new(());
|
||||
|
||||
diff --git a/library/core/benches/num/int_log/mod.rs b/library/core/benches/num/int_log/mod.rs
|
||||
diff --git a/library/coretests/benches/num/int_log/mod.rs b/library/coretests/benches/num/int_log/mod.rs
|
||||
index 3807cd5d76c..018c5c04456 100644
|
||||
--- a/library/core/benches/num/int_log/mod.rs
|
||||
+++ b/library/core/benches/num/int_log/mod.rs
|
||||
--- a/library/coretests/benches/num/int_log/mod.rs
|
||||
+++ b/library/coretests/benches/num/int_log/mod.rs
|
||||
@@ -98,6 +98,7 @@ fn $random_small(bench: &mut Bencher) {
|
||||
}
|
||||
|
||||
@@ -175,34 +175,22 @@ index 3807cd5d76c..018c5c04456 100644
|
||||
fn $geometric(bench: &mut Bencher) {
|
||||
let bases: [$t; 16] = [2, 3, 4, 5, 7, 8, 9, 15, 16, 17, 31, 32, 33, 63, 64, 65];
|
||||
let base_and_numbers: Vec<($t, Vec<$t>)> = bases
|
||||
diff --git a/compiler/rustc_data_structures/src/tagged_ptr/copy/tests.rs b/compiler/rustc_data_structures/src/tagged_ptr/copy/tests.rs
|
||||
diff --git a/compiler/rustc_data_structures/src/tagged_ptr/tests.rs b/compiler/rustc_data_structures/src/tagged_ptr/tests.rs
|
||||
index 160af8a65d..686f4607bb 100644
|
||||
--- a/compiler/rustc_data_structures/src/tagged_ptr/copy/tests.rs
|
||||
+++ b/compiler/rustc_data_structures/src/tagged_ptr/copy/tests.rs
|
||||
--- a/compiler/rustc_data_structures/src/tagged_ptr/tests.rs
|
||||
+++ b/compiler/rustc_data_structures/src/tagged_ptr/tests.rs
|
||||
@@ -5,6 +5,7 @@ use crate::stable_hasher::{HashStable, StableHasher};
|
||||
use crate::tagged_ptr::{CopyTaggedPtr, Pointer, Tag, Tag2};
|
||||
}
|
||||
|
||||
#[test]
|
||||
+#[ignore]
|
||||
fn smoke() {
|
||||
let value = 12u32;
|
||||
let reference = &value;
|
||||
diff --git a/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs b/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs
|
||||
index 4d342c72cc..9a77f92616 100644
|
||||
--- a/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs
|
||||
+++ b/compiler/rustc_data_structures/src/tagged_ptr/drop/tests.rs
|
||||
@@ -4,6 +4,7 @@ use std::sync::Arc;
|
||||
use crate::tagged_ptr::{Pointer, Tag, Tag2, TaggedPtr};
|
||||
|
||||
#[test]
|
||||
+#[ignore]
|
||||
fn smoke() {
|
||||
let value = 12u32;
|
||||
let reference = &value;
|
||||
diff --git a/library/std/src/thread/local/tests.rs b/library/std/src/thread/local/tests.rs
|
||||
diff --git a/library/std/tests/thread_local/tests.rs b/library/std/tests/thread_local/tests.rs
|
||||
index 9d4f52a092..d425e5f7b7 100644
|
||||
--- a/library/std/src/thread/local/tests.rs
|
||||
+++ b/library/std/src/thread/local/tests.rs
|
||||
--- a/library/std/tests/thread_local/tests.rs
|
||||
+++ b/library/std/tests/thread_local/tests.rs
|
||||
@@ -346,6 +346,7 @@ fn join_orders_after_tls_destructors() {
|
||||
|
||||
// Test that thread::current is still available in TLS destructors.
|
||||
@@ -242,3 +230,32 @@ index a05f274136..0e69b4cb98 100644
|
||||
fn sparse_inserts() {
|
||||
let cache: VecCache<u32, u8, u32> = VecCache::default();
|
||||
let end = if cfg!(target_pointer_width = "64") && cfg!(target_os = "linux") {
|
||||
diff --git a/tests/assembly/dwarf-mixed-versions-lto.rs b/tests/assembly/dwarf-mixed-versions-lto.rs
|
||||
index 5b8e5ff4f4a..e558fbd7bd7 100644
|
||||
--- a/tests/assembly/dwarf-mixed-versions-lto.rs
|
||||
+++ b/tests/assembly/dwarf-mixed-versions-lto.rs
|
||||
@@ -1,6 +1,11 @@
|
||||
// This test ensures that if LTO occurs between crates with different DWARF versions, we
|
||||
// will choose the highest DWARF version for the final binary. This matches Clang's behavior.
|
||||
|
||||
+//@ only-x86
|
||||
+//@ only-x86_64
|
||||
+//@ only-arm
|
||||
+//@ only-aarch64
|
||||
+
|
||||
//@ only-linux
|
||||
//@ aux-build:dwarf-mixed-versions-lto-aux.rs
|
||||
//@ compile-flags: -C lto -g -Zdwarf-version=5
|
||||
diff --git a/tests/codegen/dont-shuffle-bswaps.rs b/tests/codegen/dont-shuffle-bswaps.rs
|
||||
index 0e712bc3a4e..93965d990d0 100644
|
||||
--- a/tests/codegen/dont-shuffle-bswaps.rs
|
||||
+++ b/tests/codegen/dont-shuffle-bswaps.rs
|
||||
@@ -1,3 +1,8 @@
|
||||
+//@ only-x86
|
||||
+//@ only-x86_64
|
||||
+//@ only-arm
|
||||
+//@ only-aarch64
|
||||
+
|
||||
//@ revisions: OPT2 OPT3
|
||||
//@[OPT2] compile-flags: -Copt-level=2
|
||||
//@[OPT3] compile-flags: -C opt-level=3
|
||||
|
||||
@@ -2,7 +2,7 @@ SUMMARY = "Rust standard libaries"
|
||||
HOMEPAGE = "http://www.rust-lang.org"
|
||||
SECTION = "devel"
|
||||
LICENSE = "(MIT | Apache-2.0) & Unicode-3.0"
|
||||
LIC_FILES_CHKSUM = "file://../../COPYRIGHT;md5=9c0fae516fe8aaea2fb601db4800daf7"
|
||||
LIC_FILES_CHKSUM = "file://../../COPYRIGHT;md5=11a3899825f4376896e438c8c753f8dc"
|
||||
|
||||
require rust-source.inc
|
||||
|
||||
@@ -2,9 +2,9 @@ SUMMARY = "LLVM compiler framework (packaged with rust)"
|
||||
LICENSE ?= "Apache-2.0-with-LLVM-exception"
|
||||
HOMEPAGE = "http://www.rust-lang.org"
|
||||
|
||||
# check src/llvm-project/llvm/CMakeLists.txt for llvm version in use
|
||||
# check src/llvm-project/cmake/Modules/LLVMVersion.cmake for llvm version in use
|
||||
#
|
||||
LLVM_RELEASE = "19.1.5"
|
||||
LLVM_RELEASE = "19.1.7"
|
||||
|
||||
require rust-source.inc
|
||||
|
||||
@@ -4,56 +4,56 @@
|
||||
## The exact (previous) version that has been used is specified in the source tarball.
|
||||
## The version is replicated here.
|
||||
|
||||
SNAPSHOT_VERSION = "1.84.0"
|
||||
SNAPSHOT_VERSION = "1.85.0"
|
||||
|
||||
SRC_URI[rustc-snapshot-aarch64.sha256sum] = "9f5650aece53e083b933a57e5a8e0e2db4479f52ec897d5b6d0f77be6cd50498"
|
||||
SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "023f0b6153b23ac0e9686c2ab95bc393ee3e295b166bb36de3b4dfb53e3913e0"
|
||||
SRC_URI[cargo-snapshot-aarch64.sha256sum] = "68d4ad239b6d1e810e7b8591636dc408cb2c1e89661329fed906febf9c0a9d98"
|
||||
SRC_URI[clippy-snapshot-aarch64.sha256sum] = "6022245416a988b9952f36bf20f62de0c2f3337bd150e34439ea6651592ac8ca"
|
||||
SRC_URI[rustc-snapshot-aarch64.sha256sum] = "e742b768f67303010b002b515f6613c639e69ffcc78cd0857d6fe7989e9880f6"
|
||||
SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "8af1d793f7820e9ad0ee23247a9123542c3ea23f8857a018651c7788af9bc5b7"
|
||||
SRC_URI[cargo-snapshot-aarch64.sha256sum] = "cdebe48b066d512d664c13441e8fae2d0f67106c2080aa44289d98b24192b8bc"
|
||||
SRC_URI[clippy-snapshot-aarch64.sha256sum] = "f3b8e769021a6bcee8174ac49a60c367effb6d97af0f2a6c44dc9ea39ff2bda9"
|
||||
|
||||
SRC_URI[rustc-snapshot-i686.sha256sum] = "f0bc277e8e8c072d20ee91784f919c08b34a65ab56b67bcd2bb98a009cdcf97c"
|
||||
SRC_URI[rust-std-snapshot-i686.sha256sum] = "e710100be26e742733d445722a37227381f1ec2010664ece85489bc598d70456"
|
||||
SRC_URI[cargo-snapshot-i686.sha256sum] = "3a20231475b75f2f6ad0f7c5de283c5706403b41e941d3f1ca6cccfbced214c6"
|
||||
SRC_URI[clippy-snapshot-i686.sha256sum] = "8b5bdd84b9128abc6d61bc1acb60e55eab90e063c7057371b4e6f79aaa1acb9b"
|
||||
SRC_URI[rustc-snapshot-i686.sha256sum] = "c5a5751f3cfa027b53fee83d01dec8e555f3622b6993335aed12b1747aa9543c"
|
||||
SRC_URI[rust-std-snapshot-i686.sha256sum] = "401571adfe1223d83ed041e5a8c54c1f3afb3010d1d5b0c1fd79e7da1ab0a0de"
|
||||
SRC_URI[cargo-snapshot-i686.sha256sum] = "3832027242911ab96fd86128587fc563596a5b10e8e38a073facf61c1ac9668f"
|
||||
SRC_URI[clippy-snapshot-i686.sha256sum] = "74ed13a67c6ea0452c0d9e8697c6cfdd8280f983b207187ac93c287f72b65066"
|
||||
|
||||
SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "33ecfb62afce6e30864f07b4e3b76ac6d9f603a3626e5228ad0d59a7ee263cc1"
|
||||
SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "763b93ca08028a1e63a8a3754ac6118b2659022538e5e33675f2d7620488cd57"
|
||||
SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "1531b9f3d09983c43f54d7e5ced6b452044e82b24609532e8cee345656e5d8a4"
|
||||
SRC_URI[clippy-snapshot-loongarch64.sha256sum] = "80719f10010eaf6a26ba7b2f8c5c7bce3a78fd838cbbe17c00a4e3e7cd45fe5e"
|
||||
SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "d43d2119ff25d879b2d280d3e5a03fcd21c57a32d479ad5626500c32432f18c9"
|
||||
SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "2d05f5e13e7cb3ee6b0ca0dcd13a231a28eeb0faa4d15257a35cf7284149cd6a"
|
||||
SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "9aa447eefcd3ba2f9dbab77596c8669849899ab243543fc8f1914089707081ac"
|
||||
SRC_URI[clippy-snapshot-loongarch64.sha256sum] = "d437b39465343a71ff475a65acb6c03bc0f800861f293f48accf1fa170458432"
|
||||
|
||||
SRC_URI[rustc-snapshot-powerpc.sha256sum] = "ac99e907c9819b61de94a6c12b64256661e5d76c53f3ed25246b46741d1dc973"
|
||||
SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "fdbb75060e59ad59273a8ef11fc2ad61837539686df0e8dfe46107e1b15ab90a"
|
||||
SRC_URI[cargo-snapshot-powerpc.sha256sum] = "dedcb36320cfa924e2d21552057f88ee8a30c0424802015494c2f6237150ec55"
|
||||
SRC_URI[clippy-snapshot-powerpc.sha256sum] = "de2413ae321d2bccf77c77acb1e9775b63eca1993ee1450e65e388f029565a51"
|
||||
SRC_URI[rustc-snapshot-powerpc.sha256sum] = "fbe7154abc641d6cacfdc6239ed4701fc7a09b5046c6d1bd209b59e7f2b2d0f0"
|
||||
SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "ab2d5ac7cd295adaa4d959e8abbf42b372292c95d1a9f18aad64951ad6e2ab2b"
|
||||
SRC_URI[cargo-snapshot-powerpc.sha256sum] = "e67c30a72f969c51ad199084b3ce0cdc573a4e21f732b2cc39dafbcb9807a5ce"
|
||||
SRC_URI[clippy-snapshot-powerpc.sha256sum] = "497104d49803598cd3801749ac86cb26c88a2bd9c3a8c7bdc18fdf487f4650c0"
|
||||
|
||||
SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "1f5ff831c9fd97d7d306eb7d99186b9e49f35527144aaabd43f67f04449cd732"
|
||||
SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "f2819f8ce1ae41c2c2bcf40fc90d6b1a5d340d3e9558267d464730a797122bf5"
|
||||
SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "09d9954bf817404c08a8ac952afe1e086ad11fe20d07522a4bde5f26bf7fb5d2"
|
||||
SRC_URI[clippy-snapshot-powerpc64.sha256sum] = "a34cde35f254210cbb212c3fa85411efaa8e70d600d2c2404b7b319eae9b5be6"
|
||||
SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "f8e38291ba4241bc28e9c118d7a449ce3601abdeb2076f2f618858679fb3b929"
|
||||
SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "e9ff89e759125ad2786ad2f6c40e820095720ea00fba66819d15fba79489430a"
|
||||
SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "73cf850f6715acbf0029c7e5d4694825f61bd4e193e6413e65a78bcb13df97b7"
|
||||
SRC_URI[clippy-snapshot-powerpc64.sha256sum] = "29b63f23cd9af95846a246c9cc8349e514c3fb92ec0c840a38155e252d6cc668"
|
||||
|
||||
SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "1f6aa28f848b24d4589277b04535ad0258e72b5fa78a4a85ba6d18db95636d69"
|
||||
SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "db731e894cce9973ab2b41109c9097d0fc6a49c0d45a0d333bd1547d2c7485a1"
|
||||
SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "7dc351327de2567cce2a3387f110cce1db20c68fc529353c5cdef2eada5dbfd8"
|
||||
SRC_URI[clippy-snapshot-powerpc64le.sha256sum] = "b53cb58c719b84044de62851b6214db8d504f57ad71e81b373d7dea0393146d8"
|
||||
SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "371e40f9d6d82aecb056f70f82868d98ddc1c20510aa7d388442ac8d2d86a6ca"
|
||||
SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "d0cfda4e18623d17922eb367e44ac9549ab3d5fe1c0bdbe0c2c95754255fa705"
|
||||
SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "e1469f4249a7e21f872af487dcd1bd10ce388b5b3679bdab0cb0965e1e30fe47"
|
||||
SRC_URI[clippy-snapshot-powerpc64le.sha256sum] = "d8c590bc2e6fc75800e41516427f5095ba0e15d7633167689499fcf6523dc61a"
|
||||
|
||||
SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "c0eaf824c7789c94901f895792333595fe131e43f097bcf5987301cc1b14c3f0"
|
||||
SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "451580f9cdc47eef4efb0986b1960a8f9c4fb0959f81b77eb6292e6bcff9fc64"
|
||||
SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "3a850b74bdf2c3a5912e9f1ea32aaf1c9ac7c5f89c1c0bcf421b961195833992"
|
||||
SRC_URI[clippy-snapshot-riscv64gc.sha256sum] = "fb8c9d489e10a961f9faa550980069738b5f0f68740e34d7b3ee46a262b53af7"
|
||||
SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "2da33044f17a8bc49a1478dc1eb2536df491a44d6e6bb0ec7c86f46877d44e98"
|
||||
SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "0f5ecfe54859bbe715821f982b1a5396784fdf55605d00ece05d3e57a965ed16"
|
||||
SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "c9f28b519799fc2d8089865e30fad04bb5339604d13725365fcd7ad7ee6c1489"
|
||||
SRC_URI[clippy-snapshot-riscv64gc.sha256sum] = "9d21bc180196bccdb301e7e03034d3fd0df14b0c6520da0317bba7b1ce385fe8"
|
||||
|
||||
SRC_URI[rustc-snapshot-s390x.sha256sum] = "7dbc2fc2c04e820f636bfc74093396c55df0296f7ee4f0547bb849d9a9f05fe0"
|
||||
SRC_URI[rust-std-snapshot-s390x.sha256sum] = "5208f45cec5f3600f2cbc11d1796bc217f09e9c922689c8e4f0cc3f2b83ebb74"
|
||||
SRC_URI[cargo-snapshot-s390x.sha256sum] = "bdf944ff5c0b97e8b64093fff8d1f63926df86b5e98f91d30c7bd844c6efa20f"
|
||||
SRC_URI[clippy-snapshot-s390x.sha256sum] = "b02a586369e6edebb0f0608e396472d1867419213fd01ba32f3c847e4c5a3c07"
|
||||
SRC_URI[rustc-snapshot-s390x.sha256sum] = "308361737ed522aa77dd8b4ea91b5db244113ada5fa234d3ed008b526d07e2e8"
|
||||
SRC_URI[rust-std-snapshot-s390x.sha256sum] = "d25053fbee1a0cb899bac8c8e4968aa35f9c3637e486cb5bb2c79ad43a78f3e7"
|
||||
SRC_URI[cargo-snapshot-s390x.sha256sum] = "7e1defd60095c91ded1612194f811ec5f2fc2e83bb914d35594d01fa3c54049d"
|
||||
SRC_URI[clippy-snapshot-s390x.sha256sum] = "9780d8c4cfef9d05460b3e540aad142391b2e3994accf8cfc8afb87fefac6cf0"
|
||||
|
||||
SRC_URI[rustc-snapshot-x86_64.sha256sum] = "a1737d86f80b31a6d48a6726726275dc068ecb930c9635b13aa59999486de837"
|
||||
SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "770237080b9310d126350c3bd70820bd91064c2e96c29ab5f2e002b31b5bd067"
|
||||
SRC_URI[cargo-snapshot-x86_64.sha256sum] = "6c2371488db92a09cd50a1b4045c022f3cf2c643285b3b21105ab5f9b64fd6b6"
|
||||
SRC_URI[clippy-snapshot-x86_64.sha256sum] = "1db0212c08e126bf6ee28a0d363c5d6859fe357aa9e91d0247059397dbe7e1fd"
|
||||
SRC_URI[rustc-snapshot-x86_64.sha256sum] = "7436f13797475082cd87aa65547449e01659d6a810b4cd5f8aedc48bb9f89dfb"
|
||||
SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "285e105d25ebdf501341238d4c0594ecdda50ec9078f45095f793a736b1f1ac2"
|
||||
SRC_URI[cargo-snapshot-x86_64.sha256sum] = "0aff33b57b0e0b102d762a2b53042846c1ca346cff4b7bd96b5c03c9e8e51d81"
|
||||
SRC_URI[clippy-snapshot-x86_64.sha256sum] = "0dc3ca1708a6c9eed05d0802364377572b79ff079815b7bcbe8e3991f77c4117"
|
||||
|
||||
SRC_URI[rust-std-snapshot-i586.sha256sum] = "a877622fbbfa58304c34372d369e95db106cc35758ca59053144bf7d86fbf3fc"
|
||||
SRC_URI[rust-std-snapshot-i586.sha256sum] = "3cb7318da10876de14076549d79410a8441923a92d62b616d8c105f5f5cd831b"
|
||||
|
||||
SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "ecd1662d6cbbb62984ab31ae787442f1ab32caf6bc17260d407b3a94b434ad32"
|
||||
SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "65cd47af46a5b74e61ff6ae4cce8a979ee8670a57b8aa61e732828d1da073f73"
|
||||
|
||||
SRC_URI += " \
|
||||
${RUST_DIST_SERVER}/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \
|
||||
|
||||
@@ -7,11 +7,10 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n
|
||||
file://oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch;patchdir=${RUSTSRC} \
|
||||
file://0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch;patchdir=${RUSTSRC} \
|
||||
file://revert-link-std-statically-in-rustc_driver-feature.patch;patchdir=${RUSTSRC} \
|
||||
file://Zdual-proc-macros-additional-check.patch;patchdir=${RUSTSRC} \
|
||||
file://0001-libunwind-Use-gcs-instead-of-gcs-target-attribute.patch;patchdir=${RUSTSRC} \
|
||||
file://0001-Disable-libunwind-cross-architecture-unwinding.patch;patchdir=${RUSTSRC} \
|
||||
"
|
||||
SRC_URI[rust.sha256sum] = "b1fbf809efe9f036939401e142631c201a53bcf43ec1696bd9f5290ba236a266"
|
||||
SRC_URI[rust.sha256sum] = "d939eada065dc827a9d4dbb55bd48533ad14c16e7f0a42e70147029c82a7707b"
|
||||
|
||||
RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
|
||||
|
||||
|
||||
@@ -2,18 +2,18 @@ SUMMARY = "Rust compiler and runtime libaries"
|
||||
HOMEPAGE = "http://www.rust-lang.org"
|
||||
SECTION = "devel"
|
||||
LICENSE = "(MIT | Apache-2.0) & Unicode-3.0"
|
||||
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=9c0fae516fe8aaea2fb601db4800daf7"
|
||||
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=11a3899825f4376896e438c8c753f8dc"
|
||||
|
||||
inherit rust
|
||||
inherit cargo_common
|
||||
|
||||
DEPENDS += "rust-llvm"
|
||||
DEPENDS += "rust-llvm pkgconfig-native openssl ninja-native"
|
||||
# native rust uses cargo/rustc from binary snapshots to bootstrap
|
||||
# but everything else should use our native builds
|
||||
DEPENDS:append:class-target = " cargo-native rust-native"
|
||||
DEPENDS:append:class-nativesdk = " cargo-native rust-native"
|
||||
|
||||
RDEPENDS:${PN}:append:class-target = " gcc g++ binutils"
|
||||
RDEPENDS:${PN}:append:class-target = " gcc g++ binutils bash"
|
||||
|
||||
# Otherwise we'll depend on what we provide
|
||||
INHIBIT_DEFAULT_RUST_DEPS:class-native = "1"
|
||||
@@ -135,6 +135,8 @@ python do_configure() {
|
||||
config.set("rust", "remap-debuginfo", e(True))
|
||||
config.set("rust", "download-rustc", e(False))
|
||||
config.set("rust", "llvm-tools", e(False))
|
||||
config.set("rust", "lld", e(False))
|
||||
config.set("rust", "use-lld", e(False))
|
||||
config.set("rust", "channel", e(d.expand("${RUST_CHANNEL}")))
|
||||
|
||||
# Whether or not to optimize the compiler and standard library
|
||||
@@ -155,6 +157,8 @@ python do_configure() {
|
||||
cargo = d.getVar('CARGO_BOOTSTRAP')
|
||||
config.set("build", "cargo", e(cargo))
|
||||
|
||||
config.set("build", "extended", e(False))
|
||||
|
||||
config.set("build", "vendor", e(True))
|
||||
|
||||
config.set("build", "target", e([d.getVar("RUST_TARGET_SYS")]))
|
||||
@@ -233,10 +237,12 @@ do_test_compile () {
|
||||
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
|
||||
PACKAGES =+ "${PN}-rustdoc ${PN}-tools-clippy ${PN}-tools-rustfmt"
|
||||
PACKAGES =+ "${PN}-rustdoc ${PN}-tools-clippy ${PN}-tools-rustfmt ${PN}-zsh-completion"
|
||||
FILES:${PN}-rustdoc = "${bindir}/rustdoc"
|
||||
FILES:${PN}-tools-clippy = "${bindir}/cargo-clippy ${bindir}/clippy-driver"
|
||||
FILES:${PN}-tools-rustfmt = "${bindir}/rustfmt"
|
||||
FILES:${PN}-zsh-completion = "${datadir}/zsh"
|
||||
|
||||
RDEPENDS:${PN}-rustdoc = "${PN}"
|
||||
RDEPENDS:${PN}-tools-clippy = "${PN}"
|
||||
RDEPENDS:${PN}-tools-rustfmt = "${PN}"
|
||||
@@ -252,6 +258,10 @@ rust_do_install() {
|
||||
rust_runx install
|
||||
}
|
||||
|
||||
rust_do_install:append:class-native () {
|
||||
rm -f ${D}${bindir}/cargo
|
||||
}
|
||||
|
||||
rust_do_install:class-nativesdk() {
|
||||
export PSEUDO_UNLOAD=1
|
||||
rust_runx install
|
||||
Reference in New Issue
Block a user