Bug#578990: libclass-dbi-pg-perl: FTBFS with Perl 5.12.0: broken Makefile.PL

Niko Tyni ntyni at debian.org
Sat Apr 24 05:02:33 UTC 2010


Package: libclass-dbi-pg-perl
Version: 0.09-3
Severity: important
User: debian-perl at lists.debian.org
Usertags: perl-5.12-transition

This package fails to build with perl_5.12.0-1 from experimental:

     dh_auto_configure
  Invalid version format (non-numeric data) at /usr/share/perl/5.12/ExtUtils/MakeMaker.pm line 467.
  Checking if your kit is complete...
  Looks good
  dh_auto_configure: perl Makefile.PL INSTALLDIRS=vendor create_packlist=0 returned exit code 255
  make: *** [build] Error 2

Quoting Michael G Schwern in
 http://www.nntp.perl.org/group/perl.perl5.porters/2010/04/msg158583.html

> I'm able to replicate this with 5.12.0 RC4 built from git and Class::DBI::Pg 
> from CPAN.  I had to install Class::DBI before it would happen.
> 
> The problem is this line in the Makefile.PL:
> 
>      'Class::DBI' => '>= 0.89',
> 
> MakeMaker doesn't know anything about >= version specs.  It blindly treats ">= 
> 0.89" as a version number.  This results in trying to compare a version object 
> with non-numeric data (actually at line 474).
> 
> It never really worked before, just produced a warning.  But Makefile.PLs 
> generally aren't run with warnings.
 
Indeed, removing the '>=' operators from Makefile.PL fixes the issue for me.
-- 
Niko Tyni   ntyni at debian.org





More information about the pkg-perl-maintainers mailing list