develooper Front page | perl.perl5.porters | Postings from April 2010

5.12.0-RC4: CPANPLUS test failures with a nonexistent HOME

From:
Niko Tyni
Date:
April 9, 2010 04:23
Subject:
5.12.0-RC4: CPANPLUS test failures with a nonexistent HOME
Message ID:
20100408215306.GA345@madeleine.local.invalid
Hi,

summary: the CPANPLUS test suite is failing on RC4 due to [rt.cpan.org #52988]
(fixed in CPANPLUS-0.9001) when $ENV{HOME} doesn't exist.

Not sure if this is a stopper. I can certainly work around it just
for Debian.

To reproduce:

$ HOME=/nonexistent make all test


Longer story:

As seen at
 https://buildd.debian.org/pkg.cgi?pkg=perl&maint=&dist=experimental
 http://bugs.debian.org/577011

all the Debian autobuilders failed to build 5.12.0-RC3 packages with
the same errors:

Undefined subroutine &CPANPLUS::Internals::Utils::cwd called at /build/buildd-perl_5.12.0~rc3-1-alpha-RuHL
sw/perl-5.12.0~rc3/cpan/CPANPLUS-Dist-Build/../../lib/CPANPLUS/Internals/Utils.pm line 393.
Compilation failed in require at /build/buildd-perl_5.12.0~rc3-1-alpha-RuHLsw/perl-5.12.0~rc3/cpan/CPANPLU
S-Dist-Build/../../lib/CPANPLUS/Configure.pm line 7.
BEGIN failed--compilation aborted at /build/buildd-perl_5.12.0~rc3-1-alpha-RuHLsw/perl-5.12.0~rc3/cpan/CPA
NPLUS-Dist-Build/../../lib/CPANPLUS/Configure.pm line 7.
Compilation failed in require at /build/buildd-perl_5.12.0~rc3-1-alpha-RuHLsw/perl-5.12.0~rc3/cpan/CPANPLU
S-Dist-Build/t/inc/conf.pl line 79.
BEGIN failed--compilation aborted at /build/buildd-perl_5.12.0~rc3-1-alpha-RuHLsw/perl-5.12.0~rc3/cpan/CPA
NPLUS-Dist-Build/t/inc/conf.pl line 79.
Compilation failed in require at t/01_CPANPLUS-Dist-Build-Constants.t line 4.
BEGIN failed--compilation aborted at t/01_CPANPLUS-Dist-Build-Constants.t line 5.
cpan/CPANPLUS-Dist-Build/t/01_CPANPLUS-Dist-Build-Constants....FAILED--no leader found

[...]

Failed 20 tests out of 1730, 98.84% okay.
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
###   ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.
t/porting/test_bootstrap.......................................ok
    ../cpan/CPANPLUS-Dist-Build/t/01_CPANPLUS-Dist-Build-Constants.t
    ../cpan/CPANPLUS-Dist-Build/t/02_CPANPLUS-Dist-Build.t
    ../cpan/CPANPLUS/t/00_CPANPLUS-Internals-Utils.t
    ../cpan/CPANPLUS/t/01_CPANPLUS-Configure.t
    ../cpan/CPANPLUS/t/02_CPANPLUS-Internals.t
    ../cpan/CPANPLUS/t/03_CPANPLUS-Internals-Source.t
    ../cpan/CPANPLUS/t/04_CPANPLUS-Module.t
    ../cpan/CPANPLUS/t/05_CPANPLUS-Internals-Fetch.t
    ../cpan/CPANPLUS/t/06_CPANPLUS-Internals-Constants.t
    ../cpan/CPANPLUS/t/07_CPANPLUS-Internals-Extract.t
    ../cpan/CPANPLUS/t/08_CPANPLUS-Backend.t
    ../cpan/CPANPLUS/t/09_CPANPLUS-Internals-Search.t
    ../cpan/CPANPLUS/t/10_CPANPLUS-Error.t
    ../cpan/CPANPLUS/t/15_CPANPLUS-Shell.t
    ../cpan/CPANPLUS/t/19_CPANPLUS-Dist.t
    ../cpan/CPANPLUS/t/20_CPANPLUS-Dist-MM.t
    ../cpan/CPANPLUS/t/21_CPANPLUS-Dist-No-Build.t
    ../cpan/CPANPLUS/t/25_CPANPLUS.t
    ../cpan/CPANPLUS/t/30_CPANPLUS-Internals-Selfupdate.t
    ../cpan/CPANPLUS/t/40_CPANPLUS-Internals-Report.t

This is because HOME is set to a nonexistent directory on those systems
(in order to find bugs in packages that rely on $HOME contents).
The problem is fixed in 0.9001:

 http://rt.cpan.org/Public/Bug/Display.html?id=52988
 http://search.cpan.org/diff?from=CPANPLUS-0.90&to=CPANPLUS-0.9001&w=1#lib/CPANPLUS/Internals/Utils.pm

I can reproduce this with a pristine RC4 from the git repository and
$ HOME=/nonexistent make all test
-- 
Niko Tyni   ntyni@debian.org



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About