Subject: | Sub::Name not listed as a build/test dep, yet tests fail when not present |
Date: | Sat, 8 Nov 2008 14:04:37 -0800 |
To: | bug-Moose [...] rt.cpan.org |
From: | "Chris Weyl" <cweyl [...] alumni.drew.edu> |
If building Moose 0.61 w/o Sub::Name present, tests fail.
e.g.:
+ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/000_recipes/basics/*.t t/000_recipes/extending/*.t
t/000_recipes/meta/*.t t/000_recipes/roles/*.t t/010_basics/*.t
t/020_attributes/*.t t/030_roles/*.t t/040_type_constraints/*.t
t/050_metaclasses/*.t t/060_compat/*.t t/100_bugs/*.t
t/200_examples/*.t t/300_immutable/*.t t/400_moose_util/*.t
t/500_test_moose/*.t t/600_todo_tests/*.t
t/000_load.....................................................
# Failed test 'use Moose;'
# at t/000_load.t line 12.
# Tried to use 'Moose'.
# Error: Can't locate Sub/Name.pm in @INC (@INC contains:
/builddir/build/BUILD/Moose-0.61/inc
/builddir/build/BUILD/Moose-0.61/blib/lib
/builddir/build/BUILD/Moose-0.61/blib/arch
/usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
/usr/local/lib/perl5/site_perl .) at
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MOP.pm
line 55.
# Compilation failed in require at
/builddir/build/BUILD/Moose-0.61/blib/lib/Moose/Exporter.pm line 10.
# BEGIN failed--compilation aborted at
/builddir/build/BUILD/Moose-0.61/blib/lib/Moose/Exporter.pm line 10.
# Compilation failed in require at
/builddir/build/BUILD/Moose-0.61/blib/lib/Moose.pm line 16.
# BEGIN failed--compilation aborted at
/builddir/build/BUILD/Moose-0.61/blib/lib/Moose.pm line 16.
# Compilation failed in require at (eval 2) line 2.
# BEGIN failed--compilation aborted at (eval 2) line 2.
# Looks like you failed 1 test of 1.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
etc, etc. See http://koji.fedoraproject.org/koji/getfile?taskID=922879&name=build.log
for the full build log.
-Chris
--
Chris Weyl
Ex astris, scientia