| [93ad1c75] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> | 
|---|
|  | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" | 
|---|
|  | 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ | 
|---|
|  | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent"> | 
|---|
|  | 5 | %general-entities; | 
|---|
|  | 6 | ]> | 
|---|
|  | 7 |  | 
|---|
|  | 8 | <sect1 id="ch-system-temp-perl" role="wrap"> | 
|---|
|  | 9 | <?dbhtml filename="temp-perl.html"?> | 
|---|
|  | 10 |  | 
|---|
|  | 11 | <title>Temporary Perl-&perl-version;</title> | 
|---|
|  | 12 |  | 
|---|
|  | 13 | <indexterm zone="ch-system-temp-perl"> | 
|---|
|  | 14 | <primary sortas="a-Perl">Perl</primary> | 
|---|
|  | 15 | <secondary>temporary tools</secondary> | 
|---|
|  | 16 | </indexterm> | 
|---|
|  | 17 |  | 
|---|
|  | 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 19 | href="../../final-system/common/perl.xml" | 
|---|
|  | 20 | xpointer="xpointer(//*[@role='package'])"/> | 
|---|
|  | 21 |  | 
|---|
|  | 22 | <sect2 role="installation"> | 
|---|
|  | 23 | <title>Installation of Perl</title> | 
|---|
|  | 24 |  | 
|---|
|  | 25 | <para os="a">First adapt some hard-wired paths to the C library by applying | 
|---|
|  | 26 | the following patch:</para> | 
|---|
|  | 27 |  | 
|---|
|  | 28 | <screen os="b"><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen> | 
|---|
|  | 29 |  | 
|---|
| [e1beb751] | 30 | <para os="c">Prepare Perl for compilation (make sure to get the 'Data/Dumper | 
|---|
|  | 31 | Fcntl IO POSIX' part of the command correct—they are all | 
|---|
|  | 32 | letters):</para> | 
|---|
| [93ad1c75] | 33 |  | 
|---|
| [7cc2095] | 34 | <screen os="d"><userinput>./configure.gnu --prefix=/tools \ | 
|---|
|  | 35 | -Dstatic_ext='Data/Dumper IO Fcntl POSIX' -Dcc="gcc"</userinput></screen> | 
|---|
| [e1beb751] | 36 |  | 
|---|
|  | 37 | <variablelist os="e"> | 
|---|
| [93ad1c75] | 38 | <title>The meaning of the configure option:</title> | 
|---|
|  | 39 |  | 
|---|
|  | 40 | <varlistentry> | 
|---|
|  | 41 | <term><parameter>-Dstatic_ext='Data/Dumper IO Fcntl POSIX'</parameter></term> | 
|---|
|  | 42 | <listitem> | 
|---|
|  | 43 | <para>This tells Perl to build the minimum set of static | 
|---|
| [653eb3f] | 44 | extensions needed for installing and testing the Glibc and | 
|---|
|  | 45 | Coreutils packages later in this chapter.</para> | 
|---|
| [93ad1c75] | 46 | </listitem> | 
|---|
|  | 47 | </varlistentry> | 
|---|
|  | 48 |  | 
|---|
|  | 49 | </variablelist> | 
|---|
|  | 50 |  | 
|---|
| [e1beb751] | 51 | <para os="f">Now we are ready to make our perl utilities:</para> | 
|---|
| [93ad1c75] | 52 |  | 
|---|
| [e1beb751] | 53 | <screen os="g"><userinput>make perl utilities</userinput></screen> | 
|---|
| [93ad1c75] | 54 |  | 
|---|
| [9f5bc2cc] | 55 | <para os="h">Although Perl comes with a test suite, it is not recommended | 
|---|
|  | 56 | to run it at this point. Only part of Perl was built and running | 
|---|
|  | 57 | <command>make test</command> now will cause the rest of Perl to be built | 
|---|
|  | 58 | as well, which is unnecessary at this point. The test suite can be run | 
|---|
|  | 59 | later in this chapter if desired.</para> | 
|---|
| [93ad1c75] | 60 |  | 
|---|
| [9f5bc2cc] | 61 | <para os="i">Install these tools and their libraries:</para> | 
|---|
|  | 62 |  | 
|---|
|  | 63 | <screen os="j"><userinput>cp -v perl pod/pod2man /tools/bin | 
|---|
| [dd9906e] | 64 | install -dv /tools/lib/perl5/&perl-version; | 
|---|
|  | 65 | cp -Rv lib/* /tools/lib/perl5/&perl-version;</userinput></screen> | 
|---|
| [93ad1c75] | 66 |  | 
|---|
| [9f5bc2cc] | 67 | <para os="k">Finally, create a necessary symlink:</para> | 
|---|
| [62c1c5dd] | 68 |  | 
|---|
| [9f5bc2cc] | 69 | <screen os="l"><userinput>ln -sv /tools/bin/perl /usr/bin</userinput></screen> | 
|---|
| [62c1c5dd] | 70 |  | 
|---|
| [93ad1c75] | 71 | </sect2> | 
|---|
|  | 72 |  | 
|---|
|  | 73 | <sect2 role="content"> | 
|---|
|  | 74 | <title/> | 
|---|
|  | 75 |  | 
|---|
|  | 76 | <para>Details on this package are located in <xref | 
|---|
|  | 77 | linkend="contents-perl" role="."/></para> | 
|---|
|  | 78 |  | 
|---|
|  | 79 | </sect2> | 
|---|
|  | 80 |  | 
|---|
|  | 81 | </sect1> | 
|---|