Skip Menu |

This queue is for tickets about the Any-Moose CPAN distribution.

Report information
The Basics
Id: 82064
Status: resolved
Priority: 0/
Queue: Any-Moose

People
Owner: ether [...] cpan.org
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.18
Fixed in: 0.25



Subject: make test failure
Seems like you're missing a number of dependencies in your makefile.pl :-( PERL_DL_NONLAZY=1 /opt/perl-5.8.8/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/000-version................... # Failed test 'use Any::Moose;' # in t/000-version.t at line 3. # Tried to use 'Any::Moose'. # Error: Undefined subroutine &Mouse::Util::get_metaclass_by_name called at /builddir/build/BUILD/Any-Moose-0.18/blib/lib/Any/Moose.pm line 103. # BEGIN failed--compilation aborted at t/000-version.t line 3. # Mouse: 0.33 # MouseX::Types unavailable: Can't locate MouseX/Types.pm in @INC (@INC contains: /builddir/build/BUILD/Any-Moose-0.18/blib/lib /builddir/build/BUILD/Any-Moose- 0.18/blib/arch /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux /opt/perl- 5.8.8/lib/site_perl/5.8.8 /opt/perl-5.8.8/lib/site_perl /opt/perl- 5.8.8/lib/vendor_perl/5.8.8/x86_64-linux /opt/perl-5.8.8/lib/vendor_perl/5.8.8 /opt/perl- 5.8.8/lib/vendor_perl /opt/perl-5.8.8/lib/5.8.8/x86_64-linux /opt/perl-5.8.8/lib/5.8.8 .) at (eval 8) line 1. # BEGIN failed--compilation aborted at (eval 8) line 1. # Moose unavailable: Can't locate Moose.pm in @INC (@INC contains: /builddir/build/BUILD/Any-Moose-0.18/blib/lib /builddir/build/BUILD/Any-Moose- 0.18/blib/arch /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux /opt/perl- 5.8.8/lib/site_perl/5.8.8 /opt/perl-5.8.8/lib/site_perl /opt/perl- 5.8.8/lib/vendor_perl/5.8.8/x86_64-linux /opt/perl-5.8.8/lib/vendor_perl/5.8.8 /opt/perl- 5.8.8/lib/vendor_perl /opt/perl-5.8.8/lib/5.8.8/x86_64-linux /opt/perl-5.8.8/lib/5.8.8 .) at (eval 9) line 1. # BEGIN failed--compilation aborted at (eval 9) line 1. # Class::MOP unavailable: Can't locate Class/MOP.pm in @INC (@INC contains: /builddir/build/BUILD/Any-Moose-0.18/blib/lib /builddir/build/BUILD/Any-Moose- 0.18/blib/arch /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux /opt/perl- 5.8.8/lib/site_perl/5.8.8 /opt/perl-5.8.8/lib/site_perl /opt/perl- 5.8.8/lib/vendor_perl/5.8.8/x86_64-linux /opt/perl-5.8.8/lib/vendor_perl/5.8.8 /opt/perl- 5.8.8/lib/vendor_perl /opt/perl-5.8.8/lib/5.8.8/x86_64-linux /opt/perl-5.8.8/lib/5.8.8 .) at (eval 10) line 1. # BEGIN failed--compilation aborted at (eval 10) line 1. # MooseX::Types unavailable: Can't locate MooseX/Types.pm in @INC (@INC contains: /builddir/build/BUILD/Any-Moose-0.18/blib/lib /builddir/build/BUILD/Any-Moose- 0.18/blib/arch /opt/perl-5.8.8/lib/site_perl/5.8.8/x86_64-linux /opt/perl- 5.8.8/lib/site_perl/5.8.8 /opt/perl-5.8.8/lib/site_perl /opt/perl- 5.8.8/lib/vendor_perl/5.8.8/x86_64-linux /opt/perl-5.8.8/lib/vendor_perl/5.8.8 /opt/perl- 5.8.8/lib/vendor_perl /opt/perl-5.8.8/lib/5.8.8/x86_64-linux /opt/perl-5.8.8/lib/5.8.8 .) at (eval 11) line 1. # BEGIN failed--compilation aborted at (eval 11) line 1. # Looks like you failed 1 test of 1. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1
This issue can happen if and old version of Mouse is installed, as well as any version of Moose. Makefile.PL sees Moose and lists it as a prerequisite, but not Mouse. The tests then run and see Mouse and try to test against it. But hey don't check Mouse's version, and if it is old enough the tests will break. Either Makefile.PL needs to force an upgrade in this case, or the tests need to skip for older versions of Mouse.
On 2015-01-19 19:26:47, haarg wrote: Show quoted text
> Either Makefile.PL needs to force an upgrade in this case
This would be very similar to what JSON::MaybeXS does when an old version of JSON::XS is seen - it is going to be used by the code, so it forces an update to a new-enough version, before even considering anything about Cpanel::JSON::XS. Show quoted text
> or the > tests need to skip for older versions of Mouse.
Given the deprecated nature of this module, this would be even easier. :)
Fixed in 0.25.