source: patches/perl-5.18.2-libc-1.patch@ 788695f

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 788695f was af2cd26b, checked in by Chris Staub <chris@…>, 11 years ago

Add Perl patches

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[af2cd26b]1Submitted By: Jonathan Norman <Jonathan at bluesquarelinux.co.uk>
2Date: 2013-08-13
3Initial Package Version: 5.8.8
4Origin: Ryan Oliver
5Upstream Status: Unknown
6Description: This patch adapts some hard-wired paths to the C library.
7 It uses the $prefix variable to locate the correct libc.
8
9Rediffed: Against 5.10.0 by Joe Ciccone on 2008-08-30
10 Against 5.10.1 By Jim Gifford on 2009-08-25
11 Against 5.12.1 By Joe Ciccone on 2010-08-01
12 Against 5.14.0 By Jonathan Norman on 2011-05-17
13 Against 5.16.1 by William Harrington on 2012-08-26
14Rename for 5.16.2 by William Harrington on 2012-11-01
15
16Rediffed: Against 5.18.0 by William Harrington on 2013-05-27
17Rediffed: Against 5.18.1 by William Harrington on 2013-08-13
18Rediffed: Against 5.18.2 by Chris Staub on 2014-01-10
19
20diff -Naur perl-5.18.2.orig/hints/linux.sh perl-5.18.2/hints/linux.sh
21--- perl-5.18.2.orig/hints/linux.sh 2014-01-06 17:46:45.000000000 -0500
22+++ perl-5.18.2/hints/linux.sh 2014-01-10 02:34:36.000000000 -0500
23@@ -66,9 +66,9 @@
24 # We don't use __GLIBC__ and __GLIBC_MINOR__ because they
25 # are insufficiently precise to distinguish things like
26 # libc-2.0.6 and libc-2.0.7.
27-if test -L /lib/libc.so.6; then
28- libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'`
29- libc=/lib/$libc
30+if test -L ${prefix}/lib/libc.so.6; then
31+ libc=`ls -l ${prefix}/lib/libc.so.6 | awk '{print $NF}'`
32+ libc=${prefix}/lib/$libc
33 fi
34
35 # Configure may fail to find lstat() since it's a static/inline
36@@ -456,3 +456,9 @@
37 libswanted="$libswanted pthread"
38 ;;
39 esac
40+
41+locincpth=""
42+loclibpth=""
43+glibpth="${prefix}/lib"
44+usrinc="${prefix}/include"
45+
Note: See TracBrowser for help on using the repository browser.