Subject: | Installing PathTools on Redhat Openshift Express fails |
The free Redhat Openshift Express PaaS supports Perl, automagically
downloading and installing required perl modules from CPAN.
When I add File::Path::Functions to a script, this results in PathTools
3.33 being installed, which fails in the test step with (my UUID
replaced with xxx):
# Failed test (t/cwd.t at line 213)
#
'/var/lib/libra/xxx/.cpanm/work/1330178753.23137/PathTools-3.33/t/linktest'
# doesn't match
'(?i-xsm:\/var\/lib\/libra\/xxx\/\.cpanm\/work\/1330178753\.23137\/PathTools\-3\.33\/t\/_ptrslt_\/_path_\/_to_\/_a_\/_dir_$)'
# Looks like you failed 1 test of 34.
Steps to reproduce:
1. Create a free Openshift account here
<https://openshift.redhat.com/app/user/new/express>
2. Follow the steps in
<https://openshift.redhat.com/app/express#quickstart>, choose "-t
perl-5.10" in step 3
3. add File::Spec::Functions to deplist.txt, git add, git commit, git push
Output of cpanm attached.
Subject: | build.log |
--> Working on File::Spec::Functions
Fetching http://mirror1.prod.rhcloud.com/mirror/perl/CPAN/authors/id/S/SM/SMUELLER/PathTools-3.33.tar.gz
-> OK
Unpacking PathTools-3.33.tar.gz
Entering PathTools-3.33
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.62)
Configuring PathTools-3.33
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Cwd
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.yml ...
Finding PREREQ from Makefile ...
Checking if you have Scalar::Util 0 ... Yes (1.21)
Checking if you have Test 0 ... Yes (1.25_02)
Checking if you have File::Path 0 ... Yes (2.08)
Checking if you have File::Basename 0 ... Yes (2.77)
Checking if you have Carp 0 ... Yes (1.25)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.62)
Checking if you have Scalar::Util 0 ... Yes (1.21)
Checking if you have Test 0 ... Yes (1.25_02)
Checking if you have File::Path 0 ... Yes (2.08)
Checking if you have File::Basename 0 ... Yes (2.77)
Checking if you have Carp 0 ... Yes (1.25)
Building and testing PathTools-3.33
cp lib/File/Spec/Mac.pm blib/lib/File/Spec/Mac.pm
cp lib/File/Spec/OS2.pm blib/lib/File/Spec/OS2.pm
cp lib/File/Spec/VMS.pm blib/lib/File/Spec/VMS.pm
cp lib/File/Spec/Epoc.pm blib/lib/File/Spec/Epoc.pm
cp lib/File/Spec/Functions.pm blib/lib/File/Spec/Functions.pm
cp lib/File/Spec/Cygwin.pm blib/lib/File/Spec/Cygwin.pm
cp lib/File/Spec.pm blib/lib/File/Spec.pm
cp Cwd.pm blib/lib/Cwd.pm
cp lib/File/Spec/Unix.pm blib/lib/File/Spec/Unix.pm
cp lib/File/Spec/Win32.pm blib/lib/File/Spec/Win32.pm
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap Cwd.xs > Cwd.xsc && mv Cwd.xsc Cwd.c
gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"3.33\" -DXS_VERSION=\"3.33\" -fPIC "-I/usr/lib64/perl5/CORE" Cwd.c
Running Mkbootstrap for Cwd ()
chmod 644 Cwd.bs
rm -f blib/arch/auto/Cwd/Cwd.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic Cwd.o -o blib/arch/auto/Cwd/Cwd.so \
\
chmod 755 blib/arch/auto/Cwd/Cwd.so
cp Cwd.bs blib/arch/auto/Cwd/Cwd.bs
chmod 644 blib/arch/auto/Cwd/Cwd.bs
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/crossplatform.t ....... ok
# Failed test (t/cwd.t at line 213)
# '/var/lib/libra/xxx/.cpanm/work/1330178753.23137/PathTools-3.33/t/linktest'
# doesn't match '(?i-xsm:\/var\/lib\/libra\/xxx\/\.cpanm\/work\/1330178753\.23137\/PathTools\-3\.33\/t\/_ptrslt_\/_path_\/_to_\/_a_\/_dir_$)'
# Looks like you failed 1 test of 34.
t/cwd.t .................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/34 subtests
t/Functions.t ........... ok
t/rel2abs2rel.t ......... ok
t/rel2abs_vs_symlink.t .. ok
t/Spec.t ................ ok
t/taint.t ............... ok
t/tmpdir.t .............. ok
t/win32.t ............... skipped: this is not win32
Test Summary Report
-------------------
t/cwd.t (Wstat: 256 Tests: 34 Failed: 1)
Failed test: 25
Non-zero exit status: 1
Files=9, Tests=733, 3 wallclock secs ( 0.14 usr 0.08 sys + 0.37 cusr 0.26 csys = 0.85 CPU)
Result: FAIL
Failed 1/9 test programs. 1/733 subtests failed.
make: *** [test_dynamic] Error 255