David Cantrell <[EMAIL PROTECTED]> writes:

> On Sat, Apr 12, 2008 at 12:20:22PM +0200, Slaven Rezic wrote:
> > Tony Cook <[EMAIL PROTECTED]> writes:
> > > I thought the presence of:
> > > configure_requires:
> > >   Imager: 0.54
> > > build_requires:
> > >   Imager: 0.54
> > >   Test::More: 0.47
> > > Was meant to prevent this sort of failure?
> > Correct, but CPAN.pm needs either YAML.pm or YAML::Syck to be able to
> > parse the META.yml. As you see from the report, neither is installed
> > on David's machine.
> > 
> > This is a known problem. CPAN.pm for instance cannot require YAML or
> > YAML::Syck as a prerequisite, because it is meant to be compatible for
> > very old perls (5.004). But there are no YAML modules which support
> > old perls...
> 
> YAML::Tiny does.

Well, YAML::Tiny implements only a serialization language named
YAML-Tiny, so I did not mention it here.

>  It doesn't support all the weird nooks and crannies of
> YAML, but parsing META.yml is one of its goals.  I've not looked at
> YAML::Tiny in detail, but provided that it is clever enough to recognise
> bits of YAML that it doesn't understand and fail appropriately, then I
> see no reason why CPAN.pm can't use it.

CPAN.pm uses YAML for a lot of things, like dumping ftp statistics and
build dir status, and parsing distroprefs files and META.yml files.
Currently it looks like it's only possible to specify one YAML module
which does everything, but YAML::Tiny cannot parse all of mine
distroprefs, for instance, and it does not support some of the other
things.

So CPAN.pm probably needs to separate internally the YAML module for
parsing the META.yml files and for everything else.

Pity that there was never a convention of dumping a META.dd next to
META.yml...

Regards,
    Slaven

-- 
Slaven Rezic - slaven <at> rezic <dot> de

    tkruler - Perl/Tk program for measuring screen distances
    http://ptktools.sourceforge.net/#tkruler

Reply via email to