[libsnmp-session-perl] 12/24: Switch to dpkg-source 3.0 (quilt) format.
Roland Rosenfeld
roland at moszumanska.debian.org
Tue Aug 22 22:34:48 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 6aaa32382f5afd9fc2615dea9a09e5b285c5b6c2
Author: Roland Rosenfeld <roland at debian.org>
Date: Tue Aug 22 22:17:27 2017 +0200
Switch to dpkg-source 3.0 (quilt) format.
---
debian/changelog | 1 +
debian/patches/01_Socket6_import.patch | 25 +++++++++++++++++++++++++
debian/patches/series | 1 +
debian/source/format | 1 +
lib/SNMP_Session.pm | 4 ++--
5 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1303b30..041c820 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ libsnmp-session-perl (1.13-2) UNRELEASED; urgency=medium
<pkg-perl-maintainers at lists.alioth.debian.org> (was: Jochen
Friedrich <jochen at scram.de>); Roland Rosenfeld <roland at debian.org>
moved to Uploaders.
+ * Switch to dpkg-source 3.0 (quilt) format.
-- Roland Rosenfeld <roland at debian.org> Tue, 22 Aug 2017 21:38:26 +0200
diff --git a/debian/patches/01_Socket6_import.patch b/debian/patches/01_Socket6_import.patch
new file mode 100644
index 0000000..203d02e
--- /dev/null
+++ b/debian/patches/01_Socket6_import.patch
@@ -0,0 +1,25 @@
+Description: Fix "Warnings from SNMP_Session.pm"
+Origin: https://oss.oetiker.ch/mrtg-trac/ticket/45
+Bug-Debian: https://bugs.debian.org/628804
+Author: gregor herrmann <gregoa at debian.org>
+
+--- 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");}) {
+- import Socket6;
++ Socket6->import(qw(inet_pton getaddrinfo));
+ $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;
+- import Socket6;
++ Socket6->import(qw(inet_pton getaddrinfo));
+ }
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..35940b9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01_Socket6_import.patch
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/lib/SNMP_Session.pm b/lib/SNMP_Session.pm
index e979b84..4b9ccf9 100644
--- 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));
+ import Socket6;
$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));
+ import Socket6;
}
}
--
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