Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 75034
Status: rejected
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: ambs [...] cpan.org
Cc:
AdminCc:

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



Subject: Version 0 vs undef for modules with no version.
Problem: - packages without a VERSION Why? - CPAN indexer indexes them as version 0. - CPAN (the module) interprets their version as undef. Consequence: when running 'r' in the cpan shell, I get lots of messages like this: HTML::Mason::Apache::Request undef 0 DROLSKY/HTML-Mason-1.48.tar.gz If you check https://metacpan.org/source/DROLSKY/HTML-Mason-1.48/lib/HTML/Mason/Apache/Request.pm, there is no VERSION. Although in that case Dave could add a VERSION, there are some other cases, like this one: Lingua::NATools::Config undef 0 AMBS/Lingua/Lingua-NATools-v0.6.1.tar.gz Where the Config module is generated by Module::Build. What would be the best way to solve? make the indexer index as undef, or make cpan treat 0 and undef as same?
On Wed Feb 15 12:56:59 2012, AMBS wrote: Show quoted text
> Problem: > - packages without a VERSION > > Why? > - CPAN indexer indexes them as version 0. > - CPAN (the module) interprets their version as undef. > > Consequence: > when running 'r' in the cpan shell, I get lots of messages like this: > > HTML::Mason::Apache::Request undef 0 > DROLSKY/HTML-Mason-1.48.tar.gz > > If you check > https://metacpan.org/source/DROLSKY/HTML-Mason- > 1.48/lib/HTML/Mason/Apache/Request.pm, > there is no VERSION. > > Although in that case Dave could add a VERSION, there are some other > cases, like this one: > > Lingua::NATools::Config undef 0 > AMBS/Lingua/Lingua-NATools-v0.6.1.tar.gz > > Where the Config module is generated by Module::Build. > > > What would be the best way to solve? make the indexer index as undef, > or > make cpan treat 0 and undef as same?
No news on this? Cheers ambs
Let's look more closely. sand@k83:~/.cpan/build/HTML-Mason-1.48-cnD8S_% grep -A2 HTML::Mason::Apache::Request META.yml HTML::Mason::Apache::Request: file: lib/HTML/Mason/Apache/Request.pm version: 0 So albeit the file has no version declared, the META.yml declares it as version being 0. Not a CPAN bug. I suspect it's a Module::Build bug in version 0.38 because it produces an incorrect META.yml file. Show quoted text
>sand@k83:~/.cpan/build/Lingua-NATools-v0.7.0-F5d4TO% grep -A2
Lingua::NATools::Config META.yml Lingua::NATools::Config: file: lib/Lingua/NATools/Config.pm version: 0 This looks like the same bug. I'll reject the ticket, maybe you want to reopen it in the Module::Build queue?