cpan-testers / CPAN-Reporter-Smoker

(Perl) Turnkey CPAN Testers smoking
http://search.cpan.org/dist/CPAN-Reporter-Smoker
5 stars 4 forks source link

Tests fail without '.' in @INC #11

Closed dcollinsn closed 7 years ago

dcollinsn commented 7 years ago

A recent security patch to Perl itself removed '.', the current working directory, from \@INC, the default search path for 'use', 'do', and 'require'. This fix for CVE-2016-1238 will be part of Perl 5.26.0, due to be released this April, 2017. CPAN clients will temporarily provide backwards compatibility during the module build/test process by setting the environment variable PERL_USE_UNSAFE_INC=1 during build, test, and install. HOWEVER:

1) This environment variable is a temporary fix only for compatibility, due to be removed for Perl 5.30.0. 2) This may mask errors in your module itself, by testing your module under different conditions than those that it will actually be run under.

To read more about this, you may find the following links helpful:

During a smoke-test of all of cpan, your distribution was found to be unable to configure, build, test, or install without adding '.' to @INC. This means that your distribution will stop building properly for all users when the CPAN clients remove this temporary compatibility fix, and that it may already have problems when used, problems which are being masked by this temporary compatibility fix.

A full error log follows:


Output from '/usr/bin/make test':

PERL_DL_NONLAZY=1 "/home/cpan2/install/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
Can't locate t/DotDirs.pm in @INC (you may need to install the t::DotDirs module) (@INC contains: /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/site_perl/5.26.0 /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/5.26.0) at t/args.t line 8.
BEGIN failed--compilation aborted at t/args.t line 8.
t/args.t ................ 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
do "t/00-report-prereqs.dd" failed, '.' is no longer in @INC; did you mean do "./t/00-report-prereqs.dd"? at t/00-report-prereqs.t line 71.
# 
# Versions for all modules listed in MYMETA.json (including optional ones):
# 
# === Configure Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker 6.17 7.24
# 
# === Build Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 7.24
# 
# === Test Requires ===
# 
#     Module              Want     Have
#     ------------------- ---- --------
#     CPAN::Checksums      any     2.12
#     Cwd                 3.27     3.67
#     ExtUtils::MakeMaker 6.46     7.24
#     File::Find           any     1.34
#     File::Path           any  2.12_01
#     File::Spec          3.27     3.67
#     IO::CaptureOutput   1.06   1.1104
#     IO::File             any     1.16
#     Test::More          0.62 1.302073
#     vars                 any     1.03
# 
# === Test Recommends ===
# 
#     Module         Want     Have
#     ---------- -------- --------
#     CPAN::Meta 2.120900 2.150010
# 
# === Runtime Requires ===
# 
#     Module                    Want    Have
#     ----------------------- ------ -------
#     CPAN                      1.93    2.17
#     CPAN::HandleConfig         any  5.5008
#     CPAN::Reporter::History 1.1702  1.2018
#     CPAN::Tarzip               any  5.5012
#     Carp                       any    1.42
#     Compress::Zlib             1.2   2.074
#     Exporter                   any    5.72
#     ExtUtils::MakeMaker       6.46    7.24
#     Fcntl                      any    1.13
#     File::Basename             any    2.85
#     File::Spec                3.27    3.67
#     File::Temp                0.20  0.2304
#     List::Util                1.03 1.46_02
#     Module::Build             0.30  0.4222
#     Probe::Perl               0.01    0.03
#     Term::Title               0.01    0.08
#     Test::Reporter            1.58    1.62
#     strict                     any    1.11
#     warnings                   any    1.37
# 
t/00-report-prereqs.t ... ok
Can't locate t/DotDirs.pm in @INC (you may need to install the t::DotDirs module) (@INC contains: /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/site_perl/5.26.0 /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/5.26.0) at t/smoke-all.t line 9.
BEGIN failed--compilation aborted at t/smoke-all.t line 9.
t/smoke-all.t ........... 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/00load.t .............. ok
Can't locate t/DotDirs.pm in @INC (you may need to install the t::DotDirs module) (@INC contains: /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/site_perl/5.26.0 /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/5.26.0) at t/smoke-disabled.t line 9.
BEGIN failed--compilation aborted at t/smoke-disabled.t line 9.
t/smoke-disabled.t ...... 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/parse_module_index.t .. ok
Can't locate t/DotDirs.pm in @INC (you may need to install the t::DotDirs module) (@INC contains: /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/site_perl/5.26.0 /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/5.26.0) at t/smoke-list-array.t line 9.
BEGIN failed--compilation aborted at t/smoke-list-array.t line 9.
t/smoke-list-array.t .... 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
Can't locate t/DotDirs.pm in @INC (you may need to install the t::DotDirs module) (@INC contains: /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/site_perl/5.26.0 /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/5.26.0) at t/smoke-list-file.t line 9.
BEGIN failed--compilation aborted at t/smoke-list-file.t line 9.
t/smoke-list-file.t ..... 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
Can't locate t/DotDirs.pm in @INC (you may need to install the t::DotDirs module) (@INC contains: /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/site_perl/5.26.0 /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/5.26.0) at t/smoke-restart.t line 9.
BEGIN failed--compilation aborted at t/smoke-restart.t line 9.
t/smoke-restart.t ....... 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
Can't locate t/DotDirs.pm in @INC (you may need to install the t::DotDirs module) (@INC contains: /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/lib /home/cpan2/.cpan/build/CPAN-Reporter-Smoker-0.28-0/blib/arch /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/site_perl/5.26.0 /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi /home/cpan2/install/lib/perl5/5.26.0) at t/smoke-reverse.t line 9.
BEGIN failed--compilation aborted at t/smoke-reverse.t line 9.
t/smoke-reverse.t ....... 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 

