git: 906aab3352e9 - 2026Q2 - net/dumbpipe: fix build on 32 bit platforms
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Jun 2026 12:16:09 UTC
The branch 2026Q2 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=906aab3352e98071c9e801465398cee6f850d729
commit 906aab3352e98071c9e801465398cee6f850d729
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-06-25 20:35:29 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-06-26 12:15:39 +0000
net/dumbpipe: fix build on 32 bit platforms
The patch applied to this port works for powerpc64 but not for armv7.
Replace it with the patch from net/sendme, which works for both.
See also: e46a4cfed19eaedd0828758d075975dc37e28a41
See also: d4de8e372e2e8f829afe06d2ea4aa8528d2d96d2
MFH: 2026Q2
Approved by: portmgr (build fix blanket)
(cherry picked from commit 3baccc108e98bdede550599b3bbf74884b921c10)
---
...o-crates_netdev-0.43.0_src_os_unix_link__speed.rs | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/net/dumbpipe/files/patch-cargo-crates_netdev-0.43.0_src_os_unix_link__speed.rs b/net/dumbpipe/files/patch-cargo-crates_netdev-0.43.0_src_os_unix_link__speed.rs
new file mode 100644
index 000000000000..b795d5b0baa5
--- /dev/null
+++ b/net/dumbpipe/files/patch-cargo-crates_netdev-0.43.0_src_os_unix_link__speed.rs
@@ -0,0 +1,20 @@
+--- cargo-crates/netdev-0.43.0/src/os/unix/link_speed.rs.orig 2026-06-13 11:15:27 UTC
++++ cargo-crates/netdev-0.43.0/src/os/unix/link_speed.rs
+@@ -105,13 +105,16 @@ const SIOCGIFXMEDIA: u64 = 0xc02c6948;
+ // #define SIOCGIFMEDIA _IOWR('i', 56, struct ifmediareq)
+ // const SIOCGIFMEDIA: u64 = 0xc02c6938;
+
+-#[cfg(all(target_os = "freebsd", target_arch = "x86_64"))]
++#[cfg(all(target_os = "freebsd", target_pointer_width = "64"))]
+ // https://github.com/freebsd/freebsd-src/blob/master/sys/sys/sockio.h#L139
+ // #define SIOCGIFXMEDIA _IOWR('i', 139, struct ifmediareq)
+ const SIOCGIFXMEDIA: u64 = 0xc030698b;
+
+ #[cfg(all(target_os = "freebsd", target_arch = "x86"))]
+ const SIOCGIFXMEDIA: u32 = 0xc030698b;
++
++#[cfg(all(target_os = "freebsd", target_arch = "arm"))]
++const SIOCGIFXMEDIA: u32 = 0xc028698b;
+
+ #[cfg(any(target_os = "openbsd", target_os = "netbsd"))]
+ // OpenBSD and netbsd don't define SIOCGIFXMEDIA.