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

gregoa pushed a commit to branch master
in repository libgraph-perl.

commit 829c799249542bd8f0171eb60a4c66de6cc8e2cc
Author: gregor herrmann <gre...@debian.org>
Date:   Sat Sep 19 22:01:31 2015 +0200

    Add patch from Niko Tyni to not compare version numbers numerically.
    
    Closes: #782676
---
 ...Don-t-compare-version-numbers-numerically.patch | 39 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 40 insertions(+)

diff --git 
a/debian/patches/0001-Don-t-compare-version-numbers-numerically.patch 
b/debian/patches/0001-Don-t-compare-version-numbers-numerically.patch
new file mode 100644
index 0000000..bafa03b
--- /dev/null
+++ b/debian/patches/0001-Don-t-compare-version-numbers-numerically.patch
@@ -0,0 +1,39 @@
+From f3268a0295ec4433c3154adb2572b4712570886e Mon Sep 17 00:00:00 2001
+From: Niko Tyni <nt...@debian.org>
+Date: Sat, 19 Sep 2015 20:41:47 +0300
+Subject: [PATCH] Don't compare version numbers numerically
+
+Perl 5.20.2 has Storable 2.49_01, which generates warnings when
+compared as a number. Use UNIVERSAL::VERSION() instead,
+as suggested by Kevin Ryde.
+
+Bug-Debian: https://bugs.debian.org/782676
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=94046
+Forwarded: not-needed; already fixed upstream apparently
+
+---
+ lib/Graph.pm | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/lib/Graph.pm b/lib/Graph.pm
+index e96acb4..cb9c06c 100644
+--- a/lib/Graph.pm
++++ b/lib/Graph.pm
+@@ -19,7 +19,13 @@ $VERSION = '0.96';
+ require 5.006; # Weak references are absolutely required.
+ 
+ my $can_deep_copy_Storable =
+-    eval 'require Storable; require B::Deparse; $Storable::VERSION >= 2.05 && 
$B::Deparse::VERSION >= 0.61' && !$@;
++  eval {
++    require Storable;
++    require B::Deparse;
++    Storable->VERSION(2.05);
++    B::Deparse->VERSION(0.61);
++    }
++  && !$@;
+ 
+ sub _can_deep_copy_Storable () {
+     return $can_deep_copy_Storable;
+-- 
+2.5.1
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..cdbc286
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Don-t-compare-version-numbers-numerically.patch

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to