Magellan Linux

Contents of /trunk/perl/patches/perl-5.8.7-libc_lib64-1.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 929 byte(s)
-import

1 Submitted By: Thomas Pegg <thomasp at linuxfromscratch dot org>
2 Date: 2005-10-27
3 Initial Package Version: 5.8.7
4 Origin: based on perl-5.8.7-libc-1.patch
5 Description: this patch adapts some hard-wired paths to the C library and points it to use lib64 instead of lib.
6
7 diff -uNr perl-5.8.0.orig/hints/linux.sh perl-5.8.0/hints/linux.sh
8 --- perl-5.8.0.orig/hints/linux.sh 2002-06-05 23:46:00.000000000 +1000
9 +++ perl-5.8.0/hints/linux.sh 2003-02-19 16:32:18.000000000 +1100
10 @@ -51,9 +51,9 @@
11 # We don't use __GLIBC__ and __GLIBC_MINOR__ because they
12 # are insufficiently precise to distinguish things like
13 # libc-2.0.6 and libc-2.0.7.
14 -if test -L /lib/libc.so.6; then
15 - libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
16 - libc=/lib/$libc
17 +if test -L /lib64/libc.so.6; then
18 + libc=`ls -l /lib64/libc.so.6 | awk '{print $NF}'`
19 + libc=/lib64/$libc
20 fi
21
22 # Configure may fail to find lstat() since it's a static/inline