develooper Front page | perl.module.build | Postings from May 2007

Fwd: installed Mail::SPF reports/compares version incorrectly in cpan

Thread Next
From:
Julian Mehnle
Date:
May 2, 2007 15:34
Subject:
Fwd: installed Mail::SPF reports/compares version incorrectly in cpan
Message ID:
200705022234.25071.julian@mehnle.net
Hi all,

recently someone reported a problem with one of my modules that might
indicate an issue with how CPAN, Module::Build's META.yml generator, and
version.pm interact.  Please see the rt.cpan.org ticket included below.

The Mail-SPF 2.004 distribution package was built with Module::Build 0.26,
as that is the least outdated version available in Debian. :-(

Is it likely that M::B 0.26's META.yml generator is badly interacting
with version.pm-based version numbers (`use version; our $VERSION =
qv('2.004');`) and CPAN is really expecting a version.pm-style version
number in META.yml (here: "v2.004")?  Or why would CPAN report a version
mismatch for "v2.004" vs "2.004000"?

Is upgrading to M::B 0.28 and regenerating the distribution package (and
its META.yml file) likely to help?

Julian.


----------  Forwarded Message  ----------
Subject: [rt.cpan.org #26784] installed Mail::SPF reports/compares version incorrectly in cpan
Date: Sunday, 29. April 2007 15:29
From: "schneecrash@gmail.com via RT" <bug-Mail-SPF@rt.cpan.org>
To: undisclosed-recipients: ;

Sun Apr 29 11:29:36 2007: Request 26784 was acted upon.
Transaction: Ticket created by schneecrash@gmail.com
       Queue: Mail-SPF
     Subject: installed Mail::SPF reports/compares version incorrectly in
 cpan Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: schneecrash@gmail.com
      Status: new
 Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=26784 >


hi,

with,

  Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=darwin, osvers=8.8.0, archname=darwin-thread-multi-2level
    uname='darwin dev 8.8.0 darwin kernel version 8.8.0: fri sep 8 17:18:57 pdt 2006; root:xnu-792.12.6.obj~1release_ppc power macintosh powerpc '

after an apparently successful install of,

  cpan> install Mail::SPF
    ...
    Writing /usr/local/lib/perl/sitelib/darwin-thread-multi-2level/auto/Mail/SPF/.packlist JMEHNLE/mail-spf/Mail-SPF-2.004.tar.gz
    /usr/bin/make install UNINST=1 -- OK
  cpan> q
  % module_info Mail::SPF
    Name:        Mail::SPF
    Version:     v2.004
    Directory:   /usr/local/lib/perl/sitelib
    File:        /usr/local/lib/perl/sitelib/Mail/SPF.pm
    Core module: no
   %

re-checking,

  % cpan
  cpan> r

still reports,

  Package namespace         installed    latest  in CPAN file
  Mail::SPF                    v2.004  2.004000  JMEHNLE/mail-spf/Mail-SPF-2.004.tar.gz
  6 installed modules have a version number of 0
  373 installed modules have no parseable version number
  cpan>

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About