Subject: | Makefile.PL checks version of libgd using wrong way (the check is broken) |
Date: | Thu, 17 Oct 2013 18:29:44 +0200 |
To: | bug-GD [...] rt.cpan.org |
From: | Denis Shaposhnikov <dsh [...] bamus.cz> |
Hi!
I'm using GD-2.50 with libgd-2.1.0. Yesterday I found I can't use
copyRotated() because broken check of version 2.0.33 of libgd. It
compares the minor only. Here my fix:
--- Makefile.PL.orig 2013-07-02 22:32:51.000000000 +0200
+++ Makefile.PL 2013-10-17 00:15:39.189939467 +0200
@@ -281,7 +281,7 @@
$$options = $features;
my ($minor) = $version =~ /^2\.\d+\.(\d+)$/;
- $$options .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE
VERSION_33" if defined($minor) && $minor >= 33;
+ $$options .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33";
my @correct_inc = map {s/^-I// && $_} split /\s+/,$cflags;
check_for_stray_headers(@correct_inc);