[3c63868] | 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-tools-generalinstructions">
|
---|
| 9 | <?dbhtml filename="generalinstructions.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>General Compilation Instructions</title>
|
---|
| 12 |
|
---|
| 13 | <para>When building packages there are several assumptions made within
|
---|
| 14 | the instructions:</para>
|
---|
| 15 |
|
---|
| 16 | <itemizedlist>
|
---|
| 17 |
|
---|
| 18 | <listitem>
|
---|
| 19 | <para>Several of the packages are patched before compilation, but only when
|
---|
| 20 | the patch is needed to circumvent a problem. A patch is often needed in
|
---|
| 21 | both this and the next chapter, but sometimes in only one or the other.
|
---|
| 22 | Therefore, do not be concerned if instructions for a downloaded patch seem
|
---|
| 23 | to be missing. Warning messages about <emphasis>offset</emphasis> or
|
---|
| 24 | <emphasis>fuzz</emphasis> may also be encountered when applying a patch. Do
|
---|
| 25 | not worry about these warnings, as the patch was still successfully
|
---|
| 26 | applied.</para>
|
---|
| 27 | </listitem>
|
---|
| 28 |
|
---|
| 29 | <listitem>
|
---|
| 30 | <para>During the compilation of most packages, there will be several
|
---|
| 31 | warnings that scroll by on the screen. These are normal and can safely be
|
---|
| 32 | ignored. These warnings are as they appear—warnings about
|
---|
| 33 | deprecated, but not invalid, use of the C or C++ syntax. C standards change
|
---|
| 34 | fairly often, and some packages still use the older standard. This is not a
|
---|
| 35 | problem, but does prompt the warning.</para>
|
---|
| 36 | </listitem>
|
---|
| 37 |
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Check one last time that the <envar>LFS</envar> environment variable
|
---|
| 40 | is set up properly:</para>
|
---|
| 41 |
|
---|
| 42 | <screen role="nodump"><userinput>echo $LFS</userinput></screen>
|
---|
| 43 |
|
---|
| 44 | <para>Make sure the output shows the path to the LFS partition's mount
|
---|
| 45 | point, which is <filename class="directory">/mnt/lfs</filename>, using our
|
---|
| 46 | example.</para>
|
---|
| 47 | </listitem>
|
---|
| 48 |
|
---|
| 49 | <listitem>
|
---|
| 50 |
|
---|
[16471f8] | 51 | <para>Finally, two last important items must be emphasized:</para>
|
---|
| 52 |
|
---|
| 53 | <important>
|
---|
| 54 | <para>The build instructions assume that the <command>bash</command>
|
---|
| 55 | shell is in use.</para>
|
---|
| 56 | </important>
|
---|
[3c63868] | 57 |
|
---|
| 58 | <important>
|
---|
[4df26333] | 59 | <para>To re-emphasize the build process:</para>
|
---|
| 60 |
|
---|
| 61 | <orderedlist numeration="arabic" spacing="compact">
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Place all the sources and patches in a directory that will be
|
---|
| 64 | accessible from the chroot environment such as
|
---|
| 65 | <filename class="directory">/mnt/lfs/sources/</filename>. Do
|
---|
| 66 | <emphasis>not</emphasis> put sources in
|
---|
| 67 | <filename class="directory">/mnt/lfs/tools/</filename>.</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>Change to the sources directory.</para>
|
---|
| 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>For each package:</para>
|
---|
| 74 | <orderedlist numeration="loweralpha" spacing="compact">
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>Using the <command>tar</command> program, extract the package
|
---|
| 77 | to be built. In Chapter 5, ensure you are the <emphasis>lfs</emphasis>
|
---|
| 78 | user when extracting the package.</para>
|
---|
| 79 | </listitem>
|
---|
| 80 | <listitem>
|
---|
| 81 | <para>Change to the directory created when the package was
|
---|
| 82 | extracted.</para>
|
---|
| 83 | </listitem>
|
---|
| 84 | <listitem>
|
---|
| 85 | <para>Follow the book's instructions for building the package.</para>
|
---|
| 86 | </listitem>
|
---|
| 87 | <listitem>
|
---|
| 88 | <para>Change back to the sources directory.</para>
|
---|
| 89 | </listitem>
|
---|
| 90 | <listitem>
|
---|
| 91 | <para>Delete the extracted source directory and any
|
---|
| 92 | <filename class="directory"><replaceable><package></replaceable>-build</filename>
|
---|
| 93 | directories that were created in the build process unless instructed otherwise.</para>
|
---|
| 94 | </listitem>
|
---|
| 95 | </orderedlist>
|
---|
| 96 | </listitem>
|
---|
| 97 | </orderedlist>
|
---|
[3c63868] | 98 | </important>
|
---|
| 99 | </listitem>
|
---|
| 100 |
|
---|
| 101 | </itemizedlist>
|
---|
| 102 |
|
---|
| 103 | </sect1>
|
---|