Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 121307
Status: resolved
Priority: 0/
Queue: GD

People
Owner: RURBAN [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc: WRW [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 2.61
  • 2.62
Fixed in: (no value)



CC: WRW [...] cpan.org
Subject: GD 2.61 breaks WRW/Barcode-Code128-2.21
If GD 2.61 or later is installed, then the test suite of Barcode-Code128 fails: ... The gif() method of Barcode::Code128 requires the GD module at t/gif.t line 19. # Looks like your test exited with 255 before it could output anything. t/gif.t ...... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 294/294 subtests The png() method of Barcode::Code128 requires the GD module at t/png.t line 26. # Looks like your test exited with 255 before it could output anything. t/png.t ...... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 294/294 subtests ... 2.60 or earlier seems to be OK.
Ouch. I added a VERSION method, which is treated magically on 'eval "use GD 2.18"; print $@' Usage: GD::VERSION() I'll rename VERSION() to LIBGD_VERSION(). Fixed in 2.63 -- Reini Urban
CC: SREZIC [...] cpan.org
Subject: Re: [rt.cpan.org #121307] GD 2.61 breaks WRW/Barcode-Code128-2.21
Date: Sun, 23 Apr 2017 03:29:58 -0700
To: bug-GD [...] rt.cpan.org
From: William Ward - CPAN <wrw [...] cpan.org>
So no fix needed for Barcode::Code128? Or if someone has a suggestion for a workaround I'm open to it On Sun, Apr 23, 2017 at 1:22 AM, Reini Urban via RT <bug-GD@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=121307 > > > Ouch. I added a VERSION method, which is treated magically > on 'eval "use GD 2.18"; print $@' > > Usage: GD::VERSION() > > I'll rename VERSION() to LIBGD_VERSION(). > Fixed in 2.63 > -- > Reini Urban >
-- Check out my LEGO blog at http://www.brickpile.com/ View my photos at http://flickr.com/photos/billward/ Follow me at http://twitter.com/williamward
RT-Send-CC: WRW [...] cpan.org
My suggestion is to change Barcode-Code128's Makefile.PL to make sure that the problematic GD versions are not installed. Maybe with code like this (untested): my $gd_minimum_version = 0; if (eval { require GD; $GD::VERSION =~ m{^2\.(61|62)$} }) { $gd_minimum_version = '2.63'; } ... PREREQ_PM => { GD => $gd_minimum_version } ... On 2017-04-23 06:31:01, WRW wrote: Show quoted text
> So no fix needed for Barcode::Code128? Or if someone has a suggestion for a > workaround I'm open to it > > On Sun, Apr 23, 2017 at 1:22 AM, Reini Urban via RT <bug-GD@rt.cpan.org> > wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=121307 > > > > > Ouch. I added a VERSION method, which is treated magically > > on 'eval "use GD 2.18"; print $@' > > > > Usage: GD::VERSION() > > > > I'll rename VERSION() to LIBGD_VERSION(). > > Fixed in 2.63 > > -- > > Reini Urban > >
> > >