pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
net/sendme: patch for rust libc issue on netbsd/aarch64
Module Name: pkgsrc-wip
Committed By: ci4ic4 <ci4ic4%gmail.com@localhost>
Pushed By: ci4ic4
Date: Sat Nov 7 11:50:11 2026 +0000
Changeset: c6680902c78b6cb8983b68f1863e752af5eda3da
Modified Files:
sendme/distinfo
Added Files:
sendme/patches/patch-.._vendor_libc-0.2.190_src_unix_bsd_netbsdlike_netbsd_aarch64.rs
Log Message:
net/sendme: patch for rust libc issue on netbsd/aarch64
NetBSD/aarch64 (AAPCS64) defines __ALIGNBYTES as sizeof(__int128_t) - 1
(sys/arch/arm/include/cdefs.h). With 3, CMSG_NXTHDR() lands in padding,
reads cmsg_len 0 and noq-udp spins forever on the first received datagram.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c6680902c78b6cb8983b68f1863e752af5eda3da
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
sendme/distinfo | 1 +
...bc-0.2.190_src_unix_bsd_netbsdlike_netbsd_aarch64.rs | 17 +++++++++++++++++
2 files changed, 18 insertions(+)
diffs:
diff --git a/sendme/distinfo b/sendme/distinfo
index af464ecf2a..dd956f6980 100644
--- a/sendme/distinfo
+++ b/sendme/distinfo
@@ -1377,3 +1377,4 @@ Size (zerovec-derive-0.11.6.crate) = 23102 bytes
BLAKE2s (zmij-1.0.23.crate) = 09f6f3e1ddf6abff21579db43caec1b708ad2de496f17489b16849f016b7ae5e
SHA512 (zmij-1.0.23.crate) = 12f8d9726b232b6be68cefbe294505debb7a98715c11b95d89682a596fe1a02d9d7b2a6cdba97f2e8d47fa947ffbce9506a18568f2cab749ca3d03121e5fb66d
Size (zmij-1.0.23.crate) = 28612 bytes
+SHA1 (patch-.._vendor_libc-0.2.190_src_unix_bsd_netbsdlike_netbsd_aarch64.rs) = 1b7a6f8ade78b8156b11ea3fdb67deac959da44d
diff --git a/sendme/patches/patch-.._vendor_libc-0.2.190_src_unix_bsd_netbsdlike_netbsd_aarch64.rs b/sendme/patches/patch-.._vendor_libc-0.2.190_src_unix_bsd_netbsdlike_netbsd_aarch64.rs
new file mode 100644
index 0000000000..34b868d6e7
--- /dev/null
+++ b/sendme/patches/patch-.._vendor_libc-0.2.190_src_unix_bsd_netbsdlike_netbsd_aarch64.rs
@@ -0,0 +1,17 @@
+$NetBSD$
+
+NetBSD/aarch64 (AAPCS64) defines __ALIGNBYTES as sizeof(__int128_t) - 1
+(sys/arch/arm/include/cdefs.h). With 3, CMSG_NXTHDR() lands in padding,
+reads cmsg_len 0 and noq-udp spins forever on the first received datagram.
+
+--- ../vendor/libc-0.2.190/src/unix/bsd/netbsdlike/netbsd/aarch64.rs.orig 2026-11-07 10:22:50.257978696 +0000
++++ ../vendor/libc-0.2.190/src/unix/bsd/netbsdlike/netbsd/aarch64.rs 2026-11-07 10:22:50.260188475 +0000
+@@ -65,7 +65,7 @@
+ }
+ }
+
+-pub(crate) const _ALIGNBYTES: usize = size_of::<c_int>() - 1;
++pub(crate) const _ALIGNBYTES: usize = size_of::<u128>() - 1;
+
+ pub const PT_GETREGS: c_int = PT_FIRSTMACH + 0;
+ pub const PT_SETREGS: c_int = PT_FIRSTMACH + 1;
Home |
Main Index |
Thread Index |
Old Index