>>>>> On Wed, 2 May 2007 22:34:23 +0000, Julian Mehnle <[EMAIL PROTECTED]> said:

  > 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"?

This looks like a mismatch of the way how CPAN.pm and version.pm
handle the stringification of the numification of version objects.

When CPAN.pm calculates the number, it never has trailing zeroes, when
version.pm calculates the number, it often appends trailing zeroes.

There's not much you can do about it. Some day CPAN.pm will switch to
using version.pm directly and hopefully this will then resolve your
issue. But I'm not yet up to it.

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

I fear it won't. Switching to pure numeric versions would help and
switching to versions with two dots but without trailing zeroes would
also help (I think). But John Peacock certainly knows better than me
which solutions else should work reliably.


-- 
andreas

Reply via email to