pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/ratman
Module Name: pkgsrc
Committed By: he
Date: Fri May 19 11:20:50 UTC 2023
Modified Files:
pkgsrc/net/ratman: distinfo
Added Files:
pkgsrc/net/ratman/patches:
patch-vendor_pnet__datalink-0.28.0_src_bpf.rs
Log Message:
ratman: fix build on architectures with unsigned char.
This adopts upstream fix from
https://github.com/libpnet/libpnet/commit/ce180d3bfe33b90ba0a68cb23802631387e3717b
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/ratman/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/net/ratman/patches/patch-vendor_pnet__datalink-0.28.0_src_bpf.rs
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/ratman/distinfo
diff -u pkgsrc/net/ratman/distinfo:1.1 pkgsrc/net/ratman/distinfo:1.2
--- pkgsrc/net/ratman/distinfo:1.1 Sun Jan 23 11:45:11 2022
+++ pkgsrc/net/ratman/distinfo Fri May 19 11:20:50 2023
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2022/01/23 11:45:11 nia Exp $
+$NetBSD: distinfo,v 1.2 2023/05/19 11:20:50 he Exp $
BLAKE2s (aho-corasick-0.7.18.crate) = 8925e88e2df4b5ca3b31783f527e1bb31dbe27846f409f631148fa239f3b2935
SHA512 (aho-corasick-0.7.18.crate) = 7a23b16231a90d23ee60ad4c81bc225410599a4560d33d3a203138fc540c39cf1000100fed3aed40dcc371c3635656a3792545dca5dd1aefbde00d8774eebd00
@@ -576,3 +576,4 @@ Size (zeroize-1.2.0.crate) = 15450 bytes
BLAKE2s (zeroize_derive-1.0.1.crate) = 841eb26ebf9be76709c4babd59a402078cab24e0d5936b17a5f8d904632fbae2
SHA512 (zeroize_derive-1.0.1.crate) = cbb7fe8d9ecb38c0f6fd11e491afa289cc9d8719f2460f4569816d7d55ec17fc88aa9a167aafb83809e2122481e016039b055e3bc4edfdeaf009fc0d65212dc7
Size (zeroize_derive-1.0.1.crate) = 8047 bytes
+SHA1 (patch-vendor_pnet__datalink-0.28.0_src_bpf.rs) = 07ed719e6583bcfd982403091d5831c4cd67d0a1
Added files:
Index: pkgsrc/net/ratman/patches/patch-vendor_pnet__datalink-0.28.0_src_bpf.rs
diff -u /dev/null pkgsrc/net/ratman/patches/patch-vendor_pnet__datalink-0.28.0_src_bpf.rs:1.1
--- /dev/null Fri May 19 11:20:50 2023
+++ pkgsrc/net/ratman/patches/patch-vendor_pnet__datalink-0.28.0_src_bpf.rs Fri May 19 11:20:50 2023
@@ -0,0 +1,17 @@
+$NetBSD: patch-vendor_pnet__datalink-0.28.0_src_bpf.rs,v 1.1 2023/05/19 11:20:50 he Exp $
+
+Don't assume that c_char is signed.
+This applies fix from upstream:
+https://github.com/libpnet/libpnet/commit/ce180d3bfe33b90ba0a68cb23802631387e3717b
+
+--- ../vendor/pnet_datalink-0.28.0/src/bpf.rs.orig 1970-01-01 00:00:00.000000000 +0000
++++ ../vendor/pnet_datalink-0.28.0/src/bpf.rs
+@@ -130,7 +130,7 @@ pub fn channel(network_interface: &Netwo
+ }
+ 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;
Home |
Main Index |
Thread Index |
Old Index