r5397 - in branches/cross-lfs/BOOK: introduction/sparc64 temp-tools temp-tools/multilib

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Sun May 22 19:19:07 PDT 2005


Author: jhuntwork
Date: 2005-05-22 20:19:06 -0600 (Sun, 22 May 2005)
New Revision: 5397

Added:
   branches/cross-lfs/BOOK/temp-tools/multilib/perl-64bit.xml
   branches/cross-lfs/BOOK/temp-tools/multilib/perl.xml
Modified:
   branches/cross-lfs/BOOK/introduction/sparc64/changelog.xml
   branches/cross-lfs/BOOK/temp-tools/sparc64-chapter.xml
Log:
Added 64-bit perl install for temp-tools

Modified: branches/cross-lfs/BOOK/introduction/sparc64/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/sparc64/changelog.xml	2005-05-23 00:43:43 UTC (rev 5396)
+++ branches/cross-lfs/BOOK/introduction/sparc64/changelog.xml	2005-05-23 02:19:06 UTC (rev 5397)
@@ -50,6 +50,7 @@
 <itemizedlist>
 <listitem><para>May 22, 2005 [jhuntwork]</para>
 <itemizedlist>
+<listitem><para>Added 64-bit Perl install for temp-tools.</para></listitem>
 <listitem><para>Added 64-bit Expect install.</para></listitem>
 <listitem><para>Changed the way we enter chroot and added a 64-bit tcl install.</para></listitem>
 <listitem><para>Changed binutils install in temp-system to copy libiberty.h to /tools/include.</para></listitem>

