Tony Cook <[EMAIL PROTECTED]> writes: > Hi, > > I thought the presence of: > > configure_requires: > Imager: 0.54 > build_requires: > Imager: 0.54 > Test::More: 0.47 > > Was meant to prevent this sort of failure? >
Correct, but CPAN.pm needs either YAML.pm or YAML::Syck to be able to parse the META.yml. As you see from the report, neither is installed on David's machine. This is a known problem. CPAN.pm for instance cannot require YAML or YAML::Syck as a prerequisite, because it is meant to be compatible for very old perls (5.004). But there are no YAML modules which support old perls. Also, because CPAN.pm is a core module, this would mean to add either YAML or YAML::Syck to the perl core. There's YAML::Tiny however, which probably works with older perls and is meant to be easily embedded in other modules, but it does not support the full set of YAML. The META.yml specification does not forbid to use YAML constructs which are not parsable by YAML::Tiny. Maybe a perliminary solution would be some sort of heuristics for CPAN::Reporter or CPAN.pm: if the result is "PL FAIL" and no YAML module is installed (i.e. $CPAN::META->has_inst($yaml_module) returns false) and there's a META.yml available in the distribution and it contains the string "configure_requires" (not parsing it, just doing a grep), then DISCARD the report. Regards, Slaven > Tony > > From: [EMAIL PROTECTED] > Subject: FAIL Imager-Screenshot-0.006 i686-linux 2.4.27-3-686 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Date: Fri, 11 Apr 2008 17:11:32 +0100 > > This distribution has been tested as part of the cpan-testers > effort to test as many new uploads to CPAN as possible. See > http://testers.cpan.org/ > > Please cc any replies to [EMAIL PROTECTED] to keep other > test volunteers informed and to prevent any duplicate effort. > > -- > Dear Tony Cook, > > This is a computer-generated report for Imager-Screenshot-0.006 > on perl 5.6.2, created by CPAN-Reporter-1.13. > > Thank you for uploading your work to CPAN. However, there was a problem > testing your distribution. > > If you think this report is invalid, please consult the CPAN Testers Wiki > for suggestions on how to avoid getting FAIL reports for missing library > or binary dependencies, unsupported operating systems, and so on: > > http://cpantest.grango.org/wiki/CPANAuthorNotes > > Sections of this report: > > * Tester comments > * Program output > * Prerequisites > * Environment and other context > > ------------------------------ > TESTER COMMENTS > ------------------------------ > > Additional comments from tester: > > none provided > > ------------------------------ > PROGRAM OUTPUT > ------------------------------ > > Output from '/home/david/cpantesting/perl-5.6.2/bin/perl Makefile.PL': > > Can't locate Imager.pm in @INC (@INC contains: > /home/david/cpantesting/perl-5.6.2/lib/5.6.2/i686-linux > /home/david/cpantesting/perl-5.6.2/lib/5.6.2 > /home/david/cpantesting/perl-5.6.2/lib/site_perl/5.6.2/i686-linux > /home/david/cpantesting/perl-5.6.2/lib/site_perl/5.6.2 > /home/david/cpantesting/perl-5.6.2/lib/site_perl .) at Makefile.PL line 4. > BEGIN failed--compilation aborted at Makefile.PL line 4. > > ------------------------------ > PREREQUISITES > ------------------------------ > > Prerequisite modules loaded: > > No requirements found > > ------------------------------ > ENVIRONMENT AND OTHER CONTEXT > ------------------------------ > > Environment variables: > > LANG = en_GB > LANGUAGE = en_GB:en_US:en_GB:en > PATH = /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games > PERL5LIB = > PERL5_CPANPLUS_IS_RUNNING = 1525 > PERL5_CPAN_IS_EXECUTING = > /home/david/cpantesting/perl-5.6.2/.cpan/build/Imager-Screenshot-0.006-vhaXdK/Makefile.PL > PERL5_CPAN_IS_RUNNING = 1525 > SHELL = /bin/bash > TERM = screen > > Perl special variables (and OS-specific diagnostics, for MSWin32): > > $^X = /home/david/cpantesting/perl-5.6.2/bin/perl > $UID/$EUID = 1000 / 1000 > $GID = 1000 46 44 29 25 24 20 1000 > $EGID = 1000 46 44 29 25 24 20 1000 > > Perl module toolchain versions installed: > > Module Have > ------------------- ------ > CPAN 1.9205 > Cwd 3.24 > ExtUtils::CBuilder n/a > ExtUtils::Command 1.13 > ExtUtils::Install 1.41 > ExtUtils::MakeMaker 6.36 > ExtUtils::Manifest 1.51 > ExtUtils::ParseXS n/a > File::Spec 3.24 > Module::Build 0.2808 > Module::Signature n/a > Test::Harness 2.64 > Test::More 0.70 > YAML n/a > YAML::Syck n/a > version 0.7203 > > > -- > > Summary of my perl5 (revision 5.0 version 6 subversion 2) configuration: > Platform: > osname=linux, osvers=2.4.27-3-686, archname=i686-linux > uname='linux pigsty 2.4.27-3-686 #1 tue dec 5 21:03:54 utc 2006 i686 > gnulinux ' > config_args='-Dprefix=/home/david/cpantesting/perl-5.6.2 -de' > hint=recommended, useposix=true, d_sigaction=define > usethreads=undef use5005threads=undef useithreads=undef > usemultiplicity=undef > useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=undef use64bitall=undef uselongdouble=undef > Compiler: > cc='cc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64', > optimize='-O3', > cppflags='-fno-strict-aliasing' > ccversion='', gccversion='3.3.5 (Debian 1:3.3.5-13)', gccosandvers='' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=4, usemymalloc=n, prototype=define > Linker and Libraries: > ld='cc', ldflags =' -L/usr/local/lib' > libpth=/usr/local/lib /lib /usr/lib > libs=-lnsl -lgdbm -ldl -lm -lc -lcrypt -lutil > perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil > libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' > cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' > > ---------- > -- Slaven Rezic - slaven <at> rezic <dot> de BBBike - route planner for cyclists in Berlin WWW version: http://www.bbbike.de Perl/Tk version for Unix and Windows: http://bbbike.sourceforge.net