[libnet-cups-perl] 01/07: Add patch from CPAN RT to fix broken CUPS version check in Makefile.PL.

gregor herrmann gregoa at debian.org
Sat Dec 26 03:53:20 UTC 2015


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

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

commit b118c6c61b97aa5d92594fc0469cb8c82d412926
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Dec 26 04:46:02 2015 +0100

    Add patch from CPAN RT to fix broken CUPS version check in Makefile.PL.
    
    Closes: #809006
---
 debian/patches/cups-version-check.patch | 29 +++++++++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/cups-version-check.patch b/debian/patches/cups-version-check.patch
new file mode 100644
index 0000000..8384079
--- /dev/null
+++ b/debian/patches/cups-version-check.patch
@@ -0,0 +1,29 @@
+Description: fix version check
+ This attached fix that nice but was tortured with a couple of version
+ combinations to see if it was correct about for released and future CUPS
+ versions.
+Origin: CPAN RT#104237
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=104237
+Bug-Debian: https://bugs.debian.org/809006
+Author: mathieu.simon at simweb.ch
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2015-12-26
+
+
+-- Mathieu
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -31,8 +31,10 @@
+ 
+ my @version_parts = split( /\./, $version );
+ 
+-if( ( $version_parts[1] < 2 ) ||
+-	( ( $version_parts[1] == 2 ) && ( $version_parts[2] < 2 ) ) )
++if(
++	( $version_parts[0] < 1 ) ||
++	( ( $version_parts[0] == 1 ) && ( $version_parts[1] < 2 ) ) ||
++	( ( $version_parts[0] == 1 ) && ( $version_parts[1] == 2 ) && ( $version_parts[2] < 2 ) ) )
+ {
+ 	print "The version of the Common Unix Printing System installed\n";
+ 	print "on your system is too old for this module to work properly.\n";
diff --git a/debian/patches/series b/debian/patches/series
index b54346e..220d35d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 cups16.patch
+cups-version-check.patch

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



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