summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
diff options
context:
space:
mode:
authorDeepesh Varatharajan <Deepesh.Varatharajan@windriver.com>2025-03-04 22:01:56 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-05 21:26:54 +0000
commit72e21bef1a6bcc8f05ad4e24cfef4228384f1c3a (patch)
tree0c7977c65f6bb1d0fec23dc3a39f17214e8bb2a9 /meta/recipes-devtools/rust/files/rust-oe-selftest.patch
parent64ad67cf6955cdaebbb3aec65318399013e09ce1 (diff)
downloadpoky-72e21bef1a6bcc8f05ad4e24cfef4228384f1c3a.tar.gz
rust: Upgrade 1.82.0->1.83.0
Rust stable version updated to 1.83.0. https://blog.rust-lang.org/2024/11/28/Rust-1.83.0.html Renamed and modified the below patch to adapt the new version. rv32-cargo-rustix-0.38.34-fix.patch->rv32-cargo-rustix-0.38.37-fix.patch Modified the below patches to adapt the new version. repro-issue-fix-with-cc-crate-hashmap.patch revert-link-std-statically-in-rustc_driver-feature.patch Dropped: zlib-off64_t.patch https://github.com/madler/zlib/commit/a566e156b3fa07b566ddbf6801b517a9dba04fa3kq Because of the following commit , https://github.com/rust-lang/rust/commit/68034f837a39387e49fc7d7c5b088f5372a1127e when we enable lib32, getting build failure because there is a check for target support for "-Zdual-proc-macros" flag not functioning properly when lib32 is enabled in the build environment. So for now reverting this commit and bring back the previous behavior, where the "-Zdual-proc-macros" flag is always added for building proc macros, regardless of the target architecture's support. This would bypass the check introduced in the patch, allowing the build to proceed without error, even when building for a 64-bit architecture with lib32 enabled. (From OE-Core rev: 40d8dafdf556d7ce79c12a6de872193be9a0928a) Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust/files/rust-oe-selftest.patch')
-rw-r--r--meta/recipes-devtools/rust/files/rust-oe-selftest.patch15
1 files changed, 2 insertions, 13 deletions
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
index 0e952efadc..b2bfed0726 100644
--- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
+++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch
@@ -63,7 +63,7 @@ index 35a5291a347..5f2858d2505 100644
63 63
64 #[test] 64 #[test]
65+#[ignore] 65+#[ignore]
66 #[cfg_attr(target_os = "emscripten", ignore)] 66 #[cfg_attr(any(target_os = "emscripten", target_os = "wasi"), ignore)] // no threads
67 fn panic_in_write_doesnt_flush_in_drop() { 67 fn panic_in_write_doesnt_flush_in_drop() {
68 static WRITES: AtomicUsize = AtomicUsize::new(0); 68 static WRITES: AtomicUsize = AtomicUsize::new(0);
69diff --git a/library/std/src/io/stdio/tests.rs b/library/std/src/io/stdio/tests.rs 69diff --git a/library/std/src/io/stdio/tests.rs b/library/std/src/io/stdio/tests.rs
@@ -75,7 +75,7 @@ index f89fd27ce6c..79737f5b127 100644
75 75
76 #[test] 76 #[test]
77+#[ignore] 77+#[ignore]
78 #[cfg_attr(target_os = "emscripten", ignore)] 78 #[cfg_attr(any(target_os = "emscripten", target_os = "wasi"), ignore)] // no threads
79 fn panic_doesnt_poison() { 79 fn panic_doesnt_poison() {
80 thread::spawn(|| { 80 thread::spawn(|| {
81diff --git a/library/std/src/sync/mpsc/sync_tests.rs b/library/std/src/sync/mpsc/sync_tests.rs 81diff --git a/library/std/src/sync/mpsc/sync_tests.rs b/library/std/src/sync/mpsc/sync_tests.rs
@@ -318,17 +318,6 @@ index 5d6b9e94ee9..a5aacb2eb87 100644
318 fn test_try_panic_any_message_unit_struct() { 318 fn test_try_panic_any_message_unit_struct() {
319 struct Juju; 319 struct Juju;
320 320
321diff --git a/library/alloc/src/slice/tests.rs b/library/alloc/src/slice/tests.rs
322--- a/library/alloc/src/slice/tests.rs
323+++ b/library/alloc/src/slice/tests.rs
324@@ -186,6 +186,7 @@
325 std::thread_local!(static SILENCE_PANIC: Cell<bool> = Cell::new(false));
326
327 #[test]
328+#[ignore]
329 #[cfg_attr(target_os = "emscripten", ignore)] // no threads
330 #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")]
331 fn panic_safe() {
332diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs 321diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs
333--- a/library/test/src/tests.rs 322--- a/library/test/src/tests.rs
334+++ b/library/test/src/tests.rs 323+++ b/library/test/src/tests.rs