Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118608 - perl doesnt respect lib64 and such
Summary: perl doesnt respect lib64 and such
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-10 19:48 UTC by SpanKY
Modified: 2006-02-09 21:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
current perl-5.8.7-r3/CONTENTS (CONTENTS,185.40 KB, text/plain)
2006-01-13 18:29 UTC, SpanKY
Details
9329-perl-5.8.7-r3.log (9329-perl-5.8.7-r3.log,278.42 KB, text/plain)
2006-01-13 18:39 UTC, SpanKY
Details
libperl-multilib.patch (libperl-multilib.patch,718 bytes, patch)
2006-01-13 21:46 UTC, SpanKY
Details | Diff
updated libperl ebuild (libperl-5.8.7-r1.ebuild,10.46 KB, text/plain)
2006-01-14 16:51 UTC, Michael Cummings (RETIRED)
Details
corresponding perl ebuild (perl-5.8.7-r4.ebuild,19.19 KB, text/plain)
2006-01-14 16:52 UTC, Michael Cummings (RETIRED)
Details
new perl CONTENTS (CONTENTS,145.75 KB, text/plain)
2006-01-14 17:59 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2006-01-10 19:48:02 UTC
so people have apparently been hacking around the issue instead of simply getting perl fixed
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2006-01-13 16:54:37 UTC
gimme something real to work on spanky, i don't have a lib64, so without input i do nothing. is $(get_libdir) nor valid?
Comment 2 SpanKY gentoo-dev 2006-01-13 17:07:05 UTC
$(get_libdir) is valid, but the build or install of perl isnt respecting the options given to it

ive looked into perl build system before and everytime ive walked away a broken man
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-13 17:23:56 UTC
Actually, looking at this more, it appears that it was just baselayout that was broken.  I'll investigate more and report back here.  Fi anyone has any evidence to prove me wrong, go for it.
Comment 4 SpanKY gentoo-dev 2006-01-13 17:49:50 UTC
i'm going by the CONTENTS of perl which says it installed into /usr/lib

$ qlist -e dev-lang/perl | grep ^/usr/lib64 | wc
      0       0       0
