[SCM] Debian packaging of libnet-xmpp-perl branch, master, updated. debian/1.02-2-1-g75573bd

Florian Schlichting fschlich at zedat.fu-berlin.de
Sun Nov 4 20:38:51 UTC 2012


The following commit has been merged in the master branch:
commit 75573bdbd09c33f823f3f6b30cf4edfa317b6cc0
Author: Florian Schlichting <fschlich at zedat.fu-berlin.de>
Date:   Sun Nov 4 21:31:03 2012 +0100

    Add 626897_check-definedness-of-hash-key-before-use.patch to silence an irritating warning in current versions of Perl (closes: #626897)

diff --git a/debian/changelog b/debian/changelog
index 40239c0..eb87430 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+libnet-xmpp-perl (1.02-3) unstable; urgency=low
+
+  * Team upload.
+  * Add 626897_check-definedness-of-hash-key-before-use.patch to silence an
+    irritating warning in current versions of Perl (closes: #626897).
+
+ -- Florian Schlichting <fschlich at zedat.fu-berlin.de>  Sun, 04 Nov 2012 21:30:22 +0100
+
 libnet-xmpp-perl (1.02-2) unstable; urgency=low
 
   [ gregor herrmann ]
diff --git a/debian/patches/626897_check-definedness-of-hash-key-before-use.patch b/debian/patches/626897_check-definedness-of-hash-key-before-use.patch
new file mode 100644
index 0000000..417ff4b
--- /dev/null
+++ b/debian/patches/626897_check-definedness-of-hash-key-before-use.patch
@@ -0,0 +1,18 @@
+Description: Check definedness of hash key before use
+ An annoying warning is emitted since Perl 5.12, revealing sloppy coding.
+Origin: http://github.com/dap/Net-XMPP /commit/2d1164d7c50d7c034f3d1e fb03ad9319b24dfd24
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=58333
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626897
+Reviewed-by: Florian Schlichting <fschlich at zedat.fu-berlin.de>
+
+--- a/lib/Net/XMPP/Debug.pm
++++ b/lib/Net/XMPP/Debug.pm
+@@ -151,7 +151,7 @@
+     my %args;
+     while($#_ >= 0) { $args{ lc pop(@_) } = pop(@_); }
+ 
+-    delete($args{file}) if (lc($args{file}) eq "stdout");
++    delete($args{file}) if (defined $args{file} && lc($args{file}) eq "stdout");
+ 
+     $args{time} = 0 if !exists($args{time});
+     $args{setdefault} = 0 if !exists($args{setdefault});
diff --git a/debian/patches/series b/debian/patches/series
index 1bec2d2..03089b6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 disable_networking_tests.patch
 digest-sha.patch
 spelling.patch
+626897_check-definedness-of-hash-key-before-use.patch

-- 
Debian packaging of libnet-xmpp-perl



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