update to net-snmp-5.9.1

This commit is contained in:
sthen 2022-03-21 13:50:58 +00:00
parent 23127cbe7a
commit 490254da32
8 changed files with 9 additions and 128 deletions

View File

@ -1,12 +1,11 @@
COMMENT-main= extendable SNMP implementation
COMMENT-tkmib= graphical SNMP MIB browser
V= 5.9
V= 5.9.1
DISTNAME= net-snmp-$V
MULTI_PACKAGES= -main -tkmib
PKGNAME-main= net-snmp-$V
PKGNAME-tkmib= net-snmp-tkmib-$V
REVISION-main= 0
# tkmib isn't flavoured
FULLPKGPATH-tkmib= net/net-snmp,-tkmib

View File

@ -1,2 +1,2 @@
SHA256 (net-snmp-5.9.tar.gz) = BDA6ZvhdbYsW08xTveUEKId8gqtSThdZHfzq65TfYHE=
SIZE (net-snmp-5.9.tar.gz) = 6690435
SHA256 (net-snmp-5.9.1.tar.gz) = 63/UpE3mzdv/2akqha0TCeXBBU+51afdkweciVP0jD8=
SIZE (net-snmp-5.9.1.tar.gz) = 6711774

View File

@ -1,19 +1,9 @@
Index: Makefile.in
--- Makefile.in.orig
+++ Makefile.in
@@ -17,8 +17,7 @@ CPP = @CPP@ \
INSTALLHEADERS=version.h net-snmp-features.h
INCLUDESUBDIR=system
INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h \
- darwin.h darwin7.h darwin8.h darwin9.h darwin10.h darwin11.h darwin12.h \
- darwin13.h darwin14.h darwin15.h darwin16.h darwin17.h \
+ darwin.h \
dragonfly.h dynix.h \
freebsd2.h freebsd3.h freebsd4.h freebsd5.h freebsd6.h \
freebsd7.h freebsd8.h freebsd9.h freebsd10.h freebsd11.h \
@@ -26,7 +25,7 @@ INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi
@@ -25,7 +25,7 @@ INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi
generic.h \
hpux.h irix.h linux.h mingw32.h mingw32msvc.h mips.h \
hpux.h irix.h kfreebsd.h linux.h mingw32.h mingw32msvc.h mips.h \
netbsd.h nto-qnx6.h osf5.h \
- openbsd.h openbsd6.h openbsd5.h openbsd4.h \
+ openbsd.h openbsd7.h openbsd6.h openbsd5.h openbsd4.h \

View File

@ -10,8 +10,8 @@ Index: Makefile.top
SED = @SED@
LN_S = @LN_S@
AUTOCONF = @AUTOCONF@
@@ -86,7 +88,7 @@ LIBCURRENT = 40
LIBAGE = 0
@@ -86,7 +88,7 @@ LIBCURRENT = 41
LIBAGE = 1
LIBREVISION = 0
-LIB_LD_CMD = $(LIBTOOL) --mode=link $(LINKCC) $(CFLAGS) -rpath $(libdir) -version-info $(LIBCURRENT):$(LIBREVISION):$(LIBAGE) -o

View File

