Re: Parrot: Patch + Problem

[email protected] (Nicholas Clark) Sat, 23 Jul 2005 17:57:42 +0100
Newsgroups perl.ponie.dev
Message-ID <[email protected]>
On Sat, Jul 23, 2005 at 02:08:31PM +0300, Shlomi Fish wrote:

> After I investigated a little bit, I found out the following lines in 
> perl/lib/Config_heavy.pl:
> 
> <<<<<<<<<<<<
> installsitearch='/usr/lib/site_perl/5.9.2/i386-linux-thread'
> installsitebin='/usr/bin'
> installsitehtml1dir=''
> installsitehtml3dir=''
> installsitelib='/usr/lib/site_perl/5.9.2'
> installsiteman1dir='/usr/man/man1'
> installsiteman3dir='/usr/man/man3'
> installsitescript='/usr/bin'
> installstyle='lib'
> installusrbinperl='undef'
> installvendorarch='/usr/lib/vendor_perl/5.9.2/i386-linux-thread'
> installvendorbin='/usr/bin'
> installvendorhtml1dir=''
> installvendorhtml3dir=''
> installvendorlib='/usr/lib/vendor_perl/5.9.2'
> installvendorman1dir='/usr/man/man1'
> installvendorman3dir='/usr/man/man3'
> installvendorscript='/usr/bin'
> >>>>>>>>>>>>
> 
> So all the installsite and installvendor are wrong.

Aha yes. Well spotted.

>     config_args='-Dinc_version_list=5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.6.1 
> 5.6.0 -Darchname=i386-linux -Dcc=gcc -Doptimize=-O2 -fomit-frame-pointer 
> -pipe -march=i586 -mtune=pentiumpro  -Dprefix=/usr -Dvendorprefix=/usr 
> -Dsiteprefix=/usr-Dman3ext=3pm -Dcf_by=Mandrakesoft -Dmyhostname=localhost 
> -Dperladmin=root@localhost -Dcf_email=root@localhost -Dd_dosuid -Ud_csh 
> -Accflags=-DPERL_DISABLE_PMC -Ud_dosuid -Dnoextensions=ByteLoader -d -E 
> -Dusedevel -Dusethreads -Uuseithreads-Uuse5005threads -Doptimize='-g' 
> -Dprefix=/home/shlomi/apps/perl/ponie/ -Dversiononly=n -Dlink=c++'

It's caused by -Dsiteprefix being passed through to Configure. That needs to
be filtered out. The existing code in Configure.pl also wasn't filtering
-Dprefix=... (my bug).

Change 335 in subversion should fix all of this, by removing -Dprefix,
-Dsiteprefix, -Dvendorprefix, which should solve your problem. I think you'll
need to start for a clean build. Or at least, remove config.sh and Policy.sh
from the perl subdirectory, and re-run Configure.pl at the top level, before
re-running make.

Nicholas Clark