Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 24062
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: jleffler [...] earthlink.net
Cc:
AdminCc:

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



Subject: Problem with CPANPLUS 0.076 misidentifying versions after installing Text::NSP 1.03
Date: Sat, 23 Dec 2006 10:34:03 -0800
To: tpederse [...] umn.edu, Bugs in CPANPLUS via RT <bug-CPANPLUS [...] rt.cpan.org>, bug-text-nsp [...] rt.cpan.org
From: Jonathan Leffler <jleffler [...] earthlink.net>
Dear Ted and CPANPLUS Maintenance team, I installed Text::NSP v1.03 without any problems, but after that, CPANPLUS complains that Text::NSP::Measures is out of date because the installed version is 0.01 and not the 0.97 that is recorded on CPAN. Looking at the Measures.pm file, it appears that the trouble is because the POD precedes the code (specifically, it precedes the code that defines the version of Measures.pm), and CPANPLUS is not noticing that the VERSION code it is looking at is in POD and not in code. I'm reporting that as a bug to the CPANPLUS team, Ted, but there's also an easy fix for Measures.pm, namely to move the code that defines the version of Measures.pm up to near the front of the module. (I added an '=cut' line before '=head1 DESCRIPTION' and moved 6 paragraphs of code defining the package and its version up the file - the problem no longer occurs (CPANPLUS does not complain that T::NSP::M is at version 0.01). For the CPANPLUS team - I'm using: CPANPLUS::Shell::Default -- CPAN e[...] (v0.076) *** Using CPANPLUS::Backend v0.076. ReadLine support enabled. This is with Perl 5.8.8 on MacOS X 10.4.8. I'll supply 'perl -V' output if you need it. -- Jonathan Leffler #include <disclaimer.h> Email: jleffler@earthlink.net, jleffler@us.ibm.com Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/
On Sat Dec 23 13:34:41 2006, jleffler@earthlink.net wrote: Show quoted text
> Dear Ted and CPANPLUS Maintenance team, > > I installed Text::NSP v1.03 without any problems, but after that, > CPANPLUS complains that Text::NSP::Measures is out of date because the > installed version is 0.01 and not the 0.97 that is recorded on CPAN. > > Looking at the Measures.pm file, it appears that the trouble is because > the POD precedes the code (specifically, it precedes the code that > defines the version of Measures.pm), and CPANPLUS is not noticing that > the VERSION code it is looking at is in POD and not in code.
Thanks for reporting. This is indeed a bug in CPANPLUS, or more accurately, Module::Load::Conditional (the module that parses the VERSION entries); although we use the same regex as EU::MM does, we weren't doing the 'in POD' check it was. A new version of M::L::C (0.14) has just been uploaded to CPAN that should address this issue. Furthermore, the dependency for CPANPLUS has been upped to 0.14 as well, so that new releases of CPANPLUS will not be affected by this problem. Thanks again, Jos