66 | | <para>Before issuing the build instructions for a package, the package |
67 | | should be unpacked as user <systemitem class="username">lfs</systemitem>, |
68 | | and a <command>cd</command> into the created directory should be |
69 | | performed.</para> |
| 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</para> |
| 78 | </listitem> |
| 79 | <listitem> |
| 80 | <para>Change to the directory created when the package was |
| 81 | extracted</para> |
| 82 | </listitem> |
| 83 | <listitem> |
| 84 | <para>Follow the book's instructions for building the package</para> |
| 85 | </listitem> |
| 86 | <listitem> |
| 87 | <para>Change back to the sources directory</para> |
| 88 | </listitem> |
| 89 | <listitem> |
| 90 | <para>Delete the extracted source directory and any |
| 91 | <filename class="directory"><replaceable><package></replaceable>-build</filename> |
| 92 | directories that were created in the build process</para> |
| 93 | </listitem> |
| 94 | </orderedlist> |
| 95 | </listitem> |
| 96 | </orderedlist> |
75 | | <para>To re-emphasize the build process:</para> |
76 | | |
77 | | <screen role="nodump"> |
78 | | 1. Place all the sources and patches in a directory that will be accessible |
79 | | from the chroot environment such as /mnt/lfs/sources/. Do <emphasis>not</emphasis> put |
80 | | sources in /mnt/lfs/tools/. |
81 | | 2. Change to the sources directory. |
82 | | 3. For each package: |
83 | | a. Using the tar program, extract the package to be built. |
84 | | b. Change to the directory created when the package was extracted. |
85 | | c. Follow the book's instructions for building the package. |
86 | | d. Change back to the sources directory. |
87 | | e. Delete the extracted source directory and any <package>-build |
88 | | directories that were created in the build process.</screen> |
89 | | |