source: chapter06/perl.xml@ 41ddb3b

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 41ddb3b was 41ddb3b, checked in by Matthew Burgess <matthew@…>, 18 years ago

Patch Perl to pass tests with BDB-4.4.20. Fixes bug 1687

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7294 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 11.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-perl" role="wrap">
7<title>Perl-&perl-version;</title>
8<?dbhtml filename="perl.html"?>
9
10<indexterm zone="ch-system-perl"><primary sortas="a-Perl">Perl</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Perl package contains the Practical Extraction and Report Language.</para>
14
15<segmentedlist>
16<segtitle>&buildtime;</segtitle>
17<segtitle>&diskspace;</segtitle>
18<seglistitem><seg>2.9 SBU</seg><seg>137 MB</seg></seglistitem>
19</segmentedlist>
20
21<segmentedlist>
22<segtitle>&dependencies;</segtitle>
23<seglistitem><seg>Bash, Berkeley DB, Binutils, Coreutils, Diffutils,
24Gawk, GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
25</segmentedlist>
26</sect2>
27
28<sect2 role="installation">
29<title>Installation of Perl</title>
30
31<para>A security vulnerability exists in Perl's sprintf function. Apply the
32following patch to fix it.</para>
33
34<screen><userinput>patch -Np1 -i ../&perl-sprintf-patch;</userinput></screen>
35
36<para>The DB_File module that comes with Perl-&perl-version; is incompatible
37with Berkeley DB-&db-version; (the testsuite fails if this module gets built).
38Apply the following patch in order to update the DB_File module:</para>
39
40<screen><userinput>patch -Np1 -i ../&perl-db_file-patch;</userinput></screen>
41
42<para>First create a basic <filename>/etc/hosts</filename> file which will be
43referenced in one of Perl's configuration files as well as being used used by
44the testsuite if you run that.</para>
45
46<screen><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
47
48<para>To have full control over the way Perl is set up, run the
49interactive <command>Configure</command> script and hand-pick the way
50this package is built. If the defaults it auto-detects are suitable,
51prepare Perl for compilation with:</para>
52
53<screen><userinput>./configure.gnu --prefix=/usr -Dpager="/usr/bin/less -isR"</userinput></screen>
54
55<para>The meaning of the configure options:</para>
56
57<variablelist>
58<varlistentry>
59<term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
60<listitem><para>This corrects an error in the way that
61<command>perldoc</command> invokes the <command>less</command> program.</para>
62</listitem>
63</varlistentry>
64</variablelist>
65
66<para>Compile the package:</para>
67
68<screen><userinput>make</userinput></screen>
69
70<para>Now run the tests, if desired:</para>
71
72<screen><userinput>make test</userinput></screen>
73
74<para>Install the package:</para>
75
76<screen><userinput>make install</userinput></screen>
77
78</sect2>
79
80
81<sect2 id="contents-perl" role="content"><title>Contents of Perl</title>
82
83<segmentedlist>
84<segtitle>Installed programs</segtitle>
85<segtitle>Installed libraries</segtitle>
86<seglistitem><seg>a2p, c2ph, dprofpp, enc2xs,
87find2perl, h2ph, h2xs, libnetcfg, perl, perl&perl-version; (link to perl),
88perlbug, perlcc, perldoc, perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man,
89pod2text, pod2usage, podchecker, podselect, psed (link to s2p), pstruct (link
90to c2ph), s2p, splain, and xsubpp</seg>
91<seg>Several hundred which cannot all be listed here</seg></seglistitem>
92</segmentedlist>
93
94<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
95<?dbfo list-presentation="list"?>
96<?dbhtml list-presentation="table"?>
97
98<varlistentry id="a2p">
99<term><command>a2p</command></term>
100<listitem>
101<para>Translates awk to Perl</para>
102<indexterm zone="ch-system-perl a2p"><primary sortas="b-a2p">a2p</primary></indexterm>
103</listitem>
104</varlistentry>
105
106<varlistentry id="c2ph">
107<term><command>c2ph</command></term>
108<listitem>
109<para>Dumps C structures as generated from <command>cc -g -S</command></para>
110<indexterm zone="ch-system-perl c2ph"><primary sortas="b-c2ph">c2ph</primary></indexterm>
111</listitem>
112</varlistentry>
113
114<varlistentry id="dprofpp">
115<term><command>dprofpp</command></term>
116<listitem>
117<para>Displays Perl profile data</para>
118<indexterm zone="ch-system-perl dprofpp"><primary sortas="b-dprofpp">dprofpp</primary></indexterm>
119</listitem>
120</varlistentry>
121
122<varlistentry id="en2cxs">
123<term><command>en2cxs</command></term>
124<listitem>
125<para>Builds a Perl extension for the Encode module from either
126Unicode Character Mappings or Tcl Encoding Files</para>
127<indexterm zone="ch-system-perl en2cxs"><primary sortas="b-en2cxs">en2cxs</primary></indexterm>
128</listitem>
129</varlistentry>
130
131<varlistentry id="find2perl">
132<term><command>find2perl</command></term>
133<listitem>
134<para>Translates <command>find</command> commands to Perl</para>
135<indexterm zone="ch-system-perl find2perl"><primary sortas="b-find2perl">find2perl</primary></indexterm>
136</listitem>
137</varlistentry>
138
139<varlistentry id="h2ph">
140<term><command>h2ph</command></term>
141<listitem>
142<para>Converts <filename class="extension">.h</filename> C header files to
143<filename class="extension">.ph</filename> Perl header files</para>
144<indexterm zone="ch-system-perl h2ph"><primary sortas="b-h2ph">h2ph</primary></indexterm>
145</listitem>
146</varlistentry>
147
148<varlistentry id="h2xs">
149<term><command>h2xs</command></term>
150<listitem>
151<para>Converts <filename class="extension">.h</filename> C header files to Perl extensions</para>
152<indexterm zone="ch-system-perl h2xs"><primary sortas="b-h2xs">h2xs</primary></indexterm>
153</listitem>
154</varlistentry>
155
156<varlistentry id="libnetcfg">
157<term><command>libnetcfg</command></term>
158<listitem>
159<para>Can be used to configure the <filename class="libraryfile">libnet</filename></para>
160<indexterm zone="ch-system-perl libnetcfg"><primary sortas="b-libnetcfg">libnetcfg</primary></indexterm>
161</listitem>
162</varlistentry>
163
164<varlistentry id="perl">
165<term><command>perl</command></term>
166<listitem>
167<para>Combines some of the best features of C, <command>sed</command>,
168<command>awk</command> and <command>sh</command> into a single swiss-army
169language</para>
170<indexterm zone="ch-system-perl perl"><primary sortas="b-perl">perl</primary></indexterm>
171</listitem>
172</varlistentry>
173
174<varlistentry id="perl-version">
175<term><command>perl&perl-version;</command></term>
176<listitem>
177<para>A hard link to <command>perl</command></para>
178<indexterm zone="ch-system-perl perl-version"><primary
179sortas="b-perl&perl-version;">perl&perl-version;</primary></indexterm>
180</listitem>
181</varlistentry>
182
183
184<varlistentry id="perlbug">
185<term><command>perlbug</command></term>
186<listitem>
187<para>Used to generate bug reports about Perl, or the modules that come
188with it, and mail them</para>
189<indexterm zone="ch-system-perl perlbug"><primary sortas="b-perlbug">perlbug</primary></indexterm>
190</listitem>
191</varlistentry>
192
193<varlistentry id="perlcc">
194<term><command>perlcc</command></term>
195<listitem>
196<para>Generates executables from Perl programs</para>
197<indexterm zone="ch-system-perl perlcc"><primary sortas="b-perlcc">perlcc</primary></indexterm>
198</listitem>
199</varlistentry>
200
201<varlistentry id="perldoc">
202<term><command>perldoc</command></term>
203<listitem>
204<para>Displays a piece of documentation in pod format that is embedded
205in the Perl installation tree or in a Perl script</para>
206<indexterm zone="ch-system-perl perldoc"><primary sortas="b-perldoc">perldoc</primary></indexterm>
207</listitem>
208</varlistentry>
209
210<varlistentry id="perlivp">
211<term><command>perlivp</command></term>
212<listitem>
213<para>The Perl Installation Verification Procedure; it can be used to
214verify that Perl and its libraries have been installed
215correctly</para>
216<indexterm zone="ch-system-perl perlivp"><primary sortas="b-perlivp">perlivp</primary></indexterm>
217</listitem>
218</varlistentry>
219
220<varlistentry id="piconv">
221<term><command>piconv</command></term>
222<listitem>
223<para>A Perl version of the character encoding converter
224<command>iconv</command></para>
225<indexterm zone="ch-system-perl piconv"><primary sortas="b-piconv">piconv</primary></indexterm>
226</listitem>
227</varlistentry>
228
229<varlistentry id="pl2pm">
230<term><command>pl2pm</command></term>
231<listitem>
232<para>A rough tool for converting Perl4 <filename class="extension">.pl</filename>
233files to Perl5 <filename class="extension">.pm</filename> modules</para>
234<indexterm zone="ch-system-perl pl2pm"><primary sortas="b-pl2pm">pl2pm</primary></indexterm>
235</listitem>
236</varlistentry>
237
238<varlistentry id="pod2html">
239<term><command>pod2html</command></term>
240<listitem>
241<para>Converts files from pod format to HTML format</para>
242<indexterm zone="ch-system-perl pod2html"><primary sortas="b-pod2html">pod2html</primary></indexterm>
243</listitem>
244</varlistentry>
245
246<varlistentry id="pod2latex">
247<term><command>pod2latex</command></term>
248<listitem>
249<para>Converts files from pod format to LaTeX format</para>
250<indexterm zone="ch-system-perl pod2latex"><primary sortas="b-pod2latex">pod2latex</primary></indexterm>
251</listitem>
252</varlistentry>
253
254<varlistentry id="pod2man">
255<term><command>pod2man</command></term>
256<listitem>
257<para>Converts pod data to formatted *roff input</para>
258<indexterm zone="ch-system-perl pod2man"><primary sortas="b-pod2man">pod2man</primary></indexterm>
259</listitem>
260</varlistentry>
261
262<varlistentry id="pod2text">
263<term><command>pod2text</command></term>
264<listitem>
265<para>Converts pod data to formatted ASCII text</para>
266<indexterm zone="ch-system-perl pod2text"><primary sortas="b-pod2text">pod2text</primary></indexterm>
267</listitem>
268</varlistentry>
269
270<varlistentry id="pod2usage">
271<term><command>pod2usage</command></term>
272<listitem>
273<para>Prints usage messages from embedded pod docs in files</para>
274<indexterm zone="ch-system-perl pod2usage"><primary sortas="b-pod2usage">pod2usage</primary></indexterm>
275</listitem>
276</varlistentry>
277
278<varlistentry id="podchecker">
279<term><command>podchecker</command></term>
280<listitem>
281<para>Checks the syntax of pod format documentation files</para>
282<indexterm zone="ch-system-perl podchecker"><primary sortas="b-podchecker">podchecker</primary></indexterm>
283</listitem>
284</varlistentry>
285
286<varlistentry id="podselect">
287<term><command>podselect</command></term>
288<listitem>
289<para>Displays selected sections of pod documentation</para>
290<indexterm zone="ch-system-perl podselect"><primary sortas="b-podselect">podselect</primary></indexterm>
291</listitem>
292</varlistentry>
293
294<varlistentry id="psed">
295<term><command>psed</command></term>
296<listitem>
297<para>A Perl version of the stream editor <command>sed</command></para>
298<indexterm zone="ch-system-perl psed"><primary sortas="b-psed">psed</primary></indexterm>
299</listitem>
300</varlistentry>
301
302<varlistentry id="pstruct">
303<term><command>pstruct</command></term>
304<listitem>
305<para>Dumps C structures as generated from <command>cc -g -S</command> stabs</para>
306<indexterm zone="ch-system-perl pstruct"><primary sortas="b-pstruct">pstruct</primary></indexterm>
307</listitem>
308</varlistentry>
309
310<varlistentry id="s2p">
311<term><command>s2p</command></term>
312<listitem>
313<para>Translates <command>sed</command> scripts to Perl</para>
314<indexterm zone="ch-system-perl s2p"><primary sortas="b-s2p">s2p</primary></indexterm>
315</listitem>
316</varlistentry>
317
318<varlistentry id="splain">
319<term><command>splain</command></term>
320<listitem>
321<para>Is used to force verbose warning diagnostics in Perl</para>
322<indexterm zone="ch-system-perl splain"><primary sortas="b-splain">splain</primary></indexterm>
323</listitem>
324</varlistentry>
325
326<varlistentry id="xsubpp">
327<term><command>xsubpp</command></term>
328<listitem>
329<para>Converts Perl XS code into C code</para>
330<indexterm zone="ch-system-perl xsubpp"><primary sortas="b-xsubpp">xsubpp</primary></indexterm>
331</listitem>
332</varlistentry>
333</variablelist>
334
335</sect2>
336
337</sect1>
338
Note: See TracBrowser for help on using the repository browser.