source: chapter06/perl.xml@ 0a69835

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.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 0a69835 was 0a69835, checked in by Ken Moffat <ken@…>, 16 years ago

Belatedly fix the known perl vulnerabilities.

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

  • Property mode set to 100644
File size: 15.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-perl" role="wrap">
9 <?dbhtml filename="perl.html"?>
10
11 <sect1info condition="script">
12 <productname>perl</productname>
13 <productnumber>&perl-version;</productnumber>
14 <address>&perl-url;</address>
15 </sect1info>
16
17 <title>Perl-&perl-version;</title>
18
19 <indexterm zone="ch-system-perl">
20 <primary sortas="a-Perl">Perl</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Perl package contains the Practical Extraction and Report
27 Language.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&perl-ch6-sbu;</seg>
35 <seg>&perl-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Perl</title>
43
44 <para>First create a basic <filename>/etc/hosts</filename> file to be
45 referenced in one of Perl's configuration files as well as the optional
46 testsuite:</para>
47
48<screen><userinput remap="pre">echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
49
50 <para>The following patch fixes known vulnerabilities:</para>
51
52<screen><userinput remap="pre">patch -Np1 -i ../&perl-security-patch;</userinput></screen>
53
54 <para>Fix an incompatibility with gcc-&gcc-version;:</para>
55
56<screen><userinput remap="pre">sed -i 's/command /command[ -]/' makedepend.SH</userinput></screen>
57
58 <para>To have full control over the way Perl is set up, you can run the
59 interactive <command>Configure</command> script and hand-pick the way this
60 package is built. If you prefer, you can use the defaults that Perl
61 auto-detects, by preparing Perl for compilation with:</para>
62
63<screen><userinput remap="configure">./configure.gnu --prefix=/usr \
64 -Dman1dir=/usr/share/man/man1 \
65 -Dman3dir=/usr/share/man/man3 \
66 -Dpager="/usr/bin/less -isR"</userinput></screen>
67
68 <variablelist>
69 <title>The meaning of the configure options:</title>
70
71 <varlistentry>
72 <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
73 <listitem>
74 <para>This corrects an error in the way that <command>perldoc</command>
75 invokes the <command>less</command> program.</para>
76 </listitem>
77 </varlistentry>
78
79 <varlistentry>
80 <term><parameter>-Dman1dir=/usr/share/man/man1
81 -Dman3dir=/usr/share/man/man3</parameter></term>
82 <listitem>
83 <para>Since Groff is not installed yet, <command>Configure</command>
84 thinks that we do not want man pages for Perl. Issuing these
85 parameters overrides this decision.</para>
86 </listitem>
87 </varlistentry>
88
89 </variablelist>
90
91 <para>Compile the package:</para>
92
93<screen><userinput remap="make">make</userinput></screen>
94
95 <para>To test the results, issue:</para>
96
97<screen><userinput remap="test">make test</userinput></screen>
98
99 <para>Install the package:</para>
100
101<screen><userinput remap="install">make install</userinput></screen>
102
103 </sect2>
104
105 <sect2 id="contents-perl" role="content">
106 <title>Contents of Perl</title>
107
108 <segmentedlist>
109 <segtitle>Installed programs</segtitle>
110 <segtitle>Installed libraries</segtitle>
111
112 <seglistitem>
113 <seg>a2p, c2ph, cpan, dprofpp, enc2xs, find2perl, h2ph, h2xs,
114 instmodsh, libnetcfg, perl, perl&perl-version; (link to perl),
115 perlbug, perlcc, perldoc, perlivp, piconv, pl2pm, pod2html, pod2latex,
116 pod2man, pod2text, pod2usage, podchecker, podselect, prove,
117 psed (link to s2p), pstruct (link to c2ph), s2p, splain, and
118 xsubpp</seg>
119 <seg>Several hundred which cannot all be listed here</seg>
120 </seglistitem>
121 </segmentedlist>
122
123 <variablelist>
124 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
125 <?dbfo list-presentation="list"?>
126 <?dbhtml list-presentation="table"?>
127
128 <varlistentry id="a2p">
129 <term><command>a2p</command></term>
130 <listitem>
131 <para>Translates awk to Perl</para>
132 <indexterm zone="ch-system-perl a2p">
133 <primary sortas="b-a2p">a2p</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry id="c2ph">
139 <term><command>c2ph</command></term>
140 <listitem>
141 <para>Dumps C structures as generated from
142 <command>cc -g -S</command></para>
143 <indexterm zone="ch-system-perl c2ph">
144 <primary sortas="b-c2ph">c2ph</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="cpan">
150 <term><command>cpan</command></term>
151 <listitem>
152 <para>Interact with the Comprehensive Perl Archive Network (CPAN)
153 from the command line</para>
154 <indexterm zone="ch-system-perl cpan">
155 <primary sortas="b-cpan">cpan</primary>
156 </indexterm>
157 </listitem>
158 </varlistentry>
159
160 <varlistentry id="dprofpp">
161 <term><command>dprofpp</command></term>
162 <listitem>
163 <para>Displays Perl profile data</para>
164 <indexterm zone="ch-system-perl dprofpp">
165 <primary sortas="b-dprofpp">dprofpp</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="enc2xs">
171 <term><command>enc2xs</command></term>
172 <listitem>
173 <para>Builds a Perl extension for the Encode module from either
174 Unicode Character Mappings or Tcl Encoding Files</para>
175 <indexterm zone="ch-system-perl enc2xs">
176 <primary sortas="b-enc2xs">enc2xs</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="find2perl">
182 <term><command>find2perl</command></term>
183 <listitem>
184 <para>Translates <command>find</command> commands to Perl</para>
185 <indexterm zone="ch-system-perl find2perl">
186 <primary sortas="b-find2perl">find2perl</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="h2ph">
192 <term><command>h2ph</command></term>
193 <listitem>
194 <para>Converts <filename class="extension">.h</filename> C header
195 files to <filename class="extension">.ph</filename> Perl header
196 files</para>
197 <indexterm zone="ch-system-perl h2ph">
198 <primary sortas="b-h2ph">h2ph</primary>
199 </indexterm>
200 </listitem>
201 </varlistentry>
202
203 <varlistentry id="h2xs">
204 <term><command>h2xs</command></term>
205 <listitem>
206 <para>Converts <filename class="extension">.h</filename> C header
207 files to Perl extensions</para>
208 <indexterm zone="ch-system-perl h2xs">
209 <primary sortas="b-h2xs">h2xs</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="instmodsh">
215 <term><command>instmodsh</command></term>
216 <listitem>
217 <para>Shell script for examining installed Perl modules,
218 and can even create a tarball from an installed module</para>
219 <indexterm zone="ch-system-perl instmodsh">
220 <primary sortas="b-instmodsh">instmodsh</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="libnetcfg">
226 <term><command>libnetcfg</command></term>
227 <listitem>
228 <para>Can be used to configure the
229 <filename class="libraryfile">libnet</filename></para>
230 <indexterm zone="ch-system-perl libnetcfg">
231 <primary sortas="b-libnetcfg">libnetcfg</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="perl">
237 <term><command>perl</command></term>
238 <listitem>
239 <para>Combines some of the best features of C, <command>sed</command>,
240 <command>awk</command> and <command>sh</command> into a single
241 swiss-army language</para>
242 <indexterm zone="ch-system-perl perl">
243 <primary sortas="b-perl">perl</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="perl-version">
249 <term><command>perl&perl-version;</command></term>
250 <listitem>
251 <para>A hard link to <command>perl</command></para>
252 <indexterm zone="ch-system-perl perl-version">
253 <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 <varlistentry id="perlbug">
259 <term><command>perlbug</command></term>
260 <listitem>
261 <para>Used to generate bug reports about Perl, or the modules that come
262 with it, and mail them</para>
263 <indexterm zone="ch-system-perl perlbug">
264 <primary sortas="b-perlbug">perlbug</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="perlcc">
270 <term><command>perlcc</command></term>
271 <listitem>
272 <para>Generates executables from Perl programs</para>
273 <indexterm zone="ch-system-perl perlcc">
274 <primary sortas="b-perlcc">perlcc</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="perldoc">
280 <term><command>perldoc</command></term>
281 <listitem>
282 <para>Displays a piece of documentation in pod format that is embedded
283 in the Perl installation tree or in a Perl script</para>
284 <indexterm zone="ch-system-perl perldoc">
285 <primary sortas="b-perldoc">perldoc</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="perlivp">
291 <term><command>perlivp</command></term>
292 <listitem>
293 <para>The Perl Installation Verification Procedure; it can be used to
294 verify that Perl and its libraries have been installed
295 correctly</para>
296 <indexterm zone="ch-system-perl perlivp">
297 <primary sortas="b-perlivp">perlivp</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="piconv">
303 <term><command>piconv</command></term>
304 <listitem>
305 <para>A Perl version of the character encoding converter
306 <command>iconv</command></para>
307 <indexterm zone="ch-system-perl piconv">
308 <primary sortas="b-piconv">piconv</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="pl2pm">
314 <term><command>pl2pm</command></term>
315 <listitem>
316 <para>A rough tool for converting Perl4
317 <filename class="extension">.pl</filename> files to Perl5
318 <filename class="extension">.pm</filename> modules</para>
319 <indexterm zone="ch-system-perl pl2pm">
320 <primary sortas="b-pl2pm">pl2pm</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
325 <varlistentry id="pod2html">
326 <term><command>pod2html</command></term>
327 <listitem>
328 <para>Converts files from pod format to HTML format</para>
329 <indexterm zone="ch-system-perl pod2html">
330 <primary sortas="b-pod2html">pod2html</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="pod2latex">
336 <term><command>pod2latex</command></term>
337 <listitem>
338 <para>Converts files from pod format to LaTeX format</para>
339 <indexterm zone="ch-system-perl pod2latex">
340 <primary sortas="b-pod2latex">pod2latex</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
345 <varlistentry id="pod2man">
346 <term><command>pod2man</command></term>
347 <listitem>
348 <para>Converts pod data to formatted *roff input</para>
349 <indexterm zone="ch-system-perl pod2man">
350 <primary sortas="b-pod2man">pod2man</primary>
351 </indexterm>
352 </listitem>
353 </varlistentry>
354
355 <varlistentry id="pod2text">
356 <term><command>pod2text</command></term>
357 <listitem>
358 <para>Converts pod data to formatted ASCII text</para>
359 <indexterm zone="ch-system-perl pod2text">
360 <primary sortas="b-pod2text">pod2text</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 <varlistentry id="pod2usage">
366 <term><command>pod2usage</command></term>
367 <listitem>
368 <para>Prints usage messages from embedded pod docs in files</para>
369 <indexterm zone="ch-system-perl pod2usage">
370 <primary sortas="b-pod2usage">pod2usage</primary>
371 </indexterm>
372 </listitem>
373 </varlistentry>
374
375 <varlistentry id="podchecker">
376 <term><command>podchecker</command></term>
377 <listitem>
378 <para>Checks the syntax of pod format documentation files</para>
379 <indexterm zone="ch-system-perl podchecker">
380 <primary sortas="b-podchecker">podchecker</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
385 <varlistentry id="podselect">
386 <term><command>podselect</command></term>
387 <listitem>
388 <para>Displays selected sections of pod documentation</para>
389 <indexterm zone="ch-system-perl podselect">
390 <primary sortas="b-podselect">podselect</primary>
391 </indexterm>
392 </listitem>
393 </varlistentry>
394
395 <varlistentry id="prove">
396 <term><command>prove</command></term>
397 <listitem>
398 <para>Command line tool for running tests against the Test::Harness
399 module.</para>
400 <indexterm zone="ch-system-perl prove">
401 <primary sortas="b-prove">prove</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
406 <varlistentry id="psed">
407 <term><command>psed</command></term>
408 <listitem>
409 <para>A Perl version of the stream editor <command>sed</command></para>
410 <indexterm zone="ch-system-perl psed">
411 <primary sortas="b-psed">psed</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415
416 <varlistentry id="pstruct">
417 <term><command>pstruct</command></term>
418 <listitem>
419 <para>Dumps C structures as generated from <command>cc -g -S</command>
420 stabs</para>
421 <indexterm zone="ch-system-perl pstruct">
422 <primary sortas="b-pstruct">pstruct</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
427 <varlistentry id="s2p">
428 <term><command>s2p</command></term>
429 <listitem>
430 <para>Translates <command>sed</command> scripts to Perl</para>
431 <indexterm zone="ch-system-perl s2p">
432 <primary sortas="b-s2p">s2p</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="splain">
438 <term><command>splain</command></term>
439 <listitem>
440 <para>Is used to force verbose warning diagnostics in Perl</para>
441 <indexterm zone="ch-system-perl splain">
442 <primary sortas="b-splain">splain</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="xsubpp">
448 <term><command>xsubpp</command></term>
449 <listitem>
450 <para>Converts Perl XS code into C code</para>
451 <indexterm zone="ch-system-perl xsubpp">
452 <primary sortas="b-xsubpp">xsubpp</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
457 </variablelist>
458
459 </sect2>
460
461</sect1>
Note: See TracBrowser for help on using the repository browser.