source: BOOK/final-system/multilib/perl-n32.xml@ 6d7d314

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 6d7d314 was 7f1773b, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Fixed the location for the Zlib sed in the perl build. Thanks to Roy Bekken for seeing this and suggesting a fix.

I took this fix one step further and noticed that the sed was putting /usr/include in the libdir field. Updated it to use /usr/include only for headers and /usr/lib{,32,64} respectivly for libraries.

  • Property mode set to 100644
File size: 4.3 KB
RevLine 
[9c1db810]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[9c1db810]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-perl-n32" role="wrap">
9 <?dbhtml filename="perl-n32.html"?>
10
11 <title>Perl-&perl-version; N32 Libraries</title>
12
13 <indexterm zone="ch-system-perl-n32">
14 <primary sortas="a-Perl">Perl</primary>
15 <secondary>N32</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../common/perl.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of Perl</title>
24
25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
26 href="../common/perl.xml"
[96d0fe5]27 xpointer="xpointer(//*[@os='s1'])"/>
[9c1db810]28
29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
30 href="../common/perl.xml"
[96d0fe5]31 xpointer="xpointer(//*[@os='s2'])"/>
[9c1db810]32
[ccd51bc]33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
34 href="../common/perl.xml"
35 xpointer="xpointer(//*[@os='s3'])"/>
36
[7f1773b]37<screen os="s4"><userinput>sed -i -e '/^BUILD_ZLIB/ s/True/False/' \
38 -e '/^INCLUDE/s|\./zlib-src|/usr/include|' \
39 -e '/^LIB/s|\./zlib-src|/usr/lib32|' \
40 ext/Compress-Raw-Zlib/config.in</userinput></screen>
[ccd51bc]41
[9c1db810]42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
43 href="perl-64bit.xml"
[d10818d]44 xpointer="xpointer(//*[@os='mp1'])"/>
[9c1db810]45
46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
47 href="perl-64bit.xml"
[d10818d]48 xpointer="xpointer(//*[@os='mp2'])"/>
[9c1db810]49
50 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
51 href="perl-64bit.xml"
52 xpointer="xpointer(//*[@os='s1'])"/>
53
54<screen os="s2"><userinput>sed -i "/libc/s@/lib@/lib32@" hints/linux.sh</userinput></screen>
55
56 <para os="m2">We still need to tell perl to actually use lib32:</para>
57
58<screen os="m3"><userinput>echo 'installstyle="lib32/perl5"' >>hints/linux.sh</userinput></screen>
59
60 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
61 href="../common/perl.xml"
62 xpointer="xpointer(//*[@os='a'])"/>
63
64<screen os="b"><userinput>./configure.gnu --prefix=/usr \
[42622bd]65 -Dvendorprefix=/usr \
[9c1db810]66 -Dman1dir=/usr/share/man/man1 \
67 -Dman3dir=/usr/share/man/man3 \
68 -Dpager="/bin/less -isR" \
69 -Dlibpth="/usr/local/lib32 /lib32 /usr/lib32" \
70 -Dcc="gcc ${BUILDN32}" \
[1da2a84]71 -Dusethreads -Duseshrplib</userinput></screen>
[9c1db810]72
73 <variablelist os="m4">
74 <title>The meaning of the new configure option:</title>
75
76 <varlistentry>
77 <term><parameter>-Dlibpth="/usr/local/lib32 /lib32 /usr/lib32"</parameter></term>
78 <listitem>
79 <para>This tells Perl to link against the N32 libraries.</para>
80 </listitem>
81 </varlistentry>
82
83 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
84 href="../common/perl.xml"
85 xpointer="xpointer(//*[@os='c1'])"/>
86
87 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
88 href="../common/perl.xml"
89 xpointer="xpointer(//*[@os='c2'])"/>
90
91 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
92 href="../common/perl.xml"
93 xpointer="xpointer(//*[@os='c3'])"/>
94
[1da2a84]95 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
96 href="../common/perl.xml"
97 xpointer="xpointer(//*[@os='c4'])"/>
98
[9c1db810]99 </variablelist>
100
101 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
102 href="../common/perl.xml"
103 xpointer="xpointer(//*[@os='d'])"/>
104
105 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
106 href="../common/perl.xml"
107 xpointer="xpointer(//*[@os='e'])"/>
108
109 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
110 href="../common/perl.xml"
111 xpointer="xpointer(//*[@os='h'])"/>
112
113 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
114 href="../common/perl.xml"
115 xpointer="xpointer(//*[@os='j'])"/>
116
117 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
118 href="../common/perl.xml"
119 xpointer="xpointer(//*[@os='k'])"/>
120
121 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
122 href="perl.xml"
123 xpointer="xpointer(//*[@os='l'])"/>
124
[1da2a84]125<screen os="m"><userinput>mv -v /usr/bin/perl{,-n32}
126mv -v /usr/bin/perl&perl-version;{,-n32}</userinput></screen>
[9c1db810]127
128 </sect2>
129
130 <sect2 role="content">
131 <title/>
132
133 <para>Details on this package are located in <xref
134 linkend="contents-perl" role="."/></para>
135
136 </sect2>
137
138</sect1>
Note: See TracBrowser for help on using the repository browser.