[libsnmp-session-perl] 22/24: 03_Socket6-inet_ntop: Add inet_ntop into import statement (Closes: #781126).

Roland Rosenfeld roland at moszumanska.debian.org
Tue Aug 22 22:34:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

roland pushed a commit to branch master
in repository libsnmp-session-perl.

commit f5161f49bea7cfd5e1171c7a4056e81fada4438e
Author: Roland Rosenfeld <roland at debian.org>
Date:   Wed Aug 23 00:21:58 2017 +0200

    03_Socket6-inet_ntop: Add inet_ntop into import statement (Closes: #781126).
---
 debian/changelog                          |  4 +++-
 debian/patches/03_Socket6-inet_ntop.patch | 24 ++++++++++++++++++++++++
 debian/patches/series                     |  1 +
 3 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 2153b63..292bf5e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,8 +16,10 @@ libsnmp-session-perl (1.13-2) UNRELEASED; urgency=medium
   * Add autopkgtest-pkg-perl.
   * Change Homepage to github (old site no longer available) (Closes: #712766)
   * Change Conflicts mrtg to Breaks.
+  * 03_Socket6-inet_ntop: Add inet_ntop into import statement
+    (Closes: #781126).
 
- -- Roland Rosenfeld <roland at debian.org>  Wed, 23 Aug 2017 00:05:35 +0200
+ -- Roland Rosenfeld <roland at debian.org>  Wed, 23 Aug 2017 00:21:32 +0200
 
 libsnmp-session-perl (1.13-1.1) unstable; urgency=low
 
diff --git a/debian/patches/03_Socket6-inet_ntop.patch b/debian/patches/03_Socket6-inet_ntop.patch
new file mode 100644
index 0000000..ad68c37
--- /dev/null
+++ b/debian/patches/03_Socket6-inet_ntop.patch
@@ -0,0 +1,24 @@
+Desciption: Add inet_ntop into import statement.
+Author: Alan Dennis <debianbts8629 at aldennis.me.uk>
+Bug-Debian: https://bugs.debian.org/781126
+
+--- a/lib/SNMP_Session.pm
++++ b/lib/SNMP_Session.pm
+@@ -146,7 +146,7 @@ BEGIN {
+ 
+     if (eval {local $SIG{__DIE__};require Socket6;} &&
+        eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
+-	Socket6->import(qw(inet_pton getaddrinfo));
++	Socket6->import(qw(inet_pton getaddrinfo inet_ntop));
+ 	$ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
+ 	$SNMP_Session::ipv6available = 1;
+     }
+@@ -605,7 +605,7 @@ use Carp;
+ BEGIN {
+     if($SNMP_Session::ipv6available) {
+ 	import IO::Socket::INET6;
+-	Socket6->import(qw(inet_pton getaddrinfo));
++	Socket6->import(qw(inet_pton getaddrinfo inet_ntop));
+     }
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index ae13f96..1ce1ee5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 01_Socket6_import.patch
 02_remoteimages.patch
+03_Socket6-inet_ntop.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libsnmp-session-perl.git



More information about the Pkg-perl-cvs-commits mailing list