Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

Report information
The Basics
Id: 90142
Status: resolved
Priority: 0/
Queue: DBI

People
Owner: Nobody in particular
Requestors: justdave [...] bugzilla.org
Cc:
AdminCc:

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



Subject: Version number reported incorrectly in DBI 1.630
Date: Fri, 08 Nov 2013 03:04:13 -0500
To: bug-DBI [...] rt.cpan.org
From: Dave Miller <justdave [...] bugzilla.org>
DBI 1.630 mis-reports its version number as 1.63, which makes apps that depend on it and require a specific version or newer (like Bugzilla which requires 1.614 or newer) think the version is too old and refuse to use it. Appending installation info to /Library/Perl/Updates/5.12.4/darwin-thread-multi-2level/perllocal.pod TIMB/DBI-1.630.tar.gz /usr/bin/make install -- OK rmbp:~ admin$ perl -MDBI -e 'print "$DBI::VERSION\n"' 1.63 XS_VERSION gets it right... rmbp:~ admin$ perl -MDBI -e 'print "$DBI::XS_VERSION\n"' 1.630 I suspect the $VERSION = eval $VERSION is what's hosing it. Why's it do that anyway? -- Dave Miller http://www.justdave.net/ IT Infrastructure Engineer, Mozilla http://www.mozilla.org/ Project Leader, Bugzilla Bug Tracking System http://www.bugzilla.org/
I suspect you missed http://www.dagolden.com/index.php/369/version-numbers-should-be-boring/ ;) In a world where version numbers are numbers, 1.63 == 1.630 - and: 1.63000000 == 1.6300000000000000000000000000 (because you can pad as many zeros as you want behind the comma of a rational number, can't you?) $ perl -Mversion -le 'my $version = version->new("1.63"); print $version->numify'; $ perl -le 'use DBI qw(1.630); print DBI->VERSION' 1.63 $ perl -le 'use DBI qw(1.630); print version->new(DBI->VERSION)->numify' 1.630 other env: $ perl -le 'use DBI qw(1.630);' DBI version 1.630 required--this is only version 1.628 at /opt/pkg/lib/perl5/5.18.0/Exporter/Heavy.pm line 120. BEGIN failed--compilation aborted at -e line 1. Does it help? Jens
Fixed in 1.631 :)