Re: Possible bug?

[email protected] ("Fields, Christopher J") Tue, 18 Oct 2011 18:40:47 +0000
Newsgroups perl.module.build
Message-ID <[email protected]>
On Oct 18, 2011, at 11:23 AM, David Golden wrote:

> On Tue, Oct 18, 2011 at 9:36 AM, Fields, Christopher J
> <[email protected]> wrote:
>> https://github.com/bioperl/bioperl-network
>>=20
>> I can work on a minimal test case.  If needed I can also fork the specif=
ic github code and try to weed out the problem.
>=20
> No need to do the test case.  I was able to load the bioperl
> dependency chain and see it directly.  :-)
>=20
> I have two reactions:
>=20
> (a) Module::Build is doing it wrong -- in that it will "normalize" an
> undefined version to "0" and leave it in.  The CPAN::Meta::Spec v2
> says that the version metadata should only exist if a $VERSION string
> exists, but Module::Build does not produce v2 metadata and the v1.4
> spec doesn't say anything about the subkeys of "provides".
>=20
> (b) PAUSE is being too nitpicky.  An undefined $VERSION is effectively
> treated as a "0" in code, so it doesn't really matter too much if the
> metadata says "0" or omits the key.
>=20
> Nevertheless, in a battle between M::B and PAUSE, clearly PAUSE should
> win.  (I get to wear both hats: I'm PAUSE admin *and* M::B
> co/ex-maintainer, so I'm indifferent.)

Andreas fixed this for PAUSE and the dist successfully reindexed, but it's =
definitely worth fixing in M::B as well (the indexing issue was raised on m=
odules@perl as well).

> I'll commit a fix to the repo and if/when a new M::B maintainer
> volunteers (or I'm forced by p5p to do another release), then it will
> go live.

Thanks!

> I do encourage adding $VERSION to the bioperl code (it looks like
> you're heading down the dzil route -- which can solve that for you).
>=20
> -- David

Yep, we're splitting bioperl up and using dzil to push releases to CPAN, so=
 each dist will require a specific VERSION.

chris