Skip Menu |
 

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 119459
Status: new
Priority: 0/
Queue: GD

People
Owner: Nobody in particular
Requestors: fjo-lists [...] ogris.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: GD doesn't detect libgd > 2.0.33
Date: Sun, 25 Dec 2016 16:57:40 +0100
To: bug-GD [...] rt.cpan.org
From: "Felix J. Ogris" <fjo-lists [...] ogris.de>
Download (untitled) / with headers
text/plain 848b
Hi, both Build.PL and Makefile.PL of GD-2.56 do not correctly parse the version of libgd as returned by gdlib-config. Excerpt from Makefile.PL line 302: my ($minor) = $version =~ /^2\.\d+\.(\d+)$/; $$options .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33" if defined($minor) && $minor >= 33; The above options GD_* were introduced as of libgd 2.0.33. But, current version is 2.2.3. Thus, the check fails. I'm proposing a trivial fix: my ($release, $major, $minor) = $version =~ /^(\d+)\.(\d+)\.(\d+)$/; $$options .= " GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33" if defined($minor) && ($release > 2 || ($release == 2 && $major > 0) || ($release == 2 && $major == 0 && $minor >= 33)); Patches are attached. See also https://lists.freebsd.org/pipermail/freebsd-perl/2016-December/012391.html BR, Felix
Download patch-Build.PL.1
text/plain 760b

Message body is not shown because sender requested not to inline it.

Download patch-Makefile.PL
text/x-perl 768b

Message body is not shown because sender requested not to inline it.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.