Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 2020 19:01:01 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r552881 - in branches/2020Q4/net-mgmt/bandwhich: . files
Message-ID:  <202010211901.09LJ11T6088074@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed Oct 21 19:01:00 2020
New Revision: 552881
URL: https://svnweb.freebsd.org/changeset/ports/552881

Log:
  MFH: r552121
  
  net-mgmt/bandwhich: fix build on powerpc and arm architectures
  
  chars are unsigned on arm and ppc.
  
  Approved by:	portmgr (fix build blanket)

Added:
  branches/2020Q4/net-mgmt/bandwhich/files/extra-patch-cargo-crates_pnet__datalink-0.26.0_src_bpf.rs
     - copied unchanged from r552121, head/net-mgmt/bandwhich/files/extra-patch-cargo-crates_pnet__datalink-0.26.0_src_bpf.rs
Modified:
  branches/2020Q4/net-mgmt/bandwhich/Makefile
Directory Properties:
  branches/2020Q4/   (props changed)

Modified: branches/2020Q4/net-mgmt/bandwhich/Makefile
==============================================================================
--- branches/2020Q4/net-mgmt/bandwhich/Makefile	Wed Oct 21 18:49:58 2020	(r552880)
+++ branches/2020Q4/net-mgmt/bandwhich/Makefile	Wed Oct 21 19:01:00 2020	(r552881)
@@ -223,6 +223,12 @@ CARGO_CRATES=	adler32-1.0.4 \
 PLIST_FILES=	bin/bandwhich \
 		man/man1/bandwhich.1.gz
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == aarch64 || ${ARCH:Marmv*} || ${ARCH:Mpowerpc*}
+EXTRA_PATCHES=	${FILESDIR}/extra-patch-cargo-crates_pnet__datalink-0.26.0_src_bpf.rs
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bandwhich
 	${INSTALL_MAN} ${WRKSRC}/docs/bandwhich.1 ${STAGEDIR}${MAN1PREFIX}/man/man1

Copied: branches/2020Q4/net-mgmt/bandwhich/files/extra-patch-cargo-crates_pnet__datalink-0.26.0_src_bpf.rs (from r552121, head/net-mgmt/bandwhich/files/extra-patch-cargo-crates_pnet__datalink-0.26.0_src_bpf.rs)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2020Q4/net-mgmt/bandwhich/files/extra-patch-cargo-crates_pnet__datalink-0.26.0_src_bpf.rs	Wed Oct 21 19:01:00 2020	(r552881, copy of r552121, head/net-mgmt/bandwhich/files/extra-patch-cargo-crates_pnet__datalink-0.26.0_src_bpf.rs)
@@ -0,0 +1,11 @@
+--- cargo-crates/pnet_datalink-0.26.0/src/bpf.rs.orig	2020-10-11 18:58:25 UTC
++++ cargo-crates/pnet_datalink-0.26.0/src/bpf.rs
+@@ -130,7 +130,7 @@ pub fn channel(network_interface: &NetworkInterface, c
+     }
+     let mut iface: bpf::ifreq = unsafe { mem::zeroed() };
+     for (i, c) in network_interface.name.bytes().enumerate() {
+-        iface.ifr_name[i] = c as i8;
++        iface.ifr_name[i] = c as u8;
+     }
+ 
+     let buflen = config.read_buffer_size as libc::c_uint;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010211901.09LJ11T6088074>