[libgd-perl] 11/14: Add patch cherry-picked upstream to fix libgd ver check. Closes: Bug#789289. Thanks to Martin Mueller.

Jonas Smedegaard dr at jones.dk
Mon Nov 30 10:12:17 UTC 2015


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

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

commit c8841f22e54898f72b628cd5e64da05f3737986b
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Nov 29 21:19:14 2015 +0100

    Add patch cherry-picked upstream to fix libgd ver check. Closes: Bug#789289. Thanks to Martin Mueller.
---
 debian/patches/020150323~58eceb8.patch | 21 +++++++++++++++++++++
 debian/patches/series                  |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/020150323~58eceb8.patch b/debian/patches/020150323~58eceb8.patch
new file mode 100644
index 0000000..6978041
--- /dev/null
+++ b/debian/patches/020150323~58eceb8.patch
@@ -0,0 +1,21 @@
+Description: Fix libgd ver check in Makefile.PL and Build.PL
+Origin: upstream, https://github.com/lstein/Perl-GD/commit/58eceb8
+Author: sauoq <sauoq6 at gmail.com>
+Forwarded: yes
+Last-Update: 2015-11-29
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -296,8 +296,10 @@
+   ($$lib_gd_path = $libdir) =~ s!/[^/]+$!!;
+   $$options      = $features;
+ 
+-  my ($minor)    = $version =~ /^2\.\d+\.(\d+)$/;
+-  $$options     .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33" if defined($minor) && $minor >= 33;
++  my ($minor, $patch)    = $version =~ /^2\.(\d+)\.(\d+)$/;
++  if ((defined($minor) && $minor > 0) or (defined($patch) && $patch >= 33)) { 
++    $$options     .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33";
++  }
+ 
+   my @correct_inc = map {s/^-I// && $_} split /\s+/,$cflags;
+   check_for_stray_headers($includedir, at correct_inc);
diff --git a/debian/patches/series b/debian/patches/series
index eafb06c..2f71b8a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+020150323~58eceb8.patch
 disable-jpeg-test10.patch
 pod-errors.patch

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



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