diff options
author | tron <tron@pkgsrc.org> | 2013-08-03 17:05:17 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2013-08-03 17:05:17 +0000 |
commit | 316d5a1e14eb2b12c8fa47fc8fefef401aadbfaa (patch) | |
tree | 69f62e5f1ab4ac0e98eede38b4e19bdfb7e78cc5 | |
parent | b18d8711d8e3d895865039505cc5525cda5fd43e (diff) | |
download | pkgsrc-316d5a1e14eb2b12c8fa47fc8fefef401aadbfaa.tar.gz |
Fix run-time warnings under Perl 5.16 and newer caused by the IPv6 support
in the "Socket" module.
Bump package revision because of this bug fix.
-rw-r--r-- | net/mrtg/Makefile | 3 | ||||
-rw-r--r-- | net/mrtg/distinfo | 3 | ||||
-rw-r--r-- | net/mrtg/patches/patch-lib__mrtg2__SNMP_Session.pm | 25 |
3 files changed, 29 insertions, 2 deletions
diff --git a/net/mrtg/Makefile b/net/mrtg/Makefile index 4c33cb412a8..55ab9ec4093 100644 --- a/net/mrtg/Makefile +++ b/net/mrtg/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.111 2013/07/17 13:00:29 tron Exp $ +# $NetBSD: Makefile,v 1.112 2013/08/03 17:05:17 tron Exp $ DISTNAME= mrtg-2.17.4 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= http://oss.oetiker.ch/mrtg/pub/ \ http://oss.oetiker.ch/mrtg/pub/old/ diff --git a/net/mrtg/distinfo b/net/mrtg/distinfo index eb59f4bb15c..e68a36ac8f8 100644 --- a/net/mrtg/distinfo +++ b/net/mrtg/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.32 2013/07/17 13:00:29 tron Exp $ +$NetBSD: distinfo,v 1.33 2013/08/03 17:05:17 tron Exp $ SHA1 (mrtg-2.17.4.tar.gz) = 5ae0e659001c613b847237a6b223b26cb7a8ab0f RMD160 (mrtg-2.17.4.tar.gz) = cea76ad3685375770520ebbccd0ad4b6adafff1f @@ -6,3 +6,4 @@ Size (mrtg-2.17.4.tar.gz) = 1096879 bytes SHA1 (patch-aa) = 2874cd59371db10fbc4ff6c29e3a917a4b8eec55 SHA1 (patch-ab) = bf367e6c43030a9cb64a88336b66932d7e05025c SHA1 (patch-ac) = 24ae08714f896ca0f1724454b8ad47c32412c018 +SHA1 (patch-lib__mrtg2__SNMP_Session.pm) = ab19dfdab6951a1b375bf2433f794293ed191bf4 diff --git a/net/mrtg/patches/patch-lib__mrtg2__SNMP_Session.pm b/net/mrtg/patches/patch-lib__mrtg2__SNMP_Session.pm new file mode 100644 index 00000000000..28f3bd33b36 --- /dev/null +++ b/net/mrtg/patches/patch-lib__mrtg2__SNMP_Session.pm @@ -0,0 +1,25 @@ +$NetBSD: patch-lib__mrtg2__SNMP_Session.pm,v 1.1 2013/08/03 17:05:17 tron Exp $ + +Fix run-time warnings under Perl 5.16 and newer caused by the IPv6 support +in the "Socket" module. + +--- lib/mrtg2/SNMP_Session.pm.orig 2012-01-12 10:29:00.000000000 +0000 ++++ lib/mrtg2/SNMP_Session.pm 2013-08-03 17:56:14.000000000 +0100 +@@ -146,7 +146,7 @@ + + if (eval {local $SIG{__DIE__};require Socket6;} && + eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) { +- Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo unpack_sockaddr_in6)); ++ Socket6->import(qw(inet_pton getaddrinfo)); + $ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1"))); + $SNMP_Session::ipv6available = 1; + } +@@ -601,7 +601,7 @@ + BEGIN { + if($SNMP_Session::ipv6available) { + import IO::Socket::INET6; +- Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo unpack_sockaddr_in6)); ++ Socket6->import(qw(inet_pton getaddrinfo)); + } + } + |