Skip Menu |
 

This queue is for tickets about the CPAN-Inject CPAN distribution.

Report information
The Basics
Id: 49874
Status: open
Priority: 0/
Queue: CPAN-Inject

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

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



Subject: Fails t/02_main.t line 80 'got expected error' on 5.10.1/snow leopard
Download (untitled) / with headers
text/plain 3.8k
[MSG] [Mon Sep 21 13:35:31 2009] cp lib/CPAN/Inject.pm blib/lib/CPAN/Inject.pm cp script/cpaninject blib/script/cpaninject/opt/perl/5.10.1/bin/perl "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/ script/cpaninjectManifying blib/man1/cpaninject.1 Manifying blib/man3/CPAN::Inject.3 [ERROR] [Mon Sep 21 13:35:32 2009] MAKE TEST failed: No such file or directory PERL_DL_NONLAZY=1 /opt/perl/5.10.1/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/01_compile.t .. ok # Failed test 'Got expected error' # at t/02_main.t line 80. # Looks like you failed 1 test of 24. t/02_main.t ..... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/24 subtests (less 2 skipped subtests: 21 okay) t/98_pod.t ...... skipped: Author tests not required for installation t/99_pmv.t ...... skipped: Author tests not required for installation Test Summary Report ------------------- t/02_main.t (Wstat: 256 Tests: 24 Failed: 1) Failed test: 13 Non-zero exit status: 1 Files=4, Tests=27, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.58 cusr 0.10 csys = 0.72 CPU) Result: FAIL Failed 1/4 test programs. 1/27 subtests failed. make: *** [test_dynamic] Error 255 [HISTORY] [Mon Sep 21 13:36:34 2009] Proceed anyway? [y/N]: n [ERROR] [Mon Sep 21 13:36:34 2009] Unable to create a new distribution object for 'CPAN::Inject' -- cannot continue -V: Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Platform: osname=darwin, osvers=10.0.0, archname=darwin-thread-multi-2level uname='darwin baozi.discord 10.0.0 darwin kernel version 10.0.0: fri jul 31 22:47:34 pdt 2009; root:xnu-1456.1.25~1release_i386 i386 ' config_args='-de -Dprefix=/opt/perl/5.10.1 -Dusethreads -DDEBUGGING' hint=recommended, useposix=true, d_sigaction=define 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 -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include', optimize='-O3 -g', cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include' ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', 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 =' -fstack-protector -L/usr/local/lib -L/opt/local/lib' libpth=/usr/local/lib /opt/local/lib /usr/lib libs=-ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=/usr/lib/libc.dylib, 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 -L/opt/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_TRACK_MEMPOOL USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Locally applied patches: RC1 Built under darwin Compiled at Sep 21 2009 10:57:59 @INC: /opt/perl/5.10.1/lib/5.10.1/darwin-thread-multi-2level /opt/perl/5.10.1/lib/5.10.1 /opt/perl/5.10.1/lib/site_perl/5.10.1/darwin-thread-multi-2level /opt/perl/5.10.1/lib/site_perl/5.10.1 .
Problem also present in

 OpenBSD i386  + Perl 5.12.2 ( perlbrewed )
 OpenBSD i386  + Perl 5.13.4 ( perlbrewed )

  I must add, I'm using cpanm to install it, which might have an effect on this error ( it seems to be matching the error for a *long* exact string , which is HIDDEOUSLY bad as it is ).
I've made some discoveries on this bug. It appears to manifest itself in 2 forms.

Form 1: The test simply results in failure
Form 2: The test simply locks up.

Form 1 is a little confusing, but Form 2 is helpful once you drop into it with cpanm --look CPAN::Inject
In form 2, its freezing trying to initialise cpan, and as I've never actually used CPAN, and CPAN::Inject is merely a dependency, CPAN is thus unconfigured.

In my case, simply running CPAN,  letting it do its setup, and doing 'o conf init' at the end, suddenly results in this test passing!

James, you may wish to try this solution and let me know how it works =).

Ideally we don't need to apply this solution and CPAN::Inject should install regardless, but a workaround is a partial win in my book.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.