generalinstructions.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. <sect1 id="ch-tools-generalinstructions">
  8. <?dbhtml filename="generalinstructions.html"?>
  9. <title>General Compilation Instructions</title>
  10. <para>When building packages there are several assumptions made within
  11. the instructions:</para>
  12. <itemizedlist>
  13. <listitem>
  14. <para>Several of the packages are patched before compilation, but only when
  15. the patch is needed to circumvent a problem. A patch is often needed in
  16. both this and the next chapter, but sometimes in only one or the other.
  17. Therefore, do not be concerned if instructions for a downloaded patch seem
  18. to be missing. Warning messages about <emphasis>offset</emphasis> or
  19. <emphasis>fuzz</emphasis> may also be encountered when applying a patch. Do
  20. not worry about these warnings, as the patch was still successfully
  21. applied.</para>
  22. </listitem>
  23. <listitem>
  24. <para>During the compilation of most packages, there will be several
  25. warnings that scroll by on the screen. These are normal and can safely be
  26. ignored. These warnings are as they appear&mdash;warnings about
  27. deprecated, but not invalid, use of the C or C++ syntax. C standards change
  28. fairly often, and some packages still use the older standard. This is not a
  29. problem, but does prompt the warning.</para>
  30. <important>
  31. <para>After installing each package, delete its source and build
  32. directories, unless specifically instructed otherwise. Deleting the
  33. sources prevents mis-configuration when the same package is reinstalled
  34. later.</para>
  35. </important>
  36. </listitem>
  37. <listitem>
  38. <para>Check one last time that the <envar>LFS</envar> environment variable
  39. is set up properly:</para>
  40. <screen role="nodump"><userinput>echo $LFS</userinput></screen>
  41. <para>Make sure the output shows the path to the LFS partition's mount
  42. point, which is <filename class="directory">/mnt/lfs</filename>, using our
  43. example.</para>
  44. </listitem>
  45. <listitem>
  46. <para>Finally, one last important item must be emphasized:</para>
  47. <important>
  48. <para>Before issuing the build instructions for a package, the package
  49. should be unpacked as user <systemitem class="username">lfs</systemitem>,
  50. and a <command>cd</command> into the created directory should be
  51. performed. The build instructions assume that the
  52. <command>bash</command> shell is in use.</para>
  53. </important>
  54. </listitem>
  55. </itemizedlist>
  56. </sect1>