Skip to content

Commit a90cd31

Browse files
committed
rust179: update CKSUM adjustments for openssl* vendor crate patches.
Also set has_thread_local to false for NetBSD/aarch64*, due to NetBSD PR#58154, ref. comments in rust-lang/rust#123551 Verification remains.
1 parent c1697e3 commit a90cd31

4 files changed

+48
-0
lines changed

rust179/Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,18 @@ CKSUM_CRATES+= vendor/crossbeam-utils-0.8.18
440440
CKSUMS+= 31a8276afd38e39987a169eeb02e9bed32670de5ca36d7eb74aab7e506cf9dc4
441441
CKSUMS+= ead4bda23c322bde8c01e48d4cd19b70e7b7e473a56466218d279f88463ab466
442442

443+
CKSUM_CRATES+= vendor/openssl-sys-0.9.92
444+
CKSUMS+= 33f814dba4ac9942266157cbe3dc8eadf5e477090370a92c36c53f916fa45d48
445+
CKSUMS+= f78ddd9b03c31a03350aa152d6f707c6cbb21b2ea0b493d05238aa473b80af09
446+
CKSUMS+= b2cbaa5bfac5e7d5550aa0eb8e5c65a9f7e86a3692b759fb13330ef6e3b26b30
447+
CKSUMS+= b303bf9ceae9fcffa4a0420ea858675d827fc2d75c358f8236e44274d58be1a0
448+
449+
CKSUM_CRATES+= vendor/openssl-src-111.28.1+1.1.1w
450+
CKSUMS+= 090744f85cf99a9b8412c23fca1eabb61eb45d830f0f9f0e7309be2572c1e827
451+
CKSUMS+= 4261f87c06e6505afd9f7bdafe5aebdd153a1c6f928203cec2dd125642d60fc1
452+
CKSUMS+= c87f041ff9ada85cddcb2a787788e05b2ab5ffc0a85f502fe7e3f7cbda59d49c
453+
CKSUMS+= 67b877964bc0e40c84669c423818a3cb39501eaedfc3f5caf9c33d4779c3d03f
454+
443455
SUBST_CLASSES+= cksum
444456
SUBST_STAGE.cksum= pre-configure
445457
.for crate in ${CKSUM_CRATES}

rust179/distinfo

+2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ SHA512 (rustc-1.79.0-src.tar.gz) = 4fa7385b2e89816849f1c353be3bf8fd36c05896ca7de
110110
Size (rustc-1.79.0-src.tar.gz) = 297469050 bytes
111111
SHA1 (patch-compiler_rustc__codegen__ssa_src_back_linker.rs) = 3105b0c89cf04b4469fc56cd89e7e4a661517002
112112
SHA1 (patch-compiler_rustc__llvm_build.rs) = a4a66d449fc9eb99d648d02a041778a68f4f7ce8
113+
SHA1 (patch-compiler_rustc__target_spec_targets_aarch64__unknown__netbsd.rs) = 1a02f2dd61a5f9cc4be1f66ac3404c961810c731
113114
SHA1 (patch-compiler_rustc__target_src_spec_base_netbsd.rs) = 7d910631f49acf2c33fdd191fd3e0f261efae234
114115
SHA1 (patch-compiler_rustc__target_src_spec_mod.rs) = a22b5d28997ed9a5565deec9c34322165d563d00
116+
SHA1 (patch-compiler_rustc__target_src_spec_targets_aarch64__be__unknown__netbsd.rs) = 620eaf74c1dd030973af53dfe4f9aa998be5b123
115117
SHA1 (patch-compiler_rustc__target_src_spec_targets_mips64el__unknown__netbsd.rs) = e97b7978cc525db7eadf967d51f4818a3c145754
116118
SHA1 (patch-library_backtrace_src_symbolize_gimli.rs) = 1ab343595e65ff6348f83cffc30e53d764485ff8
117119
SHA1 (patch-library_backtrace_src_symbolize_gimli_elf.rs) = 3b84a462c6bc8245d579452e4c37e3ce13314952
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
$NetBSD$
2+
3+
NetBSD aarch64 has a bug in the thread-local storage implementation,
4+
ref. PR#58154. Turn it off for now.
5+
Ideally should check whether the version has the fix or not, but
6+
e.g. __NetBSD_Version__ isn't easily available here that I know...
7+
8+
--- compiler/rustc_target/src/spec/targets/aarch64_unknown_netbsd.rs.orig 2024-07-23 19:18:44.116841966 +0000
9+
+++ compiler/rustc_target/src/spec/targets/aarch64_unknown_netbsd.rs
10+
@@ -17,6 +17,7 @@ pub fn target() -> Target {
11+
mcount: "__mcount".into(),
12+
max_atomic_width: Some(128),
13+
stack_probes: StackProbeType::Inline,
14+
+ has_thread_local: false, // ref. NetBSD PR#58154
15+
..base::netbsd::opts()
16+
},
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
$NetBSD$
2+
3+
NetBSD aarch64 has a bug in the thread-local storage implementation,
4+
ref. PR#58154. Turn it off for now.
5+
Ideally should check whether the version has the fix or not, but
6+
e.g. __NetBSD_Version__ isn't easily available here that I know...
7+
8+
--- compiler/rustc_target/src/spec/targets/aarch64_be_unknown_netbsd.rs.orig 2024-07-23 19:21:34.344805113 +0000
9+
+++ compiler/rustc_target/src/spec/targets/aarch64_be_unknown_netbsd.rs
10+
@@ -18,6 +18,7 @@ pub fn target() -> Target {
11+
max_atomic_width: Some(128),
12+
stack_probes: StackProbeType::Inline,
13+
endian: Endian::Big,
14+
+ has_thread_local: false, // ref. NetBSD PR#58154
15+
..base::netbsd::opts()
16+
},
17+
}

0 commit comments

Comments
 (0)