Ticket #2725: 2725.patch

File 2725.patch, 3.4 KB (added by Matthew Burgess, 14 years ago)
  • chapter05/generalinstructions.xml

     
    3333    deprecated, but not invalid, use of the C or C++ syntax. C standards change
    3434    fairly often, and some packages still use the older standard. This is not a
    3535    problem, but does prompt the warning.</para>
    36 
    37     <important>
    38       <para>After installing each package, delete its source and build
    39       directories, unless specifically instructed otherwise. Deleting the
    40       sources prevents mis-configuration when the same package is reinstalled
    41       later.</para>
    42     </important>
    4336  </listitem>
    4437
    4538  <listitem>
     
    6356    </important>
    6457
    6558    <important>
    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>&lt;package&gt;</replaceable>-build</filename>
     92              directories that were created in the build process</para>
     93            </listitem>
     94          </orderedlist>
     95        </listitem>
     96      </orderedlist>
    7097    </important>
    7198  </listitem>
    7299
    73100  </itemizedlist>
    74101
    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 &lt;package&gt;-build
    88       directories that were created in the build process.</screen>
    89 
    90102</sect1>