FAQ
I've been trying to build blead on a gentoo system, and it's failing 3
(sometimes 4) MakeMaker tests, all relating to install

$ ./perl harness ../lib/ExtUtils/t/*

gives

[snip]

-------------------------------------------------------------------------------
../lib/ExtUtils/t/INST_PREFIX.t 11 2816 52 11 21.15% 19-29
../lib/ExtUtils/t/basic.t 23 5888 79 23 29.11% 31-35 37 39-43
47-53 58-62
../lib/ExtUtils/t/prefixify.t 1 256 3 1 33.33% 2

running the tersest is:

$ PERL_CORE=1 ./perl ../lib/ExtUtils/t/prefixify.t
1..3
ok 1 - prefixify w/defaults
not ok 2 - prefixify w/defaults and PREFIX
# Failed test (../lib/ExtUtils/t/prefixify.t at line 38)
# got: '~/blead21828/bin'
# expected: 'something/this/that'
ok 3 # skip Test for DOSish prefixification
# Looks like you failed 1 tests of 3.


All the errors that I've snipped are consistent with that - it seems
that prefixify with a PREFIX is failing. Moreover, the install tests are
*installing* the test files in the Configured prefix (~/blead21828/)
rather than ./t:

$ find ~/blead21828/
/home/nwc/blead21828/
/home/nwc/blead21828/lib
/home/nwc/blead21828/lib/perl5
/home/nwc/blead21828/lib/perl5/site_perl
/home/nwc/blead21828/lib/perl5/site_perl/5.9.0
/home/nwc/blead21828/lib/perl5/site_perl/5.9.0/i686-linux
/home/nwc/blead21828/lib/perl5/site_perl/5.9.0/i686-linux/auto
/home/nwc/blead21828/lib/perl5/site_perl/5.9.0/i686-linux/auto/Big
/home/nwc/blead21828/lib/perl5/site_perl/5.9.0/i686-linux/auto/Big/Dummy
/home/nwc/blead21828/lib/perl5/site_perl/5.9.0/i686-linux/auto/Big/Dummy/.packlist
/home/nwc/blead21828/lib/perl5/site_perl/5.9.0/Big
/home/nwc/blead21828/lib/perl5/site_perl/5.9.0/Big/Dummy.pm
/home/nwc/blead21828/lib/perl5/site_perl/5.9.0/Big/Liar.pm
/home/nwc/blead21828/lib/perl5/5.9.0
/home/nwc/blead21828/lib/perl5/5.9.0/i686-linux
/home/nwc/blead21828/lib/perl5/5.9.0/i686-linux/perllocal.pod
/home/nwc/blead21828/man
/home/nwc/blead21828/man/man3
/home/nwc/blead21828/man/man3/Big::Dummy.3

[which again is consistent with prefixify failing]

What's up? Is this seen by anyone else on Gentoo?
Is it related to how (I'm told) gentoo sandboxes make install during emerge?

Nicholas Clark

Summary of my perl5 (revision 5.0 version 9 subversion 0 patch 21828) configuration:
Platform:
osname=linux, osvers=2.4.20-gentoo-r5, archname=i686-linux
uname='linux faith 2.4.20-gentoo-r5 #1 thu jun 5 01:30:47 local time zone must be set--see zic manua i686 intel(r) pentium(r) 4 cpu 2.40ghz genuineintel gnulinux '
config_args='-Dusedevel=y -Dcc=ccache gcc -Dld=gcc -Ubincompat5005 -Uinstallusrbinperl -Dcf_email=nick@ccl4.org -Dperladmin=nick@ccl4.org -Dinc_version_list= -Dinc_version_list_init=0 -Doptimize=-O2 -Dusethreads=n -Dinstallman1dir=none -Dinstallman3dir=none -Dprefix=~/blead21828 -de'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='ccache gcc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing'
ccversion='', gccversion='3.2.2', 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, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.1.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Locally applied patches:
DEVEL21538
Built under linux
Compiled at Dec 1 2003 19:46:59
@INC:
lib
~/blead21828/lib/perl5/5.9.0/i686-linux
~/blead21828/lib/perl5/5.9.0
~/blead21828/lib/perl5/site_perl/5.9.0/i686-linux
~/blead21828/lib/perl5/site_perl/5.9.0
~/blead21828/lib/perl5/site_perl
.

Search Discussions

  • Nicholas Clark at Dec 1, 2003 at 11:44 pm

    On Mon, Dec 01, 2003 at 10:52:39PM +0000, Nicholas Clark wrote:
    I've been trying to build blead on a gentoo system, and it's failing 3
    (sometimes 4) MakeMaker tests, all relating to install
    What's up? Is this seen by anyone else on Gentoo?
    Is it related to how (I'm told) gentoo sandboxes make install during emerge?
    @INC:
    lib
    ~/blead21828/lib/perl5/5.9.0/i686-linux
    ~/blead21828/lib/perl5/5.9.0
    ~/blead21828/lib/perl5/site_perl/5.9.0/i686-linux
    ~/blead21828/lib/perl5/site_perl/5.9.0
    ~/blead21828/lib/perl5/site_perl
    ^

    OK. The clue is in there

    archlib='~/blead21828/lib/perl5/5.9.0/i686-linux'
    archlibexp='~/blead21828/lib/perl5/5.9.0/i686-linux'

    For some reason ~ expansion isn't working inside Configure.

    This failure of ~ expansion may also explain problems someone else was
    having with something. [yeah right. I mean either a p5p or makemaker bug;
    recent]

    If I s!~!/home/nwc! in config.sh and then "./Configure -S" all tests pass.


    More importantly, I think that failure of prefixify should be a bail out
    on the makemaker tests that rely on prefixify to control where the test
    installs go. Else you can end up with files escaping outside of the
    test tree. (as I did)

    Tomorrow I will RTF{Info Page} for bash and see if I can work out what
    the problem is. But for now, sleep.

    Nicholas Clark

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-porters @
categoriesperl
postedDec 1, '03 at 10:52p
activeDec 1, '03 at 11:44p
posts2
users1
websiteperl.org

1 user in discussion

Nicholas Clark: 2 posts

People

Translate

site design / logo © 2022 Grokbase