r27872 - in /trunk/libpdf-reuse-perl/debian: changelog control patches/ patches/series patches/uninitialized_warning.patch rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Sun Dec 7 20:35:38 UTC 2008
Author: gregoa
Date: Sun Dec 7 20:35:34 2008
New Revision: 27872
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=27872
Log:
Fix "Uninitialized value $string in unpack" by creating
uninitialized_warning.patch which checks for $string before using it;
thanks to for the bug report and the patch (closes: #506214); add quilt
framework.
Added:
trunk/libpdf-reuse-perl/debian/patches/
trunk/libpdf-reuse-perl/debian/patches/series
trunk/libpdf-reuse-perl/debian/patches/uninitialized_warning.patch
Modified:
trunk/libpdf-reuse-perl/debian/changelog
trunk/libpdf-reuse-perl/debian/control
trunk/libpdf-reuse-perl/debian/rules
Modified: trunk/libpdf-reuse-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpdf-reuse-perl/debian/changelog?rev=27872&op=diff
==============================================================================
--- trunk/libpdf-reuse-perl/debian/changelog (original)
+++ trunk/libpdf-reuse-perl/debian/changelog Sun Dec 7 20:35:34 2008
@@ -2,6 +2,10 @@
* debian/control: Changed: Switched Vcs-Browser field to ViewSVN
(source stanza).
+ * Fix "Uninitialized value $string in unpack" by creating
+ uninitialized_warning.patch which checks for $string before using it;
+ thanks to for the bug report and the patch (closes: #506214); add quilt
+ framework.
-- gregor herrmann <gregoa at debian.org> Sun, 16 Nov 2008 20:45:59 +0100
Modified: trunk/libpdf-reuse-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpdf-reuse-perl/debian/control?rev=27872&op=diff
==============================================================================
--- trunk/libpdf-reuse-perl/debian/control (original)
+++ trunk/libpdf-reuse-perl/debian/control Sun Dec 7 20:35:34 2008
@@ -1,7 +1,7 @@
Source: libpdf-reuse-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 7)
+Build-Depends: debhelper (>= 7), quilt
Build-Depends-Indep: perl (>= 5.8.8-7), libcompress-zlib-perl,
libfont-ttf-perl, libtext-pdf-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Added: trunk/libpdf-reuse-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpdf-reuse-perl/debian/patches/series?rev=27872&op=file
==============================================================================
--- trunk/libpdf-reuse-perl/debian/patches/series (added)
+++ trunk/libpdf-reuse-perl/debian/patches/series Sun Dec 7 20:35:34 2008
@@ -1,0 +1,1 @@
+uninitialized_warning.patch
Added: trunk/libpdf-reuse-perl/debian/patches/uninitialized_warning.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpdf-reuse-perl/debian/patches/uninitialized_warning.patch?rev=27872&op=file
==============================================================================
--- trunk/libpdf-reuse-perl/debian/patches/uninitialized_warning.patch (added)
+++ trunk/libpdf-reuse-perl/debian/patches/uninitialized_warning.patch Sun Dec 7 20:35:34 2008
@@ -1,0 +1,20 @@
+Author: Patrick Matthäi <patrick.matthaei at web.de>
+Description: avoid warnings about
+ "Use of uninitialized value $string in unpack ..."
+Bug: #506214
+
+--- a/Reuse.pm
++++ b/Reuse.pm
+@@ -1281,8 +1281,10 @@
+
+ if (ref($PDF::Reuse::Util::font_widths{$Font}) eq 'ARRAY')
+ { my @font_table = @{ $PDF::Reuse::Util::font_widths{$Font} };
+- for (unpack ("C*", $string))
+- { $w += $font_table[$_];
++ if (defined $string) {
++ for (unpack ("C*", $string))
++ { $w += $font_table[$_];
++ }
+ }
+ }
+ else
Modified: trunk/libpdf-reuse-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpdf-reuse-perl/debian/rules?rev=27872&op=diff
==============================================================================
--- trunk/libpdf-reuse-perl/debian/rules (original)
+++ trunk/libpdf-reuse-perl/debian/rules Sun Dec 7 20:35:34 2008
@@ -1,11 +1,13 @@
#!/usr/bin/make -f
+include /usr/share/quilt/quilt.make
+
build: build-stamp
-build-stamp:
+build-stamp: $(QUILT_STAMPFN)
dh build
touch $@
-clean:
+clean: unpatch
dh $@
install: install-stamp
More information about the Pkg-perl-cvs-commits
mailing list