Skip Menu |

This queue is for tickets about the MooseX-Types CPAN distribution.

Report information
The Basics
Id: 77100
Status: resolved
Priority: 0/
Queue: MooseX-Types

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

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: perl-5.8.5 failed tests
My perl -V: Summary of my perl5 (revision 5 version 8 subversion 5) configuration: Platform: osname=darwin, osvers=11.3.0, archname=darwin-thread-multi-2level uname='darwin macbook-air-de-geistteufel.local 11.3.0 darwin kernel version 11.3.0: thu jan 12 18:47:41 pst 2012; root:xnu-1699.24.23~1release_x86_64 x86_64 ' config_args='-de -Dprefix=/Users/geistteufel/perl5/perlbrew/perls/perl-5.8.5 - Dusethreads' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe - I/usr/local/include', optimize='-O3', cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-lgdbm -ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under darwin Compiled at May 8 2012 10:26:42 %ENV: PERLBREW_BASHRC_VERSION="0.42" PERLBREW_HOME="/Users/geistteufel/.perlbrew" PERLBREW_MANPATH="/Users/geistteufel/perl5/perlbrew/perls/perl-5.8.5/man" PERLBREW_PATH="/Users/geistteufel/perl5/perlbrew/bin:/Users/geistteufel/perl5/perlbrew/pe rls/perl-5.8.5/bin" PERLBREW_PERL="perl-5.8.5" PERLBREW_ROOT="/Users/geistteufel/perl5/perlbrew" PERLBREW_VERSION="0.42" PERL_CPANM_OPT="--mirror file:///Users/geistteufel/perl5/minicpan --mirror http://cpan.celogeek.com/ --mirror http://search.cpan.org/CPAN -v" @INC: /Users/geistteufel/perl5/perlbrew/perls/perl-5.8.5/lib/5.8.5/darwin-thread-multi-2level /Users/geistteufel/perl5/perlbrew/perls/perl-5.8.5/lib/5.8.5 /Users/geistteufel/perl5/perlbrew/perls/perl-5.8.5/lib/site_perl/5.8.5/darwin-thread- multi-2level /Users/geistteufel/perl5/perlbrew/perls/perl-5.8.5/lib/site_perl/5.8.5 /Users/geistteufel/perl5/perlbrew/perls/perl-5.8.5/lib/site_perl The log error : cpanm (App::cpanminus) 1.5011 on perl 5.008005 built for darwin-thread-multi-2level Work directory is /Users/geistteufel/.cpanm/work/1336594954.44368 You have make /usr/bin/make You have LWP 6.04 You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3 You have /usr/bin/unzip Searching MooseX::Types on cpanmetadb ... --> Working on MooseX::Types Fetching file:///Users/geistteufel/perl5/minicpan/authors/id/D/DR/DROLSKY/MooseX-Types- 0.31.tar.gz ... OK Unpacking MooseX-Types-0.31.tar.gz x MooseX-Types-0.31/ x MooseX-Types-0.31/MANIFEST x MooseX-Types-0.31/t/ x MooseX-Types-0.31/t/release-pod-spell.t x MooseX-Types-0.31/t/lib/ x MooseX-Types-0.31/t/lib/IntrospectTypeExports.pm x MooseX-Types-0.31/t/lib/TestNamespaceSep.pm x MooseX-Types-0.31/t/lib/TestWrapper.pm x MooseX-Types-0.31/t/lib/Combined.pm x MooseX-Types-0.31/t/lib/TestLibrary2.pm x MooseX-Types-0.31/t/lib/TestLibrary.pm x MooseX-Types-0.31/t/lib/DecoratorLibrary.pm x MooseX-Types-0.31/t/lib/SubExporterCompatibility.pm x MooseX-Types-0.31/t/lib/Empty.pm x MooseX-Types-0.31/t/20_union_with_string_type.t x MooseX-Types-0.31/t/14_compatibility-sub-exporter.t x MooseX-Types-0.31/t/13_typedecorator.t x MooseX-Types-0.31/t/10_moose-types.t x MooseX-Types-0.31/t/21_coerce_parameterized_types.t x MooseX-Types-0.31/t/18_combined_libs.t x MooseX-Types-0.31/t/17_syntax_errors.t x MooseX-Types-0.31/t/11_library-definition.t x MooseX-Types-0.31/t/release-pod-syntax.t x MooseX-Types-0.31/t/release-pod-coverage.t x MooseX-Types-0.31/t/12_wrapper-definition.t x MooseX-Types-0.31/t/19_typelib_with_role.t x MooseX-Types-0.31/t/15_recursion.t x MooseX-Types-0.31/t/regressions/ x MooseX-Types-0.31/t/regressions/01-is_subtype_of.t x MooseX-Types-0.31/t/16_introspection.t x MooseX-Types-0.31/lib/ x MooseX-Types-0.31/lib/MooseX/ x MooseX-Types-0.31/lib/MooseX/Types/ x MooseX-Types-0.31/lib/MooseX/Types/Combine.pm x MooseX-Types-0.31/lib/MooseX/Types/Wrapper.pm x MooseX-Types-0.31/lib/MooseX/Types/Util.pm x MooseX-Types-0.31/lib/MooseX/Types/Base.pm x MooseX-Types-0.31/lib/MooseX/Types/Moose.pm x MooseX-Types-0.31/lib/MooseX/Types/TypeDecorator.pm x MooseX-Types-0.31/lib/MooseX/Types/CheckedUtilExports.pm x MooseX-Types-0.31/lib/MooseX/Types/UndefinedType.pm x MooseX-Types-0.31/lib/MooseX/Types.pm x MooseX-Types-0.31/README x MooseX-Types-0.31/LICENSE x MooseX-Types-0.31/META.yml x MooseX-Types-0.31/Makefile.PL x MooseX-Types-0.31/Changes x MooseX-Types-0.31/META.json x MooseX-Types-0.31/INSTALL x MooseX-Types-0.31/dist.ini Entering MooseX-Types-0.31 Checking configure dependencies from META.yml Checking if you have ExtUtils::MakeMaker 6.30 ... Yes (6.62) Configuring MooseX-Types-0.31 ... Running Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for MooseX::Types Writing MYMETA.yml and MYMETA.json OK Checking dependencies from MYMETA.json ... Checking if you have Test::Requires 0 ... Yes (0.06) Checking if you have Test::More 0.88 ... Yes (0.98) Checking if you have Test::Moose 0 ... Yes (2.0602) Checking if you have FindBin 0 ... Yes (1.44) Checking if you have Test::Fatal 0 ... Yes (0.010) Checking if you have namespace::clean 0.19 ... Yes (0.23) Checking if you have Scalar::Util 1.19 ... Yes (1.25) Checking if you have Sub::Install 0.924 ... Yes (0.926) Checking if you have Carp::Clan 6.00 ... Yes (6.04) Checking if you have Sub::Name 0 ... Yes (0.05) Checking if you have Moose 1.06 ... Yes (2.0602) Checking if you have Carp 0 ... Yes (1.25) Building and testing MooseX-Types-0.31 ... cp lib/MooseX/Types/Base.pm blib/lib/MooseX/Types/Base.pm cp lib/MooseX/Types/Wrapper.pm blib/lib/MooseX/Types/Wrapper.pm cp lib/MooseX/Types/CheckedUtilExports.pm blib/lib/MooseX/Types/CheckedUtilExports.pm cp lib/MooseX/Types/Util.pm blib/lib/MooseX/Types/Util.pm cp lib/MooseX/Types/UndefinedType.pm blib/lib/MooseX/Types/UndefinedType.pm cp lib/MooseX/Types/Combine.pm blib/lib/MooseX/Types/Combine.pm cp lib/MooseX/Types/TypeDecorator.pm blib/lib/MooseX/Types/TypeDecorator.pm cp lib/MooseX/Types/Moose.pm blib/lib/MooseX/Types/Moose.pm cp lib/MooseX/Types.pm blib/lib/MooseX/Types.pm Manifying blib/man3/MooseX::Types::Base.3 Manifying blib/man3/MooseX::Types::Wrapper.3 Manifying blib/man3/MooseX::Types::CheckedUtilExports.3 Manifying blib/man3/MooseX::Types::Util.3 Manifying blib/man3/MooseX::Types::UndefinedType.3 Manifying blib/man3/MooseX::Types::Combine.3 Manifying blib/man3/MooseX::Types::TypeDecorator.3 Manifying blib/man3/MooseX::Types::Moose.3 Manifying blib/man3/MooseX::Types.3 PERL_DL_NONLAZY=1 /Users/geistteufel/perl5/perlbrew/perls/perl-5.8.5/bin/perl "- MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/regressions/*.t t/10_moose-types.t ................. ok t/11_library-definition.t .......... ok t/12_wrapper-definition.t .......... ok t/13_typedecorator.t ............... DecoratorLibrary::BiggerInt is not a subtype of Int at /Users/geistteufel/perl5/perlbrew/perls/perl-5.8.5/lib/site_perl/5.8.5/darwin-thread-multi- 2level/Moose/Meta/TypeConstraint/Parameterizable.pm line 83. Moose::Meta::TypeConstraint::Parameterizable::parameterize('Moose::Meta::TypeConstrain t::Parameterizable=HASH(0x7f8252af2...', 'MooseX::Types::TypeDecorator=HASH(0x7f8252acfd60)') called at /Users/geistteufel/.cpanm/work/1336594954.44368/MooseX-Types- 0.31/blib/lib/MooseX/Types.pm line 111 MooseX::Types::create_arged_type_constraint('MooseX::Types', 'DecoratorLibrary::MyArrayRefInt01', 'MooseX::Types::TypeDecorator=HASH(0x7f8252acfd60)') called at /Users/geistteufel/.cpanm/work/1336594954.44368/MooseX-Types- 0.31/blib/lib/MooseX/Types.pm line 79 __TYPE__::DecoratorLibrary::MyArrayRefInt01('ARRAY(0x7f8252ac3fc0)') called at /Users/geistteufel/.cpanm/work/1336594954.44368/MooseX-Types- 0.31/t/lib/DecoratorLibrary.pm line 40 require DecoratorLibrary.pm called at t/13_typedecorator.t line 17 Test::MooseX::TypeLibrary::TypeDecorator::BEGIN() called at /Users/geistteufel/.cpanm/work/1336594954.44368/MooseX-Types- 0.31/t/lib/DecoratorLibrary.pm line 0 eval {...} called at /Users/geistteufel/.cpanm/work/1336594954.44368/MooseX-Types- 0.31/t/lib/DecoratorLibrary.pm line 0 Compilation failed in require at t/13_typedecorator.t line 17. BEGIN failed--compilation aborted at t/13_typedecorator.t line 21. t/13_typedecorator.t ............... Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run t/14_compatibility-sub-exporter.t .. ok t/15_recursion.t ................... ok t/16_introspection.t ............... ok t/17_syntax_errors.t ............... ok t/18_combined_libs.t ............... ok t/19_typelib_with_role.t ........... ok t/20_union_with_string_type.t ...... ok t/21_coerce_parameterized_types.t .. ok t/regressions/01-is_subtype_of.t ... 1/? # Failed test at t/regressions/01-is_subtype_of.t line 12. # Failed test 'Item is subtype of Any' # at t/regressions/01-is_subtype_of.t line 20. # Looks like you failed 2 tests of 5. t/regressions/01-is_subtype_of.t ... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/5 subtests t/release-pod-coverage.t ........... skipped: these tests are for release candidate testing t/release-pod-spell.t .............. skipped: these tests are for release candidate testing t/release-pod-syntax.t ............. skipped: these tests are for release candidate testing Test Summary Report ------------------- t/13_typedecorator.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/regressions/01-is_subtype_of.t (Wstat: 512 Tests: 5 Failed: 2) Failed tests: 2, 5 Non-zero exit status: 2 Files=16, Tests=156, 5 wallclock secs ( 0.11 usr 0.05 sys + 4.71 cusr 0.25 csys = 5.12 CPU) Result: FAIL Failed 2/16 test programs. 2/156 subtests failed. make: *** [test_dynamic] Error 255 FAIL ! Installing MooseX::Types failed. See /Users/geistteufel/.cpanm/build.log for details.
I was able to install MooseX::Types and all its dependencies successfully into a local::lib under perl 5.8.5 on FC4 (CentOS 5.x). This was on a box with very little updated in the last few years, so a huge amount of stuff were installed from latest versions. These test failures look familiar: Show quoted text
> t/13_typedecorator.t ............... DecoratorLibrary::BiggerInt is > not a subtype of Int at > /Users/geistteufel/perl5/perlbrew/perls/perl- > 5.8.5/lib/site_perl/5.8.5/darwin-thread-multi- > 2level/Moose/Meta/TypeConstraint/Parameterizable.pm line 83.
... Show quoted text
> # Failed test at t/regressions/01-is_subtype_of.t line 12. > > # Failed test 'Item is subtype of Any' > # at t/regressions/01-is_subtype_of.t line 20.
Please provide the version of Moose that you are using -- when List::MoreUtils::none and friends broke backcompat on its APIs, the Moose types library had to change how it was using these functions. You may be running a version of Moose too old to get these fixes, but be running with the newer List::MoreUtils.
On 2012-11-17 12:48:13, ETHER wrote: Show quoted text
> These test failures look familiar: >
> > t/13_typedecorator.t ............... DecoratorLibrary::BiggerInt is > > not a subtype of Int at > > /Users/geistteufel/perl5/perlbrew/perls/perl- > > 5.8.5/lib/site_perl/5.8.5/darwin-thread-multi- > > 2level/Moose/Meta/TypeConstraint/Parameterizable.pm line 83.
> ...
> > # Failed test at t/regressions/01-is_subtype_of.t line 12. > > > > # Failed test 'Item is subtype of Any' > > # at t/regressions/01-is_subtype_of.t line 20.
>
This is caused by == not respecting numeric overloading on 64bit perls before 5.8.6: https://metacpan.org/module/perl586delta#Selected-Bug-Fixes This breaks MooseX::Types::TypeDecorator's masquerading as the underlying Moose::Meta::TypeConstraint by delegating methods and overloads to it, thus breaking MyType->equals(MyType).
I'm marking this as stalled since I don't see anyone stepping up to fix this.
I've pushed a branch 'rt77100' that fixes this issue.
Thanks! shipped in version 0.36.