Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 72535
Status: resolved
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: DDAY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.3800
Fixed in: 0.39_01



Subject: Missing CPAN::Meta::YAML dependency
While installing under cygwin (PERL 5.10.1) via cpan, I receive the following error during tests: t/mymeta.t ..................... 25/39 Can't locate object method "new" via package "CPAN::Meta::YAML" at t/mymeta.t line 115. # Looks like you planned 39 tests but ran 28. # Looks like your test exited with 2 just after 28. t/mymeta.t ..................... Dubious, test returned 2 (wstat 512, 0x200) I looked at mymeta.t and saw a call to CPAN::Meta::YAML->new(). I did not have CPAN::Meta::YAML installed, and the Module::Build doesn't call it out as a dependency. Further, I had to add 'use CPAN::Meta::YAML;' to mymeta.t for its tests to pass. This may only be a problem under cygwin / perl 5.10.1 as I was able to successfully install Module::Build on Ubuntu 11.10 / perl 5.12 with no issue.
Subject: Re: [rt.cpan.org #72535] Missing CPAN::Meta::YAML dependency
Date: Fri, 18 Nov 2011 14:23:28 -0500
To: bug-Module-Build [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Fri, Nov 18, 2011 at 2:15 PM, David L. Day via RT <bug-Module-Build@rt.cpan.org> wrote: Show quoted text
> While installing under cygwin (PERL 5.10.1) via cpan, I receive the > following error during tests: > > t/mymeta.t ..................... 25/39 Can't locate object method "new" > via package "CPAN::Meta::YAML" at t/mymeta.t line 115. > # Looks like you planned 39 tests but ran 28. > # Looks like your test exited with 2 just after 28. > t/mymeta.t ..................... Dubious, test returned 2 (wstat 512, 0x200)
Thanks for the report. I'll check it out. Generally, CPAN::Meta::YAML gets required (and loaded) by other modules, but maybe M::B needs to make it explicit. There are some issues reported about modules appearing missing. This might have to do with the ordering of library paths and core modules shadowing site-installed modules. Could you please run the following against your cygwin perl? $ perldoc -l CPAN::Meta $ perldoc -l Parse::CPAN::Meta $ perldoc -l CPAN::Meta::YAML Thank you, David
Subject: Re: [rt.cpan.org #72535] Missing CPAN::Meta::YAML dependency
Date: Fri, 18 Nov 2011 14:33:22 -0500
To: bug-Module-Build [...] rt.cpan.org
From: "David L. Day" <dday376 [...] gmail.com>
Here you go: $ perldoc -l CPAN::Meta /usr/lib/perl5/5.10/CPAN/Meta.pm $ perldoc -l Parse::CPAN::Meta /usr/lib/perl5/5.10/Parse/CPAN/Meta.pm $ perldoc -l CPAN::Meta::YAML /usr/lib/perl5/5.10/CPAN/Meta/YAML.pm Let me know how else I can help. Thanks! - David On Fri, Nov 18, 2011 at 2:24 PM, David Golden via RT <bug-Module-Build@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=72535 > > > On Fri, Nov 18, 2011 at 2:15 PM, David L. Day via RT > <bug-Module-Build@rt.cpan.org> wrote:
>> While installing under cygwin (PERL 5.10.1) via cpan, I receive the >> following error during tests: >> >> t/mymeta.t ..................... 25/39 Can't locate object method "new" >> via package "CPAN::Meta::YAML" at t/mymeta.t line 115. >> # Looks like you planned 39 tests but ran 28. >> # Looks like your test exited with 2 just after 28. >> t/mymeta.t ..................... Dubious, test returned 2 (wstat 512, 0x200)
> > Thanks for the report.  I'll check it out.  Generally, > CPAN::Meta::YAML gets required (and loaded) by other modules, but > maybe M::B needs to make it explicit. > > There are some issues reported about modules appearing missing.  This > might have to do with the ordering of library paths and core modules > shadowing site-installed modules. > > Could you please run the following against your cygwin perl? > >    $ perldoc -l CPAN::Meta >    $ perldoc -l Parse::CPAN::Meta >    $ perldoc -l CPAN::Meta::YAML > > Thank you, > David > >
-- "If happiness is having what you want, want what you have." - Buddha