source: patches/perl-5.20.1-Configure_multilib-1.patch@ 6f21829

systemd
Last change on this file since 6f21829 was d188053, checked in by William Harrington <kb0iic@…>, 10 years ago

Add a file I thought I added earlier.

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[d188053]1Submitted By: William Harrington <kb0iic at cross-lfs dot org>
2Date: 2014-10-25
3Initial Package Version: 5.12.0
4Origin: Cross-LFS
5Upstream Status: Not Applied - Internal to CLFS
6Description: This patch allows perl to be installed in /usr/lib32
7 or /usr/lib64 instead of /usr/lib.
8
9Comments: Renamed for 5.20.1
10
11diff -Naur perl-5.20.0.orig/Configure perl-5.20.0/Configure
12--- perl-5.20.0.orig/Configure 2014-05-26 13:34:18.000000000 +0000
13+++ perl-5.20.0/Configure 2014-05-30 01:43:45.621522372 +0000
14@@ -1359,6 +1359,7 @@
15 glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
16 test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
17 test -f /shlib/libc.so && glibpth="/shlib $glibpth"
18+test -d /usr/lib32 && glibpth="$glibpth /lib32 /usr/lib32 /usr/local/lib32"
19 test -d /usr/lib64 && glibpth="$glibpth /lib64 /usr/lib64 /usr/local/lib64"
20
21 : Private path used by Configure to find libraries. Its value
22@@ -6500,6 +6501,8 @@
23 : The default "style" setting is made in installstyle.U
24 case "$installstyle" in
25 *lib/perl5*) set dflt privlib lib/$package/$version ;;
26+*lib32/perl5*) set dflt privlib lib32/$package/$version ;;
27+*lib64/perl5*) set dflt privlib lib64/$package/$version ;;
28 *) set dflt privlib lib/$version ;;
29 esac
30 eval $prefixit
31@@ -6748,6 +6751,8 @@
32 case "$sitelib" in
33 '') case "$installstyle" in
34 *lib/perl5*) dflt=$siteprefix/lib/$package/site_$prog/$version ;;
35+ *lib32/perl5*) dflt=$witeprefix/lib32/$package/site_$prog/$version ;;
36+ *lib64/perl5*) dflt=$siteprefix/lib64/$package/site_$prog/$version ;;
37 *) dflt=$siteprefix/lib/site_$prog/$version ;;
38 esac
39 ;;
40@@ -7166,6 +7171,8 @@
41 prog=`echo $package | $sed 's/-*[0-9.]*$//'`
42 case "$installstyle" in
43 *lib/perl5*) dflt=$vendorprefix/lib/$package/vendor_$prog/$version ;;
44+ *lib32/perl5*) dflt=$vendorprefix/lib32/$package/vendor_$prog/$version ;;
45+ *lib64/perl5*) dflt=$vendorprefix/lib64/$package/vendor_$prog/$version ;;
46 *) dflt=$vendorprefix/lib/vendor_$prog/$version ;;
47 esac
48 ;;
Note: See TracBrowser for help on using the repository browser.