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

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

Update Perl Sed.

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