Copied: branches/cross-lfs/BOOK/temp-tools/multilib/perl-64bit.xml (from rev 5393, branches/cross-lfs/BOOK/temp-tools/common/perl.xml)
===================================================================
--- branches/cross-lfs/BOOK/temp-tools/common/perl.xml	2005-05-22 22:02:29 UTC (rev 5393)
+++ branches/cross-lfs/BOOK/temp-tools/multilib/perl-64bit.xml	2005-05-23 02:19:06 UTC (rev 5397)
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../../patches.ent">
+  %general-entities;
+  %patches-entities;
+]>
+<sect1 id="ch-temp-tools-perl-64bit" role="wrap">
+<title>Perl-&perl-version; 64-Bit</title>
+<?dbhtml filename="perl64.html"?>
+
+<indexterm zone="ch-temp-tools-perl-64bit">
+<primary sortas="a-Perl-64bit">Perl 64-Bit</primary>
+<secondary>temporary system</secondary></indexterm>
+
+<sect2 role="package"><title/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/perl.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
+
+<segmentedlist>
+<segtitle>&buildtime;</segtitle>
+<segtitle>&diskspace;</segtitle>
+<seglistitem><seg>0.8 SBU</seg><seg>74 MB</seg></seglistitem>
+</segmentedlist>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/perl.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
+
+</sect2>
+
+<sect2 role="installation">
+<title>Installation of Perl</title>
+
+<para>First adapt some hard-wired paths to the C library by applying
+the following patch:</para>
+
+<screen><userinput>patch -Np1 -i ../perl-&perl-version;-libc-1.patch</userinput></screen>
+
+<para>Make sure perl looks at /tools/lib64 for shared libraries:</para>
+
+<screen><userinput>sed -i 's@\${prefix}/lib@\${prefix}/lib64 at g' hints/linux.sh</userinput></screen>
+
+<para>Prepare Perl for compilation (make sure to get the 'IO Fcntl POSIX'
+part of the command correct—they are all letters):</para>
+
+<screen><userinput>CC="gcc ${BUILD64}" ./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl POSIX'</userinput></screen>
+
+<para>The meaning of the configure option:</para>
+
+<variablelist>
+<varlistentry>
+<term><parameter>-Dstatic_ext='IO Fcntl POSIX'</parameter></term>
+<listitem><para>This tells Perl to build the minimum set of static
+extensions needed for installing and testing the Coreutils package in
+the next chapter.</para></listitem>
+</varlistentry>
+</variablelist>
+
+
+<para>Compile only the required tools:</para>
+
+<screen><userinput>make perl utilities</userinput></screen>
+
+<para>Although Perl comes with a test suite, it is not recommended to
+run it at this point. Only part of Perl was built and running
+<userinput>make test</userinput> now will cause the rest of Perl to be
+built as well, which is unnecessary at this point. The test suite can
+be run in the next chapter if desired.</para>
+
+<para>Copy these tools and their libraries:</para>
+
+<screen><userinput>cp perl pod/pod2man /tools/bin
+install -d /tools/libi64/perl5/&perl-version;
+cp -R lib/* /tools/lib64/perl5/&perl-version;</userinput></screen>
+
+</sect2>
+
+<sect2 role="content"><title/>
+<para>Details on this package are located in <xref
+linkend="contents-perl" role="."/></para>
+</sect2>
+
+</sect1>
+

Copied: branches/cross-lfs/BOOK/temp-tools/multilib/perl.xml (from rev 5393, branches/cross-lfs/BOOK/temp-tools/common/perl.xml)
===================================================================
--- branches/cross-lfs/BOOK/temp-tools/common/perl.xml	2005-05-22 22:02:29 UTC (rev 5393)
+++ branches/cross-lfs/BOOK/temp-tools/multilib/perl.xml	2005-05-23 02:19:06 UTC (rev 5397)
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../../patches.ent">
+  %general-entities;
+  %patches-entities;
+]>
+<sect1 id="ch-temp-tools-perl" role="wrap">
+<title>Perl-&perl-version;</title>
+<?dbhtml filename="perl.html"?>
+
+<indexterm zone="ch-temp-tools-perl">
+<primary sortas="a-Perl">Perl</primary>
+<secondary>temporary system</secondary></indexterm>
+
+<sect2 role="package"><title/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/perl.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
+
+<segmentedlist>
+<segtitle>&buildtime;</segtitle>
+<segtitle>&diskspace;</segtitle>
+<seglistitem><seg>0.8 SBU</seg><seg>74 MB</seg></seglistitem>
+</segmentedlist>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/perl.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
+
+</sect2>
+
+<sect2 role="installation">
+<title>Installation of Perl</title>
+
+<para>First adapt some hard-wired paths to the C library by applying
+the following patch:</para>
+
+<screen><userinput>patch -Np1 -i ../perl-&perl-version;-libc-1.patch</userinput></screen>
+
+<para>Prepare Perl for compilation (make sure to get the 'IO Fcntl POSIX'
+part of the command correct—they are all letters):</para>
+
+<screen><userinput>CC="gcc ${BUILD32}" ./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl POSIX'</userinput></screen>
+
+<para>The meaning of the configure option:</para>
+
+<variablelist>
+<varlistentry>
+<term><parameter>-Dstatic_ext='IO Fcntl POSIX'</parameter></term>
+<listitem><para>This tells Perl to build the minimum set of static
+extensions needed for installing and testing the Coreutils package in
+the next chapter.</para></listitem>
+</varlistentry>
+</variablelist>
+
+
+<para>Compile only the required tools:</para>
+
+<screen><userinput>make perl utilities</userinput></screen>
+
+<para>Although Perl comes with a test suite, it is not recommended to
+run it at this point. Only part of Perl was built and running
+<userinput>make test</userinput> now will cause the rest of Perl to be
+built as well, which is unnecessary at this point. The test suite can
+be run in the next chapter if desired.</para>
+
+<para>Copy these tools and their libraries:</para>
+
+<screen><userinput>install -d /tools/lib/perl5/&perl-version;
+cp -R lib/* /tools/lib/perl5/&perl-version;</userinput></screen>
+
+</sect2>
+
+<sect2 role="content"><title/>
+<para>Details on this package are located in <xref
+linkend="contents-perl" role="."/></para>
+</sect2>
+
+</sect1>
+

Modified: branches/cross-lfs/BOOK/temp-tools/sparc64-chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/temp-tools/sparc64-chapter.xml	2005-05-23 00:43:43 UTC (rev 5396)
+++ branches/cross-lfs/BOOK/temp-tools/sparc64-chapter.xml	2005-05-23 02:19:06 UTC (rev 5397)
@@ -14,6 +14,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/expect.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/expect-64bit.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/dejagnu.xml"/>
-<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/perl.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/perl.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/perl-64bit.xml"/>
 
 </chapter>




More information about the lfs-book mailing list