svn commit: r552881 - in branches/2020Q4/net-mgmt/bandwhich: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Oct 21 19:01:01 UTC 2020
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;
More information about the svn-ports-all
mailing list