On Mon Oct 30 14:37:48 2006, albers@folk.de wrote:
Show quoted text> > Could you give an example of an older installed module that leads to
> > this problem? I tried making a ppm package for a few modules which
> were
> > installed on my system that had older versions, and PPM::Make picked
> up
> > the correct version. However, there may have been something special
> > about these particular modules that led to this. Thanks.
>
> Dear Randy,
> Thanks for your quick response.
> I just found the real reason for the wrong version numbers.
>
> The modules in question were Test::Harness 2.64 an my own module
> Config::LotusNotes
> 0.23 (not yet released).
>
> In both cases the distribution directory contained an outdated
> META.yml file.
> The incorrect version was taken from there.
Hi Harald,
Thanks for the example, and elaboration. I've also come across
situations where an older META.yml file led to the wrong version
being picked up by PPM::Make. I originally thought to leave it at
that, as META.yml is much easier and quicker to use, and at some point,
one has to trust the author. However, this problem seems to be not
so isolated, so what I think I'll do is use META.yml for getting the
version number as a last resort, when other means (such as a
VERSION_FROM specifying a file) isn't available.
Rebuilding the distribution, as well as being more expensive, may
not always work, as some authors specify NO_META to disable writing
the meta file. This is handy when, for example, the distribution is
under cvs or svn control, and you want to maintain the META.yml file
by hand.
--
best regards,
Randy