pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/libnet10



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Jan  3 10:02:04 UTC 2026

Modified Files:
        pkgsrc/devel/libnet10: distinfo
        pkgsrc/devel/libnet10/patches: patch-ac
Added Files:
        pkgsrc/devel/libnet10/patches: patch-src_libnet__socket.c

Log Message:
libnet10: fix build on NetBSD 11


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/devel/libnet10/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/libnet10/patches/patch-ac
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/libnet10/patches/patch-src_libnet__socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libnet10/distinfo
diff -u pkgsrc/devel/libnet10/distinfo:1.10 pkgsrc/devel/libnet10/distinfo:1.11
--- pkgsrc/devel/libnet10/distinfo:1.10 Tue Oct 26 10:15:25 2021
+++ pkgsrc/devel/libnet10/distinfo      Sat Jan  3 10:02:04 2026
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.10 2021/10/26 10:15:25 nia Exp $
+$NetBSD: distinfo,v 1.11 2026/01/03 10:02:04 wiz Exp $
 
 BLAKE2s (libnet-1.0.2a.tar.gz) = f26229d8fbae5b88c59b48a45d521ae4edaa7b85e7b1ddc1b66ad15450ee59ea
 SHA512 (libnet-1.0.2a.tar.gz) = 2e9a73bd767e1f46eea92e18ddd83cc3179144c8cc5b1a22b4dba50fee16173c951be4dd647a247bd7067c33b9e33489a6efb313ce1ea0c61c4a06009c3c4d95
 Size (libnet-1.0.2a.tar.gz) = 140191 bytes
 SHA1 (patch-aa) = fa71db191c421aa1b36d1107236645fdde0bc8f9
 SHA1 (patch-ab) = 56a2cb8b214529fdaacdbc6154ec2fc88edfa1c8
-SHA1 (patch-ac) = 7224d5fc0ac7084cda9b932d1a742c5055cde7f2
+SHA1 (patch-ac) = 1ef5e786e853eafbf45f217a79a00fdf5fca0f00
 SHA1 (patch-ad) = 237a8caae854df28790b3038c0b782b95b336004
 SHA1 (patch-ae) = d3b0e651bee5344b0d0539065058a939036a8152
+SHA1 (patch-src_libnet__socket.c) = 4569a07eb1397e1294dcccbbf31f1b2d8e41ffee

Index: pkgsrc/devel/libnet10/patches/patch-ac
diff -u pkgsrc/devel/libnet10/patches/patch-ac:1.3 pkgsrc/devel/libnet10/patches/patch-ac:1.4
--- pkgsrc/devel/libnet10/patches/patch-ac:1.3  Fri Dec 15 16:11:11 2017
+++ pkgsrc/devel/libnet10/patches/patch-ac      Sat Jan  3 10:02:04 2026
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.3 2017/12/15 16:11:11 jperkin Exp $
+$NetBSD: patch-ac,v 1.4 2026/01/03 10:02:04 wiz Exp $
 
 Look for dlpi before bpf, SunOS has both but this package assumes
 bpf is only on BSD systems and tries to use sysctl etc.
@@ -23,6 +23,15 @@ bpf is only on BSD systems and tries to 
  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  cross_compiling=$ac_cv_prog_cc_cross
+@@ -788,7 +788,7 @@ cat > conftest.$ac_ext << EOF
+ #line 789 "configure"
+ #include "confdefs.h"
+ 
+-main(){return(0);}
++int main(){return(0);}
+ EOF
+ if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   ac_cv_prog_cc_works=yes
 @@ -806,7 +806,7 @@ fi
  rm -fr conftest*
  ac_ext=c
@@ -56,7 +65,7 @@ bpf is only on BSD systems and tries to 
      LL_INT_TYPE=bpf
      echo "$ac_t""found bpf" 1>&6
  elif test -r /usr/include/net/pfilt.h ; then
-@@ -1299,13 +1305,6 @@ elif test -r /usr/include/sys/net/nit.h
+@@ -1299,13 +1305,6 @@ elif test -r /usr/include/sys/net/nit.h 
  elif test -r /usr/include/net/raw.h ; then
      LL_INT_TYPE=snoop
      echo "$ac_t""found snoop" 1>&6
@@ -88,3 +97,12 @@ bpf is only on BSD systems and tries to 
      cat >> confdefs.h <<\EOF
  #define LIBNET_BSDISH_OS 1
  EOF
+@@ -1994,7 +1993,7 @@ else
+ #                   include <sys/wait.h>
+ #                   include <stdio.h>
+                     unsigned char a[5] = { 1, 2, 3, 4, 5 };
+-                    main()
++                    int main()
+                     {
+                         unsigned int i;
+                         pid_t pid;

Added files:

Index: pkgsrc/devel/libnet10/patches/patch-src_libnet__socket.c
diff -u /dev/null pkgsrc/devel/libnet10/patches/patch-src_libnet__socket.c:1.1
--- /dev/null   Sat Jan  3 10:02:04 2026
+++ pkgsrc/devel/libnet10/patches/patch-src_libnet__socket.c    Sat Jan  3 10:02:04 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_libnet__socket.c,v 1.1 2026/01/03 10:02:04 wiz Exp $
+
+Fix function definition.
+
+--- src/libnet_socket.c.orig   2026-01-03 10:00:29.684084235 +0000
++++ src/libnet_socket.c
+@@ -36,7 +36,7 @@
+ #include "../include/libnet.h"
+ 
+ int
+-libnet_open_raw_sock(prot)
++libnet_open_raw_sock(int prot)
+ {
+     int fd;
+     int one = 1;



Home | Main Index | Thread Index | Old Index