[libgd-barcode-perl] 01/04: patch QRcode.pm to treat missing Version as documented

Damyan Ivanov dmn at moszumanska.debian.org
Thu Dec 22 20:12:35 UTC 2016


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

dmn pushed a commit to branch master
in repository libgd-barcode-perl.

commit 7fd03e8e545b3847cdf1c0d1daf582429cf68731
Author: Damyan Ivanov <dmn at debian.org>
Date:   Thu Dec 22 20:05:46 2016 +0000

    patch QRcode.pm to treat missing Version as documented
    
    specifying no Version is supposed to determine the size of the QR code
    automaticaly
    
    Closes: #849066
---
 debian/patches/fix-auto-Version.patch | 17 +++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 18 insertions(+)

diff --git a/debian/patches/fix-auto-Version.patch b/debian/patches/fix-auto-Version.patch
new file mode 100644
index 0000000..aa5bead
--- /dev/null
+++ b/debian/patches/fix-auto-Version.patch
@@ -0,0 +1,17 @@
+Description: fix missing Version to mean auto-Version as documented
+ Having the Version member initialized to "1" if not present breaks the logic
+ in _calcVersion.
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=20297
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849066
+
+--- a/Barcode/QRcode.pm
++++ b/Barcode/QRcode.pm
+@@ -37,7 +37,7 @@ sub init($$$){
+     $oSelf->{text} = $sTxt;
+     $oSelf->{Ecc} = $rhPrm->{Ecc} || ' ';
+     $oSelf->{Ecc} =~ tr/LMHQ/M/c;    #Not /LMQH/ => M
+-    $oSelf->{Version} = $rhPrm->{Version} || 1;
++    $oSelf->{Version} = $rhPrm->{Version} // 0;
+     $oSelf->{ModuleSize} = $rhPrm->{ModuleSize} || 1;
+     $oSelf->{ModuleSize} = int($oSelf->{ModuleSize});
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e1626d7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-auto-Version.patch

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



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