source: clfs-sysroot/BOOK/final-system/arm/perl.xml @ c3d197b

Last change on this file since c3d197b was c3d197b, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Add sed command to make perl use system-installed zlib

  • Property mode set to 100644
File size: 14.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  <title>Perl-&perl-version;</title>
12
13  <indexterm zone="ch-system-perl">
14    <primary sortas="a-Perl">Perl</primary>
15  </indexterm>
16
17  <sect2 role="package">
18    <title/>
19
20    <para>The Perl package contains the Practical Extraction and Report
21    Language.</para>
22
23  </sect2>
24
25  <sect2 role="installation">
26    <title>Installation of Perl</title>
27
28    <warning os="w1">
29      <para>Building with <envar>CFLAGS</envar> or <envar>CXXFLAGS</envar> set
30      can cause the build to hang or fail.</para>
31    </warning>
32
33    <para os="p3">The following patch fixes issues with Perl and
34    cross-compiling:</para>
35
36<screen os="p4"><userinput>patch -Np1 -i ../&perl-cross_compile-patch;</userinput></screen>
37
38    <para os="s1">The following sed causes <filename>DynaLoader.a</filename>
39    to be built with -fPIC so it can be linked into a shared library
40    later:</para>
41
42<screen os="s2"><userinput>cp -v Makefile.SH{,.orig}
43sed -e "s@pldlflags=''@pldlflags=\"\$cccdlflags\"@g" \
44    -e "s@static_target='static'@static_target='static_pic'@g" Makefile.SH.orig &gt; Makefile.SH</userinput></screen>
45
46    <para os="s3">By default, Perl's Compress::Raw::Zlib module builds and
47    links against its own internal copy of Zlib. The following command will
48    tell it use the system-installed Zlib:</para>
49
50<screen os="s4"><userinput>cp -v ext/Compress/Raw/Zlib/config.in{,.orig}
51sed -e '/^BUILD_ZLIB/ s/True/False/' \
52        -e '/^INCLUDE\|^LIB/ s|\./zlib-src|/usr/include|' \
53        ext/Compress/Raw/Zlib/config.in.orig &gt; \
54        ext/Compress/Raw/Zlib/config.in</userinput></screen>
55
56    <para os="a">The Cross directory contains a Makefile for cross-compiling:</para>
57
58<screen os="b"><userinput>cd Cross</userinput></screen>
59
60    <para os="c">Compile the package:</para>
61
62<screen os="d"><userinput>make ARCH=arm CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
63
64    <para os="e">Install the package:</para>
65
66<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
67
68  </sect2>
69
70  <sect2 id="contents-perl" role="content">
71    <title>Contents of Perl</title>
72
73    <segmentedlist>
74      <segtitle>Installed programs</segtitle>
75      <segtitle>Installed libraries</segtitle>
76
77      <seglistitem>
78        <seg>a2p, c2ph, cpan, dprofpp, enc2xs, find2perl, h2ph, h2xs, instmodsh, libnetcfg,
79        perl, perl&perl-version; (link to perl), perlbug, perlcc, perldoc,
80        perlivp, piconv, pl2pm, pod2html, pod2latex, pod2man, pod2text,
81        pod2usage, podchecker, podselect, prove, psed (link to s2p), pstruct (link
82        to c2ph), s2p, splain, and xsubpp</seg>
83        <seg>Several hundred which cannot all be listed here</seg>
84      </seglistitem>
85    </segmentedlist>
86
87    <variablelist>
88      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
89      <?dbfo list-presentation="list"?>
90      <?dbhtml list-presentation="table"?>
91
92      <varlistentry id="a2p">
93        <term><command>a2p</command></term>
94        <listitem>
95          <para>Translates awk to Perl</para>
96          <indexterm zone="ch-system-perl a2p">
97            <primary sortas="b-a2p">a2p</primary>
98          </indexterm>
99        </listitem>
100      </varlistentry>
101
102      <varlistentry id="c2ph">
103        <term><command>c2ph</command></term>
104        <listitem>
105          <para>Dumps C structures as generated from
106          <command>cc -g -S</command></para>
107          <indexterm zone="ch-system-perl c2ph">
108            <primary sortas="b-c2ph">c2ph</primary>
109          </indexterm>
110        </listitem>
111      </varlistentry>
112
113      <varlistentry id="cpan">
114        <term><command>cpan</command></term>
115        <listitem>
116          <para>Shell script that provides a command interface to CPAN.pm</para>
117          <indexterm zone="ch-system-perl cpan">
118            <primary sortas="b-cpan">cpan</primary>
119          </indexterm>
120        </listitem>
121      </varlistentry>
122
123      <varlistentry id="dprofpp">
124        <term><command>dprofpp</command></term>
125        <listitem>
126          <para>Displays Perl profile data</para>
127          <indexterm zone="ch-system-perl dprofpp">
128            <primary sortas="b-dprofpp">dprofpp</primary>
129          </indexterm>
130        </listitem>
131      </varlistentry>
132
133      <varlistentry id="enc2xs">
134        <term><command>enc2xs</command></term>
135        <listitem>
136          <para>Builds a Perl extension for the Encode module from either
137          Unicode Character Mappings or Tcl Encoding Files</para>
138          <indexterm zone="ch-system-perl enc2xs">
139            <primary sortas="b-enc2xs">enc2xs</primary>
140          </indexterm>
141        </listitem>
142      </varlistentry>
143
144      <varlistentry id="find2perl">
145        <term><command>find2perl</command></term>
146        <listitem>
147          <para>Translates <command>find</command> commands to Perl</para>
148          <indexterm zone="ch-system-perl find2perl">
149            <primary sortas="b-find2perl">find2perl</primary>
150          </indexterm>
151        </listitem>
152      </varlistentry>
153
154      <varlistentry id="h2ph">
155        <term><command>h2ph</command></term>
156        <listitem>
157          <para>Converts <filename class="extension">.h</filename> C header
158          files to <filename class="extension">.ph</filename> Perl header
159          files</para>
160          <indexterm zone="ch-system-perl h2ph">
161            <primary sortas="b-h2ph">h2ph</primary>
162          </indexterm>
163        </listitem>
164      </varlistentry>
165
166      <varlistentry id="h2xs">
167        <term><command>h2xs</command></term>
168        <listitem>
169          <para>Converts <filename class="extension">.h</filename> C header
170          files to Perl extensions</para>
171          <indexterm zone="ch-system-perl h2xs">
172            <primary sortas="b-h2xs">h2xs</primary>
173          </indexterm>
174        </listitem>
175      </varlistentry>
176
177      <varlistentry id="libnetcfg">
178        <term><command>libnetcfg</command></term>
179        <listitem>
180          <para>Can be used to configure the
181          <filename class="libraryfile">libnet</filename></para>
182          <indexterm zone="ch-system-perl libnetcfg">
183            <primary sortas="b-libnetcfg">libnetcfg</primary>
184          </indexterm>
185        </listitem>
186      </varlistentry>
187
188      <varlistentry id="instmodsh">
189        <term><command>instmodsh</command></term>
190        <listitem>
191          <para>A shell script for examining installed Perl modules,
192          and can even create a tarball from an installed module</para>
193          <indexterm zone="ch-system-perl instmodsh">
194            <primary sortas="b-instmodsh">instmodsh</primary>
195          </indexterm>
196        </listitem>
197      </varlistentry>
198
199      <varlistentry id="perl">
200        <term><command>perl</command></term>
201        <listitem>
202          <para>Combines some of the best features of C, <command>sed</command>,
203          <command>awk</command> and <command>sh</command> into a single
204          swiss-army-knife language</para>
205          <indexterm zone="ch-system-perl perl">
206            <primary sortas="b-perl">perl</primary>
207          </indexterm>
208        </listitem>
209      </varlistentry>
210
211      <varlistentry id="perl-version">
212        <term><command>perl&perl-version;</command></term>
213        <listitem>
214          <para>A hard link to <command>perl</command></para>
215          <indexterm zone="ch-system-perl perl-version">
216            <primary sortas="b-perl&perl-version;">perl&perl-version;</primary>
217          </indexterm>
218        </listitem>
219      </varlistentry>
220
221      <varlistentry id="perlbug">
222        <term><command>perlbug</command></term>
223        <listitem>
224          <para>Used to generate bug reports about Perl, or the modules that come
225          with it, and mail them</para>
226          <indexterm zone="ch-system-perl perlbug">
227            <primary sortas="b-perlbug">perlbug</primary>
228          </indexterm>
229        </listitem>
230      </varlistentry>
231
232      <varlistentry id="perlcc">
233        <term><command>perlcc</command></term>
234        <listitem>
235          <para>Generates executables from Perl programs</para>
236          <indexterm zone="ch-system-perl perlcc">
237            <primary sortas="b-perlcc">perlcc</primary>
238          </indexterm>
239        </listitem>
240      </varlistentry>
241
242      <varlistentry id="perldoc">
243        <term><command>perldoc</command></term>
244        <listitem>
245          <para>Displays a piece of documentation in pod format that is embedded
246          in the Perl installation tree or in a Perl script</para>
247          <indexterm zone="ch-system-perl perldoc">
248            <primary sortas="b-perldoc">perldoc</primary>
249          </indexterm>
250        </listitem>
251      </varlistentry>
252
253      <varlistentry id="perlivp">
254        <term><command>perlivp</command></term>
255        <listitem>
256          <para>The Perl Installation Verification Procedure; it can be used to
257          verify that Perl and its libraries have been installed
258          correctly</para>
259          <indexterm zone="ch-system-perl perlivp">
260            <primary sortas="b-perlivp">perlivp</primary>
261          </indexterm>
262        </listitem>
263      </varlistentry>
264
265      <varlistentry id="piconv">
266        <term><command>piconv</command></term>
267        <listitem>
268          <para>A Perl version of the character encoding converter
269          <command>iconv</command></para>
270          <indexterm zone="ch-system-perl piconv">
271            <primary sortas="b-piconv">piconv</primary>
272          </indexterm>
273        </listitem>
274      </varlistentry>
275
276      <varlistentry id="pl2pm">
277        <term><command>pl2pm</command></term>
278        <listitem>
279          <para>A rough tool for converting Perl4
280          <filename class="extension">.pl</filename> files to Perl5
281          <filename class="extension">.pm</filename> modules</para>
282          <indexterm zone="ch-system-perl pl2pm">
283            <primary sortas="b-pl2pm">pl2pm</primary>
284          </indexterm>
285        </listitem>
286      </varlistentry>
287
288      <varlistentry id="pod2html">
289        <term><command>pod2html</command></term>
290        <listitem>
291          <para>Converts files from pod format to HTML format</para>
292          <indexterm zone="ch-system-perl pod2html">
293            <primary sortas="b-pod2html">pod2html</primary>
294          </indexterm>
295        </listitem>
296      </varlistentry>
297
298      <varlistentry id="pod2latex">
299        <term><command>pod2latex</command></term>
300        <listitem>
301          <para>Converts files from pod format to LaTeX format</para>
302          <indexterm zone="ch-system-perl pod2latex">
303            <primary sortas="b-pod2latex">pod2latex</primary>
304          </indexterm>
305        </listitem>
306      </varlistentry>
307
308      <varlistentry id="pod2man">
309        <term><command>pod2man</command></term>
310        <listitem>
311          <para>Converts pod data to formatted *roff input</para>
312          <indexterm zone="ch-system-perl pod2man">
313            <primary sortas="b-pod2man">pod2man</primary>
314          </indexterm>
315        </listitem>
316      </varlistentry>
317
318      <varlistentry id="pod2text">
319        <term><command>pod2text</command></term>
320        <listitem>
321          <para>Converts pod data to formatted ASCII text</para>
322          <indexterm zone="ch-system-perl pod2text">
323            <primary sortas="b-pod2text">pod2text</primary>
324          </indexterm>
325        </listitem>
326      </varlistentry>
327
328      <varlistentry id="pod2usage">
329        <term><command>pod2usage</command></term>
330        <listitem>
331          <para>Prints usage messages from embedded pod docs in files</para>
332          <indexterm zone="ch-system-perl pod2usage">
333            <primary sortas="b-pod2usage">pod2usage</primary>
334          </indexterm>
335        </listitem>
336      </varlistentry>
337
338      <varlistentry id="podchecker">
339        <term><command>podchecker</command></term>
340        <listitem>
341          <para>Checks the syntax of pod format documentation files</para>
342          <indexterm zone="ch-system-perl podchecker">
343            <primary sortas="b-podchecker">podchecker</primary>
344          </indexterm>
345        </listitem>
346      </varlistentry>
347
348      <varlistentry id="podselect">
349        <term><command>podselect</command></term>
350        <listitem>
351          <para>Displays selected sections of pod documentation</para>
352          <indexterm zone="ch-system-perl podselect">
353            <primary sortas="b-podselect">podselect</primary>
354          </indexterm>
355        </listitem>
356      </varlistentry>
357
358      <varlistentry id="prove">
359        <term><command>prove</command></term>
360        <listitem>
361          <para>A command-line tool for running tests against Test::Harness</para>
362          <indexterm zone="ch-system-perl prove">
363            <primary sortas="b-prove">prove</primary>
364          </indexterm>
365        </listitem>
366      </varlistentry>
367
368      <varlistentry id="psed">
369        <term><command>psed</command></term>
370        <listitem>
371          <para>A Perl version of the stream editor <command>sed</command></para>
372          <indexterm zone="ch-system-perl psed">
373            <primary sortas="b-psed">psed</primary>
374          </indexterm>
375        </listitem>
376      </varlistentry>
377
378      <varlistentry id="pstruct">
379        <term><command>pstruct</command></term>
380        <listitem>
381          <para>Dumps C structures as generated from <command>cc -g -S</command>
382          stabs</para>
383          <indexterm zone="ch-system-perl pstruct">
384            <primary sortas="b-pstruct">pstruct</primary>
385          </indexterm>
386        </listitem>
387      </varlistentry>
388
389      <varlistentry id="s2p">
390        <term><command>s2p</command></term>
391        <listitem>
392          <para>Translates <command>sed</command> to Perl</para>
393          <indexterm zone="ch-system-perl s2p">
394            <primary sortas="b-s2p">s2p</primary>
395          </indexterm>
396        </listitem>
397      </varlistentry>
398
399      <varlistentry id="splain">
400        <term><command>splain</command></term>
401        <listitem>
402          <para>Is used to force verbose warning diagnostics in Perl</para>
403          <indexterm zone="ch-system-perl splain">
404            <primary sortas="b-splain">splain</primary>
405          </indexterm>
406        </listitem>
407      </varlistentry>
408
409      <varlistentry id="xsubpp">
410        <term><command>xsubpp</command></term>
411        <listitem>
412          <para>Converts Perl XS code into C code</para>
413          <indexterm zone="ch-system-perl xsubpp">
414            <primary sortas="b-xsubpp">xsubpp</primary>
415          </indexterm>
416        </listitem>
417      </varlistentry>
418
419    </variablelist>
420
421  </sect2>
422
423</sect1>
Note: See TracBrowser for help on using the repository browser.