git: 3baccc108e98 - main - net/dumbpipe: fix build on 32 bit platforms

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 26 Jun 2026 12:09:53 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3baccc108e98bdede550599b3bbf74884b921c10

commit 3baccc108e98bdede550599b3bbf74884b921c10
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:07:58 +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)
---
 ...ch-cargo-crates_netdev-0.43.0_src_os_unix_link__speed.rs | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

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
index aaff507f5acb..b795d5b0baa5 100644
--- 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
@@ -1,6 +1,6 @@
---- cargo-crates/netdev-0.43.0/src/os/unix/link_speed.rs.orig	2026-06-12 13:12:37 UTC
+--- 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,7 +105,7 @@ const SIOCGIFXMEDIA: u64 = 0xc02c6948;
+@@ -105,13 +105,16 @@ const SIOCGIFXMEDIA: u64 = 0xc02c6948;
  // #define SIOCGIFMEDIA    _IOWR('i', 56, struct ifmediareq)
  // const SIOCGIFMEDIA: u64 = 0xc02c6938;
  
@@ -9,3 +9,12 @@
  // 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.