Test Summary Report
-------------------
t/args.t              (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/smoke-all.t         (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/smoke-disabled.t    (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/smoke-list-array.t  (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/smoke-list-file.t   (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/smoke-restart.t     (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
t/smoke-reverse.t     (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=10, Tests=11,  1 wallclock secs ( 0.04 usr  0.01 sys +  1.38 cusr  0.12 csys =  1.55 CPU)
Result: FAIL
Failed 7/10 test programs. 0/11 subtests failed.
Makefile:905: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 2

------------------------------
PREREQUISITES
------------------------------

Prerequisite modules loaded:

requires:

    Module                  Need     Have    
    ----------------------- -------- --------
    Carp                    0        1.42    
    Compress::Zlib          1.2      2.074   
    CPAN                    1.93     2.17    
    CPAN::HandleConfig      0        5.5008  
    CPAN::Reporter::History 1.1702   1.2018  
    CPAN::Tarzip            0        5.5012  
    Exporter                0        5.72    
    ExtUtils::MakeMaker     6.46     7.24    
    Fcntl                   0        1.13    
    File::Basename          0        2.85    
    File::Spec              3.27     3.67    
    File::Temp              0.20     0.2304  
    List::Util              1.03     1.46_02 
    Module::Build           0.30     0.4222  
    perl                    5.010    5.026000
    Probe::Perl             0.01     0.03    
    strict                  0        1.11    
    Term::Title             0.01     0.08    
    Test::Reporter          1.58     1.62    
    warnings                0        1.37    

build_requires:

    Module                  Need     Have    
    ----------------------- -------- --------
    CPAN::Checksums         0        2.12    
    Cwd                     3.27     3.67    
    ExtUtils::MakeMaker     6.46     7.24    
    File::Find              0        1.34    
    File::Path              0        2.12_01 
    File::Spec              3.27     3.67    
    IO::CaptureOutput       1.06     1.1104  
    IO::File                0        1.16    
    Test::More              0.62     1.302073
    vars                    0        1.03    

configure_requires:

    Module                  Need     Have    
    ----------------------- -------- --------
    ExtUtils::MakeMaker     6.17     7.24    
    perl                    5.006    5.026000

opt_build_requires:

    Module                  Need     Have    
    ----------------------- -------- --------
    CPAN::Meta              2.120900 2.150010

------------------------------
ENVIRONMENT AND OTHER CONTEXT
------------------------------

Environment variables:

    HARNESS_OPTIONS = j3
    LANG = en_US.UTF-8
    NONINTERACTIVE_TESTING = 1
    PATH = /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    PERL5LIB = 
    PERL5OPT = 
    PERL5_CPANPLUS_IS_RUNNING = 19650
    PERL5_CPAN_IS_RUNNING = 19650
    PERL_MM_USE_DEFAULT = 1
    PERL_USE_UNSAFE_INC = 0
    SHELL = /bin/bash
    TERM = putty-256color

Perl special variables (and OS-specific diagnostics, for MSWin32):

    $^X = /home/cpan2/install/bin/perl
    $UID/$EUID = 1003 / 1003
    $GID = 1003 1003
    $EGID = 1003 1003

Perl module toolchain versions installed:

    Module              Have      
    ------------------- ----------
    CPAN                2.17      
    CPAN::Meta          2.150010  
    Cwd                 3.67      
    ExtUtils::CBuilder  0.280225  
    ExtUtils::Command   7.24      
    ExtUtils::Install   2.04      
    ExtUtils::MakeMaker 7.24      
    ExtUtils::Manifest  1.70      
    ExtUtils::ParseXS   3.34      
    File::Spec          3.67      
    JSON                n/a       
    JSON::PP            2.27400_02
    Module::Build       0.4222    
    Module::Signature   n/a       
    Parse::CPAN::Meta   2.150010  
    Test::Harness       3.38      
    Test::More          1.302073  
    YAML                n/a       
    YAML::Syck          1.29      
    version             0.9917    

--

Summary of my perl5 (revision 5 version 26 subversion 0) configuration:
  Commit id: f57d8456e7b8d6b2dad0bb49899cfdc68007b794
  Platform:
    osname=linux
    osvers=3.16.0-4-amd64
    archname=x86_64-linux-thread-multi
    uname='linux digitalis 3.16.0-4-amd64 #1 smp debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 gnulinux '
    config_args='-Dusedevel -DDEBUGGING -Dusethreads -Dprefix=/home/cpan2/install -Uversiononly -des'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-D_REENTRANT -D_GNU_SOURCE -fwrapv -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
    optimize='-O2 -g'
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='4.9.2'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /lib64 /usr/lib64
    libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.19.so
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version='2.19'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -g -L/usr/local/lib -fstack-protector-strong'

Characteristics of this binary (from libperl): 
  Compile-time options:
    DEBUGGING
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_TRACK_MEMPOOL
    PERL_USE_DEVEL
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
  Built under linux
  Compiled at Apr 11 2017 21:42:25
  %ENV:
    PERL5LIB=""
    PERL5OPT=""
    PERL5_CPANPLUS_IS_RUNNING="19650"
    PERL5_CPAN_IS_RUNNING="19650"
    PERL_MM_USE_DEFAULT="1"
    PERL_USE_UNSAFE_INC="0"
  @INC:
    /home/cpan2/install/lib/perl5/site_perl/5.26.0/x86_64-linux-thread-multi
    /home/cpan2/install/lib/perl5/site_perl/5.26.0
    /home/cpan2/install/lib/perl5/5.26.0/x86_64-linux-thread-multi
    /home/cpan2/install/lib/perl5/5.26.0
jkeenan commented 7 years ago

This distribution has a dependency on CPAN::Reporter::History, which is part of the CPAN-Reporter distribution. That distro suffers from the same problem. I have submitted a pull request which may resolve the problem: https://github.com/cpan-testers/CPAN-Reporter/pull/80