source: chapter05/generalinstructions.xml@ ede49cd

multilib-10.1
Last change on this file since ede49cd was ede49cd, checked in by Thomas Trepl <thomas@…>, 4 years ago

MultiLib: Merge changes from trunk

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11747 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.5 KB
Line 
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&mdash;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
51 <para>Finally, two important items must be emphasized:</para>
52
53 <important>
54
55 <para>The build instructions assume that the <xref
56 linkend='ch-partitioning-hostreqs'/>, including symbolic links, have
57 been set properly:</para>
58
59 <itemizedlist role='important'>
60
61 <listitem override='bullet'><para><command>bash</command> is the shell
62 in use.</para></listitem>
63
64 <listitem override='bullet'><para><command>sh</command> is a symbolic
65 link to <command>bash</command>.</para></listitem>
66
67 <listitem override='bullet'><para><command>/usr/bin/awk</command> is a
68 symbolic link to <command>gawk</command>.</para></listitem>
69
70 <listitem override='bullet'><para><command>/usr/bin/yacc</command> is a
71 symbolic link to <command>bison</command> or a small script that
72 executes bison.</para></listitem>
73
74 </itemizedlist>
75 </important>
76
77 <important>
78 <para>To re-emphasize the build process:</para>
79
80 <orderedlist numeration="arabic" spacing="compact">
81 <listitem>
82 <para>Place all the sources and patches in a directory that will be
83 accessible from the chroot environment such as
84 <filename class="directory">/mnt/lfs/sources/</filename>. Do
85 <emphasis>not</emphasis> put sources in
86 <filename class="directory">/mnt/lfs/tools/</filename>.</para>
87 </listitem>
88 <listitem>
89 <para>Change to the sources directory.</para>
90 </listitem>
91 <listitem id='buildinstr' xreflabel='Package build instructions'>
92 <para>For each package:</para>
93 <orderedlist numeration="loweralpha" spacing="compact">
94 <listitem>
95 <para>Using the <command>tar</command> program, extract the package
96 to be built. In Chapter&nbsp;5, ensure you are the <emphasis>lfs</emphasis>
97 user when extracting the package.</para>
98 </listitem>
99 <listitem>
100 <para>Change to the directory created when the package was
101 extracted.</para>
102 </listitem>
103 <listitem>
104 <para>Follow the book's instructions for building the package.</para>
105 </listitem>
106 <listitem>
107 <para>Change back to the sources directory.</para>
108 </listitem>
109 <listitem>
110 <para>Delete the extracted source directory unless instructed otherwise.</para>
111 </listitem>
112 </orderedlist>
113 </listitem>
114 </orderedlist>
115 </important>
116 </listitem>
117
118 </itemizedlist>
119
120</sect1>
Note: See TracBrowser for help on using the repository browser.