Subject: | Tests fail with recent Mooses/Class::MOPs |
The tests fail in recent Mooses/Class::MOPs:
[shlomif@lap perl-MooseX-ChainedAccessors]$ mdvsys build -v -v
Building package from spec file SPECS/perl-MooseX-ChainedAccessors.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dFwUz5
+ umask 022
+ cd
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILD
+ rm -rf MooseX-ChainedAccessors-0.01
+ /usr/bin/gzip -dc
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/SOURCES/MooseX-ChainedAccessors-0.01.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd MooseX-ChainedAccessors-0.01
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.5Ecm02
+ umask 022
+ cd
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILD
+ cd MooseX-ChainedAccessors-0.01
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
Cannot determine perl version info from
lib/MooseX/ChainedAccessors/Accessor.pm
Checking if your kit is complete...
Looks good
Writing Makefile for MooseX::ChainedAccessors
+ make -j2
cp lib/MooseX/ChainedAccessors/Accessor.pm
blib/lib/MooseX/ChainedAccessors/Accessor.pm
cp lib/MooseX/Traits/Attribute/Chained.pm
blib/lib/MooseX/Traits/Attribute/Chained.pm
cp lib/Moose/Meta/Attribute/Custom/Trait/Chained.pm
blib/lib/Moose/Meta/Attribute/Custom/Trait/Chained.pm
Manifying blib/man3/MooseX::ChainedAccessors::Accessor.3pm
Manifying blib/man3/MooseX::Traits::Attribute::Chained.3pm
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Hk55M1
+ umask 022
+ cd
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILD
+ cd MooseX-ChainedAccessors-0.01
+ '[' 1 -eq 1 ']'
+ rm -rf
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILDROOT/perl-MooseX-ChainedAccessors-0.10.0-1mdv2010.1.x86_64
+ make
DESTDIR=/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILDROOT/perl-MooseX-ChainedAccessors-0.10.0-1mdv2010.1.x86_64
install
Manifying blib/man3/MooseX::ChainedAccessors::Accessor.3pm
Manifying blib/man3/MooseX::Traits::Attribute::Chained.3pm
Installing
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILDROOT/perl-MooseX-ChainedAccessors-0.10.0-1mdv2010.1.x86_64/usr/lib/perl5/vendor_perl/5.10.1/Moose/Meta/Attribute/Custom/Trait/Chained.pm
Installing
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILDROOT/perl-MooseX-ChainedAccessors-0.10.0-1mdv2010.1.x86_64/usr/lib/perl5/vendor_perl/5.10.1/MooseX/Traits/Attribute/Chained.pm
Installing
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILDROOT/perl-MooseX-ChainedAccessors-0.10.0-1mdv2010.1.x86_64/usr/lib/perl5/vendor_perl/5.10.1/MooseX/ChainedAccessors/Accessor.pm
Installing
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILDROOT/perl-MooseX-ChainedAccessors-0.10.0-1mdv2010.1.x86_64/usr/share/man/man3/MooseX::Traits::Attribute::Chained.3pm
Installing
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILDROOT/perl-MooseX-ChainedAccessors-0.10.0-1mdv2010.1.x86_64/usr/share/man/man3/MooseX::ChainedAccessors::Accessor.3pm
Appending installation info to
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILDROOT/perl-MooseX-ChainedAccessors-0.10.0-1mdv2010.1.x86_64/usr/lib/perl5/5.10.1/x86_64-linux-thread-multi/perllocal.pod
+ /usr/lib/rpm/mandriva/find-debuginfo.sh
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILD/MooseX-ChainedAccessors-0.01
+ '[' -n '' ']'
+ /usr/share/spec-helper/clean_files
+ '[' -n '' ']'
+ /usr/share/spec-helper/compress_files .lzma
+ '[' -n '' ']'
+ /usr/share/spec-helper/relink_symlinks
+ '[' -n '' ']'
+ /usr/share/spec-helper/clean_perl
+ '[' -n '' ']'
+ /usr/share/spec-helper/lib_symlinks
+ '[' -n '' ']'
+ /usr/share/spec-helper/gprintify
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_mo
+ '[' -n '' ']'
+ /usr/share/spec-helper/translate_menu
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_pamd
+ '[' -n '' ']'
+ /usr/share/spec-helper/remove_info_dir
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_eol
+ '[' -n '' ']'
+ /usr/share/spec-helper/check_elf_files
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Kedb91
+ umask 022
+ cd
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILD
+ cd MooseX-ChainedAccessors-0.01
+ '[' 1 -eq 1 ']'
+ make -j2 test
PERL_DL_NONLAZY=1 /usr/bin/perl5.10.1 "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/chained.t .. 1/8 Could not create the 'accessor' method for
chained_attr because : Can't locate object method "_inline_access" via
package "MooseX::ChainedAccessors::Accessor" at
/home/shlomif/Download/unpack/Mandriva/perl-MooseX-ChainedAccessors/BUILD/MooseX-ChainedAccessors-0.01/blib/lib/MooseX/ChainedAccessors/Accessor.pm
line 14.
at
/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Class/MOP/Attribute.pm
line 344
Class::MOP::Attribute::__ANON__('Can\'t locate object method
"_inline_access" via package "Moo...') called at
/usr/lib/perl5/vendor_perl/5.10.1/Try/Tiny.pm line 98
Try::Tiny::try('CODE(0x14b99a0)',
'Try::Tiny::Catch=REF(0x12ccd00)') called at
/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Class/MOP/Attribute.pm
line 345
Class::MOP::Attribute::_process_accessors('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x14e0568)',
'accessor', 'chained_attr', undef) called at
/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Moose/Meta/Attribute.pm
line 573
Moose::Meta::Attribute::_process_accessors('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x14e0568)',
'accessor', 'chained_attr', undef) called at
/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Class/MOP/Attribute.pm
line 356
Class::MOP::Attribute::install_accessors('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x14e0568)')
called at
/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Moose/Meta/Attribute.pm
line 532
Moose::Meta::Attribute::install_accessors('Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x14e0568)')
called at
/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Class/MOP/Class.pm
line 767
Class::MOP::Class::__ANON__() called at
/usr/lib/perl5/vendor_perl/5.10.1/Try/Tiny.pm line 76
eval {...} called at
/usr/lib/perl5/vendor_perl/5.10.1/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0x14d5748)',
'Try::Tiny::Catch=REF(0x14d0930)') called at
/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Class/MOP/Class.pm
line 772
Class::MOP::Class::_post_add_attribute('Moose::Meta::Class=HASH(0x1383550)',
'Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x14e0568)') called at
/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Class/MOP/Mixin/HasAttributes.pm
line 45
Class::MOP::Mixin::HasAttributes::add_attribute('Moose::Meta::Class=HASH(0x1383550)',
'Class::MOP::Class::__ANON__::SERIAL::1=HASH(0x14e0568)') called at
/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Moose/Meta/Class.pm
line 298
Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x1383550)',
'chained_attr', 'isa', 'Bool', 'default', 'CODE(0x1496c18)',
'definition_context', 'HASH(0x14bdad0)', 'lazy', ...) called at
/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Moose.pm line 70
Moose::has('Moose::Meta::Class=HASH(0x1383550)', 'chained_attr',
'traits', 'ARRAY(0x14bdab8)', 'is', 'rw', 'isa', 'Bool', 'lazy', ...)
called at
/usr/lib/perl5/vendor_perl/5.10.1/x86_64-linux-thread-multi/Moose/Exporter.pm
line 322
Moose::has('chained_attr', 'traits', 'ARRAY(0x14bdab8)', 'is',
'rw', 'isa', 'Bool', 'lazy', 1, ...) called at t/chained.t line 27
# Looks like you planned 8 tests but ran 3.
# Looks like your test exited with 2 just after 3.
t/chained.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 5/8 subtests
Test Summary Report
-------------------
t/chained.t (Wstat: 512 Tests: 3 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 8 tests but ran 3.
Files=1, Tests=3, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.29 cusr
0.04 csys = 0.36 CPU)
Result: FAIL
Failed 1/1 test programs. 0/3 subtests failed.
make: *** [test_dynamic] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.Kedb91 (%check)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.Kedb91 (%check)
Error performing action build: Can't build package: Build error
at /usr/lib/perl5/vendor_perl/5.10.1/MDV/Repsys.pm line 387
at /usr/bin/mdvsys line 596
Please fix it because it breaks HTML-FormFu.
Regards,
-- Shlomi Fish