$ qlist -e dev-lang/perl | grep ^/usr/lib | wc
   1469    1469   64521
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2006-01-13 18:18:00 UTC
 (In reply to comment #4)
> i'm going by the CONTENTS of perl which says it installed into /usr/lib
> 
> $ qlist -e dev-lang/perl | grep ^/usr/lib64 | wc
>       0       0       0
> $ qlist -e dev-lang/perl | grep ^/usr/lib | wc
>    1469    1469   64521
> 

Based on which ebuild install? Are we talking 5.8.7 (which should be fixed) or 5.8.6 (which may not be in the tree)?
Comment 6 SpanKY gentoo-dev 2006-01-13 18:28:56 UTC
$ qlist -I -v dev-lang/perl
dev-lang/perl-5.8.7-r3

i'll go ahead and re-emerge it now to be sure
Comment 7 SpanKY gentoo-dev 2006-01-13 18:29:27 UTC
Created attachment 77041 [details]
current perl-5.8.7-r3/CONTENTS
Comment 8 SpanKY gentoo-dev 2006-01-13 18:39:45 UTC
Created attachment 77042 [details]
9329-perl-5.8.7-r3.log

just cvs-ed up to latest tree and emerged perl-5.8.7-r3
Comment 9 SpanKY gentoo-dev 2006-01-13 21:45:38 UTC
hrm, i was forced to debug libperl as it was failing to build on amd64/uClibc and i noticed that -Dlibpth is not being passed correctly

config.sh quotes all of its args with '':
config_arg1='-des'
config_arg2='-Darchname=-linux'
config_arg3='-Dcccdlflags=-fPIC'
config_arg4='-Dccdlflags=-rdynamic'
...

the multilib logic in the ebuild also attempts to use '' to pass a list of lib paths, but this of course breaks and explains all of these random messages in my build log:
./config.sh: line 1019: /lib64: is a directory
Comment 10 SpanKY gentoo-dev 2006-01-13 21:46:09 UTC
Created attachment 77048 [details, diff]
libperl-multilib.patch

this seems to fix libperl on my machine:
$ qlist libperl | grep /usr/lib
/usr/lib64/libperl.so.1.5.8
/usr/lib64/libperl.so.1
Comment 11 Antoine Raillon (RETIRED) gentoo-dev 2006-01-14 03:20:08 UTC
As requested on #gentoo-perl by mcummings :

# grep -c lib64 /var/db/pkg/dev-lang/perl*/CONTENTS
3

# grep lib64 /var/db/pkg/dev-lang/perl*/CONTENTS
sym /usr/lib/perl5/5.8.7/x86_64-linux-thread-multi/CORE/libperl.so.1.5.8 -> ../../../../../lib64/libperl.so.1.5.8 1133946648
sym /usr/lib/perl5/5.8.7/x86_64-linux-thread-multi/CORE/libperl.so.1 -> ../../../../../lib64/libperl.so.1.5.8 1133946648
sym /usr/lib/perl5/5.8.7/x86_64-linux-thread-multi/CORE/libperl.so -> ../../../../../lib64/libperl.so.1.5.8 1133946648

Comment 12 Michael Cummings (RETIRED) gentoo-dev 2006-01-14 05:11:59 UTC
your arch isn't getting defined when you build perl according to the CONTENTS - you should never, ever, ever, have /-linux as a dir (should be something like i686-linux, or sparc-linux). myarch is defined by get_abi_CHOST, which is obviously broken on your box, which leads me to suspect that the result of get_libdir isn't much more reliable.
Comment 13 SpanKY gentoo-dev 2006-01-14 10:14:46 UTC
the output of $(get_libdir) is correct

regardless of whether my system is broken, the patch i posted is correct

read the config.sh file and you'll see that the quoting is all screwed up
Comment 14 Michael Cummings (RETIRED) gentoo-dev 2006-01-14 14:56:05 UTC
(In reply to comment #13)
> the output of $(get_libdir) is correct
> 
> regardless of whether my system is broken, the patch i posted is correct
> 
> read the config.sh file and you'll see that the quoting is all screwed up
> 

I saw that - agreed and quickly fixable. But get_abi_CHIOST isn't filling in any values for some reason on your box (either a bad copy of the ebuild, or something else) so this patch only fixes the lib part of the problem (sure, that's what the bug was for :) but not your install of perl. 
Comment 15 SpanKY gentoo-dev 2006-01-14 15:38:22 UTC
> I saw that - agreed and quickly fixable. But get_abi_CHIOST isn't filling in
> any values for some reason on your box

it's because i've been screwing around with my env, it isnt a bug outside of my box
Comment 16 Michael Cummings (RETIRED) gentoo-dev 2006-01-14 16:51:52 UTC
Created attachment 77135 [details]
updated libperl ebuild

fixes all /usr/lib refs, including the one multiline in spanky's patch
Comment 17 Michael Cummings (RETIRED) gentoo-dev 2006-01-14 16:52:34 UTC
Created attachment 77136 [details]
corresponding perl ebuild

the other half the perl ebuild itself
Comment 18 SpanKY gentoo-dev 2006-01-14 17:59:00 UTC
Created attachment 77139 [details]
new perl CONTENTS

the libperl ebuild works for me but my perl ends up with some stuff in /usr/lib
Comment 19 Michael Cummings (RETIRED) gentoo-dev 2006-02-09 04:41:42 UTC
this is all fixed 5.8.8.
Comment 20 SpanKY gentoo-dev 2006-02-09 21:09:16 UTC
confirmed, CONTENTS looks great with 5.8.8

i'm content to let 5.8.8 filter down to stable