pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust178: turn off thread-local storage for NetBSD on 32-bit arm.
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Sun Aug 4 14:49:12 2024 +0000
Changeset: 69f6c2dda0388ee7db1496fdc30424a4fb50b140
Modified Files:
rust178/distinfo
Added Files:
rust178/patches/patch-compiler_rustc__target_src_spec_targets_armv6__unknown__netbsd__eabihf.rs
rust178/patches/patch-compiler_rustc__target_src_spec_targets_armv7__unknown__netbsd__eabihf.rs
Log Message:
rust178: turn off thread-local storage for NetBSD on 32-bit arm.
This is due to NetBSD PR#58550, which is fixed with
https://mail-index.netbsd.org/source-changes/2020/06/16/msg118407.html
but isn't present in netbsd-9.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=69f6c2dda0388ee7db1496fdc30424a4fb50b140
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust178/distinfo | 2 ++
..._src_spec_targets_armv6__unknown__netbsd__eabihf.rs | 18 ++++++++++++++++++
..._src_spec_targets_armv7__unknown__netbsd__eabihf.rs | 18 ++++++++++++++++++
3 files changed, 38 insertions(+)
diffs:
diff --git a/rust178/distinfo b/rust178/distinfo
index 7bd98cc547..3371330e10 100644
--- a/rust178/distinfo
+++ b/rust178/distinfo
@@ -114,6 +114,8 @@ SHA1 (patch-compiler_rustc__target_src_spec_base_netbsd.rs) = 7d910631f49acf2c33
SHA1 (patch-compiler_rustc__target_src_spec_mod.rs) = a22b5d28997ed9a5565deec9c34322165d563d00
SHA1 (patch-compiler_rustc__target_src_spec_targets_aarch64__be__unknown__netbsd.rs) = b0a26945a8640d53eabca16c27c99fc27c8e5623
SHA1 (patch-compiler_rustc__target_src_spec_targets_aarch64__unknown__netbsd.rs) = bd4f1086033ab21160f1edba1d255ffb4451cbcf
+SHA1 (patch-compiler_rustc__target_src_spec_targets_armv6__unknown__netbsd__eabihf.rs) = d608a14638e610bb11199b77ad113a40b8aa3f62
+SHA1 (patch-compiler_rustc__target_src_spec_targets_armv7__unknown__netbsd__eabihf.rs) = 11a8c80938dfd1675182a94f599b60cbd5b69a52
SHA1 (patch-compiler_rustc__target_src_spec_targets_mips64el__unknown__netbsd.rs) = e97b7978cc525db7eadf967d51f4818a3c145754
SHA1 (patch-library_backtrace_src_symbolize_gimli.rs) = 1ab343595e65ff6348f83cffc30e53d764485ff8
SHA1 (patch-library_backtrace_src_symbolize_gimli_elf.rs) = 3b84a462c6bc8245d579452e4c37e3ce13314952
diff --git a/rust178/patches/patch-compiler_rustc__target_src_spec_targets_armv6__unknown__netbsd__eabihf.rs b/rust178/patches/patch-compiler_rustc__target_src_spec_targets_armv6__unknown__netbsd__eabihf.rs
new file mode 100644
index 0000000000..3c9c501c72
--- /dev/null
+++ b/rust178/patches/patch-compiler_rustc__target_src_spec_targets_armv6__unknown__netbsd__eabihf.rs
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Turn off use of thread local storage on 32-bit arm, due to
+NetBSD PR#58550, which is fixed with
+https://mail-index.netbsd.org/source-changes/2020/06/16/msg118407.html
+but isn't present in netbsd-9, which presently has revisions 1.1-1.44 +
+1.46, but not 1.45 which fixes htis problem.
+
+--- compiler/rustc_target/src/spec/targets/armv6_unknown_netbsd_eabihf.rs.orig 2024-08-04 09:47:25.621735345 +0000
++++ compiler/rustc_target/src/spec/targets/armv6_unknown_netbsd_eabihf.rs
+@@ -17,6 +17,7 @@ pub fn target() -> Target {
+ features: "+v6,+vfp2,-d32".into(),
+ max_atomic_width: Some(64),
+ mcount: "__mcount".into(),
++ has_thread_local: false, // Attempt to get 9.0 working...
+ ..base::netbsd::opts()
+ },
+ }
diff --git a/rust178/patches/patch-compiler_rustc__target_src_spec_targets_armv7__unknown__netbsd__eabihf.rs b/rust178/patches/patch-compiler_rustc__target_src_spec_targets_armv7__unknown__netbsd__eabihf.rs
new file mode 100644
index 0000000000..c5e79a7ca1
--- /dev/null
+++ b/rust178/patches/patch-compiler_rustc__target_src_spec_targets_armv7__unknown__netbsd__eabihf.rs
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Turn off use of thread local storage on 32-bit arm, due to
+NetBSD PR#58550, which is fixed with
+https://mail-index.netbsd.org/source-changes/2020/06/16/msg118407.html
+but isn't present in netbsd-9, which presently has revisions 1.1-1.44 +
+1.46, but not 1.45 which fixes htis problem.
+
+--- compiler/rustc_target/src/spec/targets/armv7_unknown_netbsd_eabihf.rs.orig 2024-08-04 09:45:48.159906022 +0000
++++ compiler/rustc_target/src/spec/targets/armv7_unknown_netbsd_eabihf.rs
+@@ -17,6 +17,7 @@ pub fn target() -> Target {
+ features: "+v7,+vfp3,-d32,+thumb2,-neon".into(),
+ max_atomic_width: Some(64),
+ mcount: "__mcount".into(),
++ has_thread_local: false, // Attempt to get 9.0 working...
+ ..base::netbsd::opts()
+ },
+ }
Home |
Main Index |
Thread Index |
Old Index