[Bug 175468] error on version check during "cpan r"
bugzilla at redhat.com
bugzilla at redhat.com
Tue Dec 20 17:49:30 UTC 2005
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.
Summary: error on version check during "cpan r"
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175468
------- Additional Comments From jvdias at redhat.com 2005-12-20 12:49 EST -------
Perhaps this extract from 'man CPAN' might shed some light on this issue:
"
Finding packages and VERSION
This module presumes that all packages on CPAN
· declare their $VERSION variable in an easy to parse manner.
This prerequisite can hardly be relaxed because it consumes far
too much memory to load all packages into the running program just
to determine the $VERSION variable. Currently all programs that are
dealing with version use something like this
perl -MExtUtils::MakeMaker -le \
’print MM->parse_version(shift)’ filename
If you are author of a package and wonder if your $VERSION can be
parsed, please try the above method.
"
$ perl -MExtUtils::MakeMaker -le 'print MM->parse_version(shift)' DBSchema/DBD/Pg.pm
Could not eval '
package ExtUtils::MakeMaker::_version;
no strict;
local $DBD::Pg::VERSION;
$DBD::Pg::VERSION=undef; do {
if $DBD::Pg::VERSION != 1.32 && $DBD::Pg::VERSION < 1.41;
}; $DBD::Pg::VERSION
' in DBSchema/DBD/Pg.pm: syntax error at (eval 4) line 7, near "if
$DBD::Pg::VERSION "
undef
( then move the $VERSION setting up a few lines as above )
$ perl -MExtUtils::MakeMaker -le 'print MM->parse_version(shift)' DBSchema/DBD/Pg.pm
0.10
This also happens with the latest ExtUtils::MakeMaker 6.3 , so I guess this
is simply a limitation of all MakeMaker implementations that module writers
have to work within, as mentioned in the CPAN documentation.
--
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Fedora-perl-devel-list
mailing list