Changeset 7b82580
- Timestamp:
- 01/22/2006 12:20:02 PM (18 years ago)
- Branches:
- 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.3, 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
- Children:
- b28fd35
- Parents:
- e1d5f7b
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/introduction.xml
re1d5f7b r7b82580 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-introduction"> 7 <title>Introduction</title> 8 <?dbhtml filename="introduction.html"?> 9 <?dbhtml filename="introduction.html"?> 9 10 10 <para>This chapter shows how to compile and install a minimal Linux 11 system. This system will contain just enough tools to start 12 constructing the final LFS system in <xref 13 linkend="chapter-building-system"/> and allow a working environment 14 with more user convenience than a minimum environment would.</para> 11 <title>Introduction</title> 15 12 16 <para>There are two steps in building this minimal system. The first 17 step is to build a new and host-independent toolchain (compiler, 18 assembler, linker, libraries, and a few useful utilities). The second 19 step uses this toolchain to build the other essential tools.</para>13 <para>This chapter shows how to compile and install a minimal Linux system. 14 This system will contain just enough tools to start constructing the final 15 LFS system in <xref linkend="chapter-building-system"/> and allow a working 16 environment with more user convenience than a minimum environment would.</para> 20 17 21 <para>The files compiled in this chapter will be installed under the 22 <filename class="directory">$LFS/tools</filename> directory to keep 23 them separate from the files installed in the next chapter and the 24 host production directories. Since the packages compiled here are 25 temporary, we do not want them to pollute the soon-to-be LFS 26 system.</para> 18 <para>There are two steps in building this minimal system. The first step 19 is to build a new and host-independent toolchain (compiler, assembler, 20 linker, libraries, and a few useful utilities). The second step uses this 21 toolchain to build the other essential tools.</para> 27 22 28 <important><para>Before issuing the build instructions for a package, the package 29 should be unpacked as user <emphasis>lfs</emphasis>, and a 30 <command>cd</command> into the created directory should be performed. The build 31 instructions assume that the <command>bash</command> shell is in use.</para></important> 23 <para>The files compiled in this chapter will be installed under the 24 <filename class="directory">$LFS/tools</filename> directory to keep them 25 separate from the files installed in the next chapter and the host 26 production directories. Since the packages compiled here are temporary, 27 we do not want them to pollute the soon-to-be LFS system.</para> 32 28 33 <para>Several of the packages are patched before compilation, but only 34 when the patch is needed to circumvent a problem. A patch is often 35 needed in both this and the next chapter, but sometimes in only one or 36 the other. Therefore, do not be concerned if instructions for a downloaded 37 patch seem to be missing. Warning messages about 38 <emphasis>offset</emphasis> or <emphasis>fuzz</emphasis> may 39 also be encountered when applying a patch. Do not worry about these 40 warnings, as the patch was still successfully applied.</para> 29 <important> 30 <para>Before issuing the build instructions for a package, the package 31 should be unpacked as user <systemitem class="username">lfs</systemitem>, 32 and a <command>cd</command> into the created directory should be performed. 33 The build instructions assume that the <command>bash</command> shell is 34 in use.</para> 35 </important> 41 36 42 <para>During the compilation of most packages, there will be several 43 warnings that scroll by on the screen. These are normal and can safely 44 be ignored. These warnings are as they appear—warnings about 45 deprecated, but not invalid, use of the C or C++ syntax. C standards 46 change fairly often, and some packages still use the older standard. 47 This is not a problem, but does prompt the warning.</para> 37 <para>Several of the packages are patched before compilation, but only when 38 the patch is needed to circumvent a problem. A patch is often needed in both 39 this and the next chapter, but sometimes in only one or the other. Therefore, 40 do not be concerned if instructions for a downloaded patch seem to be missing. 41 Warning messages about <emphasis>offset</emphasis> or <emphasis>fuzz</emphasis> 42 may also be encountered when applying a patch. Do not worry about these 43 warnings, as the patch was still successfully applied.</para> 48 44 49 <important><para>After installing each package, delete its source and build 50 directories, unless specifically instructed otherwise. Deleting the 51 sources prevents mis-configuration when the same package is reinstalled later. 52 Only three of the packages need to retain the source and build directories in 53 order for their contents to be used by later commands. Pay special attention to 54 these reminders.</para></important>45 <para>During the compilation of most packages, there will be several warnings 46 that scroll by on the screen. These are normal and can safely be ignored. 47 These warnings are as they appear—warnings about deprecated, but not 48 invalid, use of the C or C++ syntax. C standards change fairly often, and 49 some packages still use the older standard. This is not a problem, but does 50 prompt the warning.</para> 55 51 56 <para>Check one last time that the <envar>LFS</envar> environment 57 variable is set up properly:</para> 52 <important> 53 <para>After installing each package, delete its source and build directories, 54 unless specifically instructed otherwise. Deleting the sources prevents 55 mis-configuration when the same package is reinstalled later. Only three 56 of the packages need to retain the source and build directories in order 57 for their contents to be used by later commands. Pay special attention to 58 these reminders.</para> 59 </important> 60 61 <para>Check one last time that the <envar>LFS</envar> environment 62 variable is set up properly:</para> 58 63 59 64 <screen role="nodump"><userinput>echo $LFS</userinput></screen> 60 65 61 <para>Make sure the output shows the path to the LFS partition's mount62 point, which is <filename class="directory">/mnt/lfs</filename>, using63 our example.</para>66 <para>Make sure the output shows the path to the LFS partition's mount 67 point, which is <filename class="directory">/mnt/lfs</filename>, using 68 our example.</para> 64 69 65 70 </sect1> 66 -
chapter05/linux-libc-headers.xml
re1d5f7b r7b82580 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-linux-libc-headers" role="wrap"> 7 <title>Linux-Libc-Headers-&linux-libc-headers-version;</title> 8 <?dbhtml filename="linux-libc-headers.html"?> 9 <?dbhtml filename="linux-libc-headers.html"?> 9 10 10 <indexterm zone="ch-tools-linux-libc-headers"> 11 <primary sortas="a-Linux-Libc-Headers">Linux-Libc-Headers</primary> 12 <secondary>tools, headers</secondary></indexterm> 11 <title>Linux-Libc-Headers-&linux-libc-headers-version;</title> 13 12 14 <sect2 role="package"><title/>15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 16 href="../chapter06/linux-libc-headers.xml" 17 xpointer="xpointer(/sect1/sect2[1]/para[1])"/>13 <indexterm zone="ch-tools-linux-libc-headers"> 14 <primary sortas="a-Linux-Libc-Headers">Linux-Libc-Headers</primary> 15 <secondary>tools, headers</secondary> 16 </indexterm> 18 17 19 <segmentedlist> 20 <segtitle>&buildtime;</segtitle> 21 <segtitle>&diskspace;</segtitle> 22 <seglistitem><seg>0.1 SBU</seg><seg>26.9 MB</seg></seglistitem> 23 </segmentedlist> 18 <sect2 role="package"> 19 <title/> 24 20 25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 26 href="../chapter06/linux-libc-headers.xml" 27 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../chapter06/linux-libc-headers.xml" 23 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 24 25 <segmentedlist> 26 <segtitle>&buildtime;</segtitle> 27 <segtitle>&diskspace;</segtitle> 28 29 <seglistitem> 30 <seg>0.1 SBU</seg> 31 <seg>26.9 MB</seg> 32 </seglistitem> 33 </segmentedlist> 34 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../chapter06/linux-libc-headers.xml" 37 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 28 38 29 39 30 </sect2>40 </sect2> 31 41 32 <sect2 role="installation">33 <title>Installation of Linux-Libc-Headers</title>42 <sect2 role="installation"> 43 <title>Installation of Linux-Libc-Headers</title> 34 44 35 <para>For years it has been common practice to use <quote>raw</quote> kernel 36 headers (straight from a kernel tarball) in <filename37 class="directory">/usr/include</filename>, but over the 38 last few years, the kernel developers have taken a strong stance that39 this should not be done. This gave birth to the Linux-Libc-Headers40 Project, which was designed to maintain an Application Programming 41 Interface (API) stableversion of the Linux headers.</para>45 <para>For years it has been common practice to use <quote>raw</quote> 46 kernel headers (straight from a kernel tarball) in <filename 47 class="directory">/usr/include</filename>, but over the last few years, 48 the kernel developers have taken a strong stance that this should not 49 be done. This gave birth to the Linux-Libc-Headers Project, which was 50 designed to maintain an Application Programming Interface (API) stable 51 version of the Linux headers.</para> 42 52 43 <para>Install the header files:</para>53 <para>Install the header files:</para> 44 54 45 55 <screen><userinput>cp -Rv include/asm-i386 /tools/include/asm 46 56 cp -Rv include/linux /tools/include</userinput></screen> 47 57 48 <para>If your architecture is not i386 (compatible), adjust the first command49 accordingly.</para>58 <para>If your architecture is not i386 (compatible), adjust the first command 59 accordingly.</para> 50 60 51 </sect2>61 </sect2> 52 62 53 <sect2 role="content"><title/> 54 <para>Details on this package are located in <xref 55 linkend="contents-linux-libc-headers" role="."/></para> 56 </sect2> 63 <sect2 role="content"> 64 <title/> 65 66 <para>Details on this package are located in 67 <xref linkend="contents-linux-libc-headers" role="."/></para> 68 69 </sect2> 57 70 58 71 </sect1> 59 -
chapter05/m4.xml
re1d5f7b r7b82580 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-m4" role="wrap"> 7 <title>M4-&m4-version;</title> 8 <?dbhtml filename="m4.html"?> 9 <?dbhtml filename="m4.html"?> 9 10 10 <indexterm zone="ch-tools-m4"> 11 <primary sortas="a-M4">M4</primary> 12 <secondary>tools</secondary></indexterm> 11 <title>M4-&m4-version;</title> 13 12 14 <sect2 role="package"><title/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/m4.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 13 <indexterm zone="ch-tools-m4"> 14 <primary sortas="a-M4">M4</primary> 15 <secondary>tools</secondary> 16 </indexterm> 16 17 17 <segmentedlist> 18 <segtitle>&buildtime;</segtitle> 19 <segtitle>&diskspace;</segtitle> 20 <seglistitem><seg>0.1 SBU</seg><seg>2.8 MB</seg></seglistitem> 21 </segmentedlist> 18 <sect2 role="package"> 19 <title/> 22 20 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/m4.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../chapter06/m4.xml" 23 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 24 24 25 </sect2> 25 <segmentedlist> 26 <segtitle>&buildtime;</segtitle> 27 <segtitle>&diskspace;</segtitle> 26 28 27 <sect2 role="installation"> 28 <title>Installation of M4</title> 29 <seglistitem> 30 <seg>0.1 SBU</seg> 31 <seg>2.8 MB</seg> 32 </seglistitem> 33 </segmentedlist> 29 34 30 <para>Prepare M4 for compilation:</para> 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../chapter06/m4.xml" 37 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 38 39 </sect2> 40 41 <sect2 role="installation"> 42 <title>Installation of M4</title> 43 44 <para>Prepare M4 for compilation:</para> 31 45 32 46 <screen><userinput>./configure --prefix=/tools</userinput></screen> 33 47 34 <para>Compile the package:</para>48 <para>Compile the package:</para> 35 49 36 50 <screen><userinput>make</userinput></screen> 37 51 38 <para>To test the results, issue: <userinput>make check</userinput>.</para> 52 <para>To test the results, issue: 53 <userinput>make check</userinput>.</para> 39 54 40 <para>Install the package:</para>55 <para>Install the package:</para> 41 56 42 57 <screen><userinput>make install</userinput></screen> 43 58 44 </sect2>59 </sect2> 45 60 46 <sect2 role="content"><title/> 47 <para>Details on this package are located in <xref 48 linkend="contents-m4" role="."/></para> 49 </sect2> 61 <sect2 role="content"> 62 <title/> 63 64 <para>Details on this package are located in 65 <xref linkend="contents-m4" role="."/></para> 66 67 </sect2> 50 68 51 69 </sect1> 52 -
chapter05/make.xml
re1d5f7b r7b82580 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 6 7 <sect1 id="ch-tools-make" role="wrap"> 7 <title>Make-&make-version;</title> 8 <?dbhtml filename="make.html"?> 8 <?dbhtml filename="make.html"?> 9 9 10 <indexterm zone="ch-tools-make"> 11 <primary sortas="a-Make">Make</primary> 12 <secondary>tools</secondary></indexterm> 10 <title>Make-&make-version;</title> 13 11 14 <sect2 role="package"><title/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/make.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 12 <indexterm zone="ch-tools-make"> 13 <primary sortas="a-Make">Make</primary> 14 <secondary>tools</secondary> 15 </indexterm> 16 16 17 <segmentedlist> 18 <segtitle>&buildtime;</segtitle> 19 <segtitle>&diskspace;</segtitle> 20 <seglistitem><seg>0.2 SBU</seg><seg>7.1 MB</seg></seglistitem> 21 </segmentedlist> 17 <sect2 role="package"> 18 <title/> 22 19 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/make.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 21 href="../chapter06/make.xml" 22 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 24 23 25 </sect2> 24 <segmentedlist> 25 <segtitle>&buildtime;</segtitle> 26 <segtitle>&diskspace;</segtitle> 26 27 27 <sect2 role="installation"> 28 <title>Installation of Make</title> 28 <seglistitem> 29 <seg>0.2 SBU</seg> 30 <seg>7.1 MB</seg> 31 </seglistitem> 32 </segmentedlist> 29 33 30 <para>Prepare Make for compilation:</para> 34 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 35 href="../chapter06/make.xml" 36 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 37 38 </sect2> 39 40 <sect2 role="installation"> 41 <title>Installation of Make</title> 42 43 <para>Prepare Make for compilation:</para> 31 44 32 45 <screen><userinput>./configure --prefix=/tools</userinput></screen> 33 46 34 <para>Compile the package:</para>47 <para>Compile the package:</para> 35 48 36 49 <screen><userinput>make</userinput></screen> 37 50 38 <para>To test the results, issue: <userinput>make check</userinput>.</para> 51 <para>To test the results, issue: 52 <userinput>make check</userinput>.</para> 39 53 40 <para>Install the package:</para>54 <para>Install the package:</para> 41 55 42 56 <screen><userinput>make install</userinput></screen> 43 57 44 </sect2>58 </sect2> 45 59 46 <sect2 role="content"><title/> 47 <para>Details on this package are located in <xref 48 linkend="contents-make" role="."/></para> 49 </sect2> 60 <sect2 role="content"> 61 <title/> 62 63 <para>Details on this package are located in 64 <xref linkend="contents-make" role="."/></para> 65 66 </sect2> 50 67 51 68 </sect1> 52 -
chapter05/ncurses.xml
re1d5f7b r7b82580 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-ncurses" role="wrap"> 7 <title>Ncurses-&ncurses-version;</title> 8 <?dbhtml filename="ncurses.html"?> 9 <?dbhtml filename="ncurses.html"?> 9 10 10 <indexterm zone="ch-tools-ncurses"> 11 <primary sortas="a-Ncurses">Ncurses</primary> 12 <secondary>tools</secondary></indexterm> 11 <title>Ncurses-&ncurses-version;</title> 13 12 14 <sect2 role="package"><title/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/ncurses.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 13 <indexterm zone="ch-tools-ncurses"> 14 <primary sortas="a-Ncurses">Ncurses</primary> 15 <secondary>tools</secondary> 16 </indexterm> 16 17 17 <segmentedlist> 18 <segtitle>&buildtime;</segtitle> 19 <segtitle>&diskspace;</segtitle> 20 <seglistitem><seg>0.7 SBU</seg><seg>27.5 MB</seg></seglistitem> 21 </segmentedlist> 18 <sect2 role="package"> 19 <title/> 22 20 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/ncurses.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../chapter06/ncurses.xml" 23 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 24 24 25 </sect2> 25 <segmentedlist> 26 <segtitle>&buildtime;</segtitle> 27 <segtitle>&diskspace;</segtitle> 26 28 27 <sect2 role="installation"> 28 <title>Installation of Ncurses</title> 29 <seglistitem> 30 <seg>0.7 SBU</seg> 31 <seg>27.5 MB</seg> 32 </seglistitem> 33 </segmentedlist> 29 34 30 <para>Prepare Ncurses for compilation:</para> 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../chapter06/ncurses.xml" 37 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 38 39 </sect2> 40 41 <sect2 role="installation"> 42 <title>Installation of Ncurses</title> 43 44 <para>Prepare Ncurses for compilation:</para> 31 45 32 46 <screen><userinput>./configure --prefix=/tools --with-shared \ 33 47 --without-debug --without-ada --enable-overwrite</userinput></screen> 34 48 35 <para>The meaning of the configure options:</para> 49 <variablelist> 50 <title>The meaning of the configure options:</title> 36 51 37 <variablelist> 38 <varlistentry> 39 <term><parameter>--without-ada</parameter></term> 40 <listitem><para>This ensures that Ncurses does not build support for the Ada 41 compiler which may be present on the host but will not be available once we 42 enter the <command>chroot</command> environment.</para></listitem> 43 </varlistentry> 52 <varlistentry> 53 <term><parameter>--without-ada</parameter></term> 54 <listitem> 55 <para>This ensures that Ncurses does not build support for the Ada 56 compiler which may be present on the host but will not be available 57 once we enter the <command>chroot</command> environment.</para> 58 </listitem> 59 </varlistentry> 44 60 45 <varlistentry> 46 <term><parameter>--enable-overwrite</parameter></term> 47 <listitem><para>This tells Ncurses to install its header files into 48 <filename class="directory">/tools/include</filename>, instead of 49 <filename class="directory">/tools/include/ncurses</filename>, to 50 ensure that other packages can find the Ncurses headers 51 successfully.</para></listitem> 52 </varlistentry> 53 </variablelist> 61 <varlistentry> 62 <term><parameter>--enable-overwrite</parameter></term> 63 <listitem> 64 <para>This tells Ncurses to install its header files into 65 <filename class="directory">/tools/include</filename>, instead of 66 <filename class="directory">/tools/include/ncurses</filename>, to 67 ensure that other packages can find the Ncurses headers 68 successfully.</para> 69 </listitem> 70 </varlistentry> 54 71 55 <para>Compile the package:</para> 72 </variablelist> 73 74 <para>Compile the package:</para> 56 75 57 76 <screen><userinput>make</userinput></screen> 58 77 59 <para>This package does not come with a test suite.</para>78 <para>This package does not come with a test suite.</para> 60 79 61 <para>Install the package:</para>80 <para>Install the package:</para> 62 81 63 82 <screen><userinput>make install</userinput></screen> 64 83 65 </sect2>84 </sect2> 66 85 67 <sect2 role="content"><title/> 68 <para>Details on this package are located in <xref 69 linkend="contents-ncurses" role="."/></para> 70 </sect2> 86 <sect2 role="content"> 87 <title/> 88 89 <para>Details on this package are located in 90 <xref linkend="contents-ncurses" role="."/></para> 91 92 </sect2> 71 93 72 94 </sect1> 73 -
chapter05/patch.xml
re1d5f7b r7b82580 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-patch" role="wrap"> 7 <title>Patch-&patch-version;</title> 8 <?dbhtml filename="patch.html"?> 9 <?dbhtml filename="patch.html"?> 9 10 10 <indexterm zone="ch-tools-patch"> 11 <primary sortas="a-Patch">Patch</primary> 12 <secondary>tools</secondary></indexterm> 11 <title>Patch-&patch-version;</title> 13 12 14 <sect2 role="package"><title/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/patch.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 13 <indexterm zone="ch-tools-patch"> 14 <primary sortas="a-Patch">Patch</primary> 15 <secondary>tools</secondary> 16 </indexterm> 16 17 17 <segmentedlist> 18 <segtitle>&buildtime;</segtitle> 19 <segtitle>&diskspace;</segtitle> 20 <seglistitem><seg>0.1 SBU</seg><seg>1.5 MB</seg></seglistitem> 21 </segmentedlist> 18 <sect2 role="package"> 19 <title/> 22 20 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/patch.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../chapter06/patch.xml" 23 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 24 24 25 </sect2> 25 <segmentedlist> 26 <segtitle>&buildtime;</segtitle> 27 <segtitle>&diskspace;</segtitle> 26 28 27 <sect2 role="installation"> 28 <title>Installation of Patch</title> 29 <seglistitem> 30 <seg>0.1 SBU</seg> 31 <seg>1.5 MB</seg> 32 </seglistitem> 33 </segmentedlist> 29 34 30 <para>Prepare Patch for compilation:</para> 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../chapter06/patch.xml" 37 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 38 39 </sect2> 40 41 <sect2 role="installation"> 42 <title>Installation of Patch</title> 43 44 <para>Prepare Patch for compilation:</para> 31 45 32 46 <screen><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/tools</userinput></screen> 33 47 34 <para>The preprocessor flag <parameter>-D_GNU_SOURCE</parameter> is35 only needed on the PowerPC platform. It can be left out on other36 architectures.</para>48 <para>The preprocessor flag <parameter>-D_GNU_SOURCE</parameter> is 49 only needed on the PowerPC platform. It can be left out on other 50 architectures.</para> 37 51 38 <para>Compile the package:</para>52 <para>Compile the package:</para> 39 53 40 54 <screen><userinput>make</userinput></screen> 41 55 42 <para>This package does not come with a test suite.</para>56 <para>This package does not come with a test suite.</para> 43 57 44 <para>Install the package:</para>58 <para>Install the package:</para> 45 59 46 60 <screen><userinput>make install</userinput></screen> 47 61 48 </sect2>62 </sect2> 49 63 50 <sect2 role="content"><title/> 51 <para>Details on this package are located in <xref 52 linkend="contents-patch" role="."/></para> 53 </sect2> 64 <sect2 role="content"> 65 <title/> 66 67 <para>Details on this package are located in 68 <xref linkend="contents-patch" role="."/></para> 69 70 </sect2> 54 71 55 72 </sect1> 56 -
chapter05/perl.xml
re1d5f7b r7b82580 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-tools-perl" role="wrap"> 7 <title>Perl-&perl-version;</title> 8 <?dbhtml filename="perl.html"?> 9 <?dbhtml filename="perl.html"?> 9 10 10 <indexterm zone="ch-tools-perl"> 11 <primary sortas="a-Perl">Perl</primary> 12 <secondary>tools</secondary></indexterm> 11 <title>Perl-&perl-version;</title> 13 12 14 <sect2 role="package"><title/> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/perl.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 13 <indexterm zone="ch-tools-perl"> 14 <primary sortas="a-Perl">Perl</primary> 15 <secondary>tools</secondary> 16 </indexterm> 16 17 17 <segmentedlist> 18 <segtitle>&buildtime;</segtitle> 19 <segtitle>&diskspace;</segtitle> 20 <seglistitem><seg>0.8 SBU</seg><seg>79.8 MB</seg></seglistitem> 21 </segmentedlist> 18 <sect2 role="package"> 19 <title/> 22 20 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/perl.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../chapter06/perl.xml" 23 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 24 24 25 </sect2> 25 <segmentedlist> 26 <segtitle>&buildtime;</segtitle> 27 <segtitle>&diskspace;</segtitle> 26 28 27 <sect2 role="installation"> 28 <title>Installation of Perl</title> 29 <seglistitem> 30 <seg>0.8 SBU</seg> 31 <seg>79.8 MB</seg> 32 </seglistitem> 33 </segmentedlist> 29 34 30 <para>First adapt some hard-wired paths to the C library by applying 31 the following patch:</para> 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../chapter06/perl.xml" 37 xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> 38 39 </sect2> 40 41 <sect2 role="installation"> 42 <title>Installation of Perl</title> 43 44 <para>First adapt some hard-wired paths to the C library by applying 45 the following patch:</para> 32 46 33 47 <screen><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen> 34 48 35 <para>Prepare Perl for compilation (make sure to get the36 'Data/Dumper Fcntl IO POSIX' part of the command correct—they are all37 letters):</para>49 <para>Prepare Perl for compilation (make sure to get the 50 'Data/Dumper Fcntl IO POSIX' part of the command correct—they are all 51 letters):</para> 38 52 39 53 <screen><userinput>./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper Fcntl IO POSIX'</userinput></screen> 40 54 41 <para>The meaning of the configure options:</para> 55 <variablelist> 56 <title>The meaning of the configure options:</title> 42 57 43 <variablelist>44 <varlistentry>45 <term><parameter>-Dstatic_ext='Data/Dumper Fcntl IO POSIX'</parameter></term>46 <listitem><para>This tells Perl to build the minimum set of static 47 extensions needed for installing and testing the Coreutils package in 48 the next chapter.</para></listitem>49 </varlistentry>50 </variablelist>58 <varlistentry> 59 <term><parameter>-Dstatic_ext='Data/Dumper Fcntl IO POSIX'</parameter></term> 60 <listitem> 61 <para>This tells Perl to build the minimum set of static extensions 62 needed for installing and testing the Coreutils package in the next 63 chapter.</para> 64 </listitem> 65 </varlistentry> 51 66 52 <para>Only a few of the utilities contained in this package need to be 53 built:</para> 67 </variablelist> 68 69 <para>Only a few of the utilities contained in this package need to be 70 built:</para> 54 71 55 72 <screen><userinput>make perl utilities</userinput></screen> 56 73 57 <para>Although Perl comes with a test suite, it is not recommended to58 run it at this point. Only part of Perl was built and running59 <userinput>make test</userinput> now will cause the rest of Perl to be60 built as well, which is unnecessary at this point. The test suite can61 be run in the next chapter if desired.</para>74 <para>Although Perl comes with a test suite, it is not recommended to 75 run it at this point. Only part of Perl was built and running 76 <userinput>make test</userinput> now will cause the rest of Perl to be 77 built as well, which is unnecessary at this point. The test suite can 78 be run in the next chapter if desired.</para> 62 79 63 <para>Install these tools and their libraries:</para>80 <para>Install these tools and their libraries:</para> 64 81 65 82 <screen><userinput>cp -v perl pod/pod2man /tools/bin … … 67 84 cp -Rv lib/* /tools/lib/perl5/&perl-version;</userinput></screen> 68 85 69 </sect2>86 </sect2> 70 87 71 <sect2 role="content"><title/> 72 <para>Details on this package are located in <xref 73 linkend="contents-perl" role="."/></para> 74 </sect2> 88 <sect2 role="content"> 89 <title/> 90 91 <para>Details on this package are located in 92 <xref linkend="contents-perl" role="."/></para> 93 94 </sect2> 75 95 76 96 </sect1> 77 -
general.ent
re1d5f7b r7b82580 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!ENTITY version "SVN-2006012 0">3 <!ENTITY releasedate "January 2 0, 2006">2 <!ENTITY version "SVN-20060122"> 3 <!ENTITY releasedate "January 22, 2006"> 4 4 <!ENTITY milestone "6.2"> 5 5 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
Note:
See TracChangeset
for help on using the changeset viewer.