@ -1,59 +0,0 @@
From ee7c66cf856dcda14f6d1d1503b80c0535509bc3 Mon Sep 17 00:00:00 2001
From: Bart Van Assche <bvanassche@acm.org>
Date: Fri, 4 Sep 2020 13:32:54 -0700
Subject: [PATCH] OpenBSD: Do not use the linker flag -no-undefined
Index: configure
--- configure.orig
+++ configure
@@ -17011,15 +17011,22 @@ esac
#
-# Whether the linker supports the flag -Wl,-no-undefined.
+# Whether the linker supports the flag -Wl,-no-undefined. Do not use
+# -Wl,-no-undefined on OpenBSD because it breaks linking of shared
+# libraries. Use -Wl,-no-undefined on all other platforms such that
+# undefined symbols are detected at compile time instead of at runtime.
#
-if ! echo "$CFLAGS" | grep -q -- -fsanitize=; then
-saved_LDFLAGS=$LDFLAGS
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -Wl,-no-undefined" >&5
+case x$target_os in
+ xopenbsd*)
+ ;;
+ *)
+ if ! echo "$CFLAGS" | grep -q -- -fsanitize=; then
+ saved_LDFLAGS=$LDFLAGS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -Wl,-no-undefined" >&5
$as_echo_n "checking whether the linker supports -Wl,-no-undefined... " >&6; }
-LDFLAGS="$saved_LDFLAGS -Wl,-no-undefined"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ LDFLAGS="$saved_LDFLAGS -Wl,-no-undefined"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
@@ -17032,16 +17039,18 @@ main ()
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }; LD_NO_UNDEFINED=-Wl,-no-undefined
+$as_echo "yes" >&6; }; LD_NO_UNDEFINED=-Wl,-no-undefined
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
-LDFLAGS="$saved_LDFLAGS"
+ LDFLAGS="$saved_LDFLAGS"
-fi
+ fi
+ ;;
+esac
#

View File

@ -1,50 +0,0 @@
From ee7c66cf856dcda14f6d1d1503b80c0535509bc3 Mon Sep 17 00:00:00 2001
From: Bart Van Assche <bvanassche@acm.org>
Date: Fri, 4 Sep 2020 13:32:54 -0700
Subject: [PATCH] OpenBSD: Do not use the linker flag -no-undefined
Index: configure.d/config_os_progs
--- configure.d/config_os_progs.orig
+++ configure.d/config_os_progs
@@ -208,20 +208,29 @@ esac
#
-# Whether the linker supports the flag -Wl,-no-undefined.
+# Whether the linker supports the flag -Wl,-no-undefined. Do not use
+# -Wl,-no-undefined on OpenBSD because it breaks linking of shared
+# libraries. Use -Wl,-no-undefined on all other platforms such that
+# undefined symbols are detected at compile time instead of at runtime.
#
-if ! echo "$CFLAGS" | grep -q -- -fsanitize=; then
-saved_LDFLAGS=$LDFLAGS
-AC_MSG_CHECKING([whether the linker supports -Wl,-no-undefined])
-LDFLAGS="$saved_LDFLAGS -Wl,-no-undefined"
-AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
- [AC_MSG_RESULT([yes]); dnl
- LD_NO_UNDEFINED=-Wl,-no-undefined],
- [AC_MSG_RESULT([no])])
-LDFLAGS="$saved_LDFLAGS"
-AC_SUBST(LD_NO_UNDEFINED)
-fi
+case x$target_os in
+ xopenbsd*)
+ ;;
+ *)
+ if ! echo "$CFLAGS" | grep -q -- -fsanitize=; then
+ saved_LDFLAGS=$LDFLAGS
+ AC_MSG_CHECKING([whether the linker supports -Wl,-no-undefined])
+ LDFLAGS="$saved_LDFLAGS -Wl,-no-undefined"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+ [AC_MSG_RESULT([yes]); dnl
+ LD_NO_UNDEFINED=-Wl,-no-undefined],
+ [AC_MSG_RESULT([no])])
+ LDFLAGS="$saved_LDFLAGS"
+ AC_SUBST(LD_NO_UNDEFINED)
+ fi
+ ;;
+esac
#

View File

@ -1,7 +1,7 @@
Index: perl/SNMP/Makefile.PL
--- perl/SNMP/Makefile.PL.orig
+++ perl/SNMP/Makefile.PL
@@ -24,7 +24,7 @@ sub SnmpInitMakeParams {
@@ -25,7 +25,7 @@ sub SnmpInitMakeParams {
my %Params = (
NAME => 'SNMP',
dist => { SUFFIX => "gz", COMPRESS => "gzip -9f"},

View File

@ -203,6 +203,7 @@ include/net-snmp/system/freebsd9.h
include/net-snmp/system/generic.h
include/net-snmp/system/hpux.h
include/net-snmp/system/irix.h
include/net-snmp/system/kfreebsd.h
include/net-snmp/system/linux.h
include/net-snmp/system/mingw32.h
include/net-snmp/system/mingw32msvc.h