source: introduction/welcome/conventions.xml@ a6a7db1

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since a6a7db1 was 0023106, checked in by Pierre Labastie <pierre.labastie@…>, 16 months ago

Clarify the role of runtime deps in conventions

  • Property mode set to 100644
File size: 10.3 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="conventions">
9 <?dbhtml filename="conventions.html"?>
10
11
12 <title>Conventions Used in this Book</title>
13
14 <sect2>
15 <title>Typographical Conventions</title>
16 <para>To make things easy to follow, a number of conventions are used
17 throughout the book. Here are some examples:</para>
18
19<screen><userinput>./configure --prefix=/usr</userinput></screen>
20
21 <blockquote>
22 <para>This form of text should be typed exactly as shown unless
23 otherwise noted in the surrounding text. It is also used to identify
24 references to specific commands.</para>
25 </blockquote>
26
27<screen><computeroutput>install-info: unknown option
28`--dir-file=/mnt/lfs/usr/info/dir'</computeroutput></screen>
29
30 <blockquote>
31 <para>This form of text (fixed width font) shows screen
32 output, probably the result of issuing a command. It is also used to
33 show filenames such as <filename>/boot/grub/grub.conf</filename></para>
34 </blockquote>
35
36 <para><emphasis>Emphasis</emphasis></para>
37
38 <blockquote>
39 <para>This form of text is used for several purposes,
40 but mainly to emphasize important points, or to give examples of
41 what to type.</para>
42 </blockquote>
43
44 <para><ulink url="https://www.&lfs-domainname;/"/></para>
45
46 <blockquote>
47 <para>This form of text is used for hypertext links external to
48 the book, such as HowTos, download locations, websites, etc.</para>
49 </blockquote>
50
51 <para><xref linkend="seamonkey"/></para>
52
53 <blockquote>
54 <para>This form of text is used for links internal to
55 the book, such as another section describing a different package.</para>
56 </blockquote>
57
58<screen><userinput>cat &gt; $LFS/etc/group &lt;&lt; "EOF"
59<literal>root:x:0:
60bin:x:1:
61......</literal>
62EOF</userinput></screen>
63
64 <blockquote>
65 <para>This style is mainly used when creating configuration
66 files. The first command (in bold) tells the system to create
67 the file <filename>$LFS/etc/group</filename> from whatever is typed on the
68 following lines, until the sequence EOF is encountered.
69 Therefore, this whole section is usually typed exactly as shown.
70 Remember, copy and paste is your friend!</para>
71 </blockquote>
72
73 <para><replaceable>&lt;REPLACED TEXT&gt;</replaceable></para>
74
75 <blockquote>
76 <para>This form of text is used to encapsulate text that should be
77 modified, and is not to be typed as shown, or copied and pasted.
78 The angle brackets are not part of the literal text; they are part of the
79 substitution.</para>
80 </blockquote>
81
82 <para><systemitem class='username'>root</systemitem></para>
83
84 <blockquote>
85 <para>This form of text is used to show a specific system user or group
86 reference in the instructions.</para>
87 </blockquote>
88
89 <para>&nbsp;</para> <!-- add extra white space to improve readability -->
90 </sect2>
91
92 <sect2>
93 <title>Conventions Used for Package Dependencies</title>
94
95 <para>When new packages are created, the software's authors depend on prior work. In
96 order to build a package in BLFS, these dependencies must be built before
97 the desired package can be compiled. For each package, prerequisites are listed
98 in one or more separate sections: Required, Recommended, and Optional.</para>
99
100 <bridgehead renderas="sect3">Required Dependencies</bridgehead>
101
102 <para>These dependencies are the bare minimum needed to
103 build the package. Packages in LFS, and the required
104 dependencies of these required packages, are omitted from this list.
105 Always remember to check for nested dependencies. If a dependency is
106 said to be <quote>runtime</quote>, then it is not needed for building
107 the package, but only to use it after installation.</para>
108
109 <bridgehead renderas="sect3">Recommended Dependencies</bridgehead>
110
111 <para>These are dependencies the BLFS editors have determined
112 are important to give the package reasonable capabilities. If a
113 recommended dependency is not said to be <quote>runtime</quote>, package
114 installation instructions assume it is installed. If it
115 is not installed, the instructions may require modification, to
116 accommodate the missing package. A recommended <quote>runtime</quote>
117 dependency does not need to be installed before building the package, but
118 must be built afterwards for running the package with reasonable
119 capabilities.</para>
120
121 <bridgehead renderas="sect3">Optional Dependencies</bridgehead>
122
123 <para>These are dependencies the package <emphasis>may</emphasis> use. Integration
124 of optional dependencies may be automatic by the package, or
125 additional steps not presented by BLFS may be necessary. Optional dependencies are
126 sometimes listed without explicit BLFS instructions. In this case you must
127 determine how to perform the installation yourself.</para>
128
129 <para>&nbsp;</para> <!-- add extra white space to improve readability -->
130 </sect2>
131
132 <sect2>
133 <title>Conventions Used for Kernel Configuration Options</title>
134
135 <para>Some packages require specific kernel configuration options.
136 The general layout for these looks like this:</para>
137
138<screen><literal>Master section ---&gt;
139 Subsection ---&gt;
140 [*] Required parameter [CONFIG_REQU_PAR]
141 &lt;*&gt; Required parameter (not as module) [CONFIG_REQU_PAR_NMOD]
142 &lt;*/M&gt; Required parameter (could be a module) [CONFIG_REQU_PAR_MOD]
143 &lt;*/M/ &gt; Optional parameter [CONFIG_OPT_PAR]
144 [ ] Incompatible parameter [CONFIG_INCOMP_PAR]
145 &lt; &gt; Incompatible parameter (even as module) [CONFIG_INCOMP_PAR_MOD]</literal></screen>
146
147 <para>[CONFIG_...] on the right gives the name of the option, so you can
148 easily check whether it is set in your <filename>.config</filename> file.
149 The meaning of the various entries is:
150
151 <blockquote>
152 <informaltable frame='none'><tgroup cols="2">
153 <colspec align="left"/><colspec align="left"/><tbody>
154 <row>
155 <entry><emphasis role="bold">Master section</emphasis></entry>
156 <entry>top level menu item</entry>
157 </row>
158 <row>
159 <entry><emphasis role="bold">Subsection</emphasis></entry>
160 <entry>submenu item</entry>
161 </row>
162 <row>
163 <entry>
164 <emphasis role="bold">Required parameter</emphasis></entry>
165 <entry>
166 the option can either be built-in, or not selected: it must be
167 selected
168 </entry>
169 </row>
170 <row>
171 <entry>
172 <emphasis role="bold">Required parameter (not as
173 module)</emphasis>
174 </entry>
175 <entry>
176 the option can be built-in, a module, or not selected (tri-state):
177 it must be selected as built-in
178 </entry>
179 </row>
180 <row>
181 <entry>
182 <emphasis role="bold">Required parameter (could be
183 a module)</emphasis>
184 </entry>
185 <entry>
186 the option can be built-in, a module, or not selected:
187 it must be selected, either as built-in or as a module
188 </entry>
189 </row>
190 <row>
191 <entry>
192 <emphasis role="bold">Optional parameter</emphasis>
193 </entry>
194 <entry>
195 rarely used: the option can be built-in, a module, or not
196 selected: it may be set any way you wish
197 </entry>
198 </row>
199 <row>
200 <entry>
201 <emphasis role="bold">Incompatible parameter</emphasis>
202 </entry>
203 <entry>
204 the option can either be built-in or not selected: it must
205 <emphasis>not</emphasis> be selected
206 </entry>
207 </row>
208 <row>
209 <entry>
210 <emphasis role="bold">Incompatible parameter (even as module)</emphasis>
211 </entry>
212 <entry>
213 the option can be built-in, a module, or not selected:
214 it must <emphasis>not</emphasis> be selected
215 </entry>
216 </row>
217 </tbody></tgroup></informaltable>
218 </blockquote>
219 </para>
220
221 <para>Note that, depending on other selections, the angle brackets
222 (&lt;&gt;) in the configuration menu may appear as braces ({}) if the option cannot be unselected,
223 or even as dashes (-*- or -M-), when the choice is imposed.
224 The help text describing the option specifies the other selections on which this
225 option relies, and how those other selections are set.</para>
226
227 <para>&nbsp;</para> <!-- add extra white space to improve readability -->
228 </sect2>
229
230 <sect2>
231 <title>SBU values in BLFS</title>
232
233 <para>As in LFS, each package in BLFS has a build time listed in Standard
234 Build Units (SBUs). These times are relative to the time it took to build
235 binutils in LFS, and are intended to provide some insight into how long it
236 will take to build a package. Most times listed are for a single processor
237 or core to build the package. In some cases, large, long running builds
238 tested on multi-core systems have SBU times listed with comments such
239 as '(parallelism=4)'. These values indicate testing was done using
240 multiple cores. Note that while this speeds up the build on systems with
241 the appropriate hardware, the speedup is not linear and to some extent
242 depends on the individual package and the specific hardware used. </para>
243
244 <para>For packages which use ninja (i.e., anything using meson) or rust, by
245 default all cores are used; similar comments will be seen on such packages
246 even when the build time is minimal.</para>
247
248 <para>Where even a parallel build takes more than 15 SBU, on certain
249 machines the time may be considerably greater even when the build does not
250 use swap. In particular, different micro-architectures will build some
251 files at different relative speeds, and this can introduce delays when
252 certain make targets wait for another file to be created. Where a large
253 build uses a lot of C++ files, processors with Simultaneous Multi Threading
254 will share the Floating Point Unit and can take 45% longer than when using
255 four 'prime' cores (measured on an intel i7 using taskset and keeping the
256 other cores idle).</para>
257
258 <para>Some packages do not support parallel builds; for these, the
259 make command must specify -j1. Packages that are known to impose such limits are
260 so marked in the text.</para>
261
262 </sect2>
263
264</sect1>
Note: See TracBrowser for help on using the repository browser.