git: 84555099e3ad - main - www/garage: fix build on ARM / POWER
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 Jun 2022 17:18:08 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=84555099e3ad01f3d900aa3c611e0f8c4910442d commit 84555099e3ad01f3d900aa3c611e0f8c4910442d Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-06-08 17:17:16 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-06-08 17:18:06 +0000 www/garage: fix build on ARM / POWER error[E0308]: mismatched types --> /wrkdirs/usr/ports/www/garage/work/garage/cargo-crates/pnet_datalink-0.28.0/src/bpf.rs:133:29 | 133 | iface.ifr_name[i] = c as i8; | ----------------- ^^^^^^^ expected `u8`, found `i8` | | | expected due to the type of this binding --- .../files/patch-cargo-crates_pnet__datalink-0.28.0_src_bpf.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/www/garage/files/patch-cargo-crates_pnet__datalink-0.28.0_src_bpf.rs b/www/garage/files/patch-cargo-crates_pnet__datalink-0.28.0_src_bpf.rs new file mode 100644 index 000000000000..271eea130ae9 --- /dev/null +++ b/www/garage/files/patch-cargo-crates_pnet__datalink-0.28.0_src_bpf.rs @@ -0,0 +1,11 @@ +--- cargo-crates/pnet_datalink-0.28.0/src/bpf.rs.orig 2022-06-08 16:54:23 UTC ++++ cargo-crates/pnet_datalink-0.28.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 libc::c_char; + } + + let buflen = config.read_buffer_size as libc::c_uint;