1 | <chapter id="chapter04">
|
---|
2 | <title>The materials: packages and patches</title>
|
---|
3 | <?dbhtml filename="chapter04.html" dir="chapter04"?>
|
---|
4 |
|
---|
5 |
|
---|
6 | <sect1 id="ch04-introduction">
|
---|
7 | <title>Introduction</title>
|
---|
8 | <?dbhtml filename="introduction.html" dir="chapter04"?>
|
---|
9 |
|
---|
10 | <para>Below is a list of packages you need to download for building a basic
|
---|
11 | Linux system. The listed version numbers correspond to versions of the
|
---|
12 | software that are <emphasis>known</emphasis> to work, and this book is
|
---|
13 | based upon them. Unless you are an experienced LFS builder, we highly
|
---|
14 | recommend not to try out newer versions, as the build commands for one
|
---|
15 | version may not work with a newer version. Also, there is often a good
|
---|
16 | reason for not using the latest version due to known problems that haven't
|
---|
17 | been worked around yet.</para>
|
---|
18 |
|
---|
19 | <para>All the URLs, when possible, refer to the project's page at
|
---|
20 | <ulink url="http://www.freshmeat.net/"/>. The Freshmeat
|
---|
21 | pages will give you easy access to the official download sites as well as
|
---|
22 | project websites, mailing lists, FAQs, changelogs and more.</para>
|
---|
23 |
|
---|
24 | <para>We can't guarantee that these download locations are always available.
|
---|
25 | In case a download location has changed since this book was published, please
|
---|
26 | try to google for the package. Should you remain unsuccessful with this, you
|
---|
27 | can consult the book's errata page at
|
---|
28 | <ulink url="http://linuxfromscratch.org/lfs/print/"/> or, better yet, try one
|
---|
29 | of the alternative means of downloading listed on
|
---|
30 | <ulink url="http://linuxfromscratch.org/lfs/packages.html"/>.</para>
|
---|
31 |
|
---|
32 | <para>You'll need to store all the downloaded packages and patches somewhere
|
---|
33 | that is conveniently available throughout the entire build. You'll also need a
|
---|
34 | working directory in which to unpack the sources and build them. A scheme that
|
---|
35 | works well is to use <filename>$LFS/tools/sources/packages</filename> for the
|
---|
36 | tarballs, and <filename>$LFS/tools/sources</filename> as the working directory
|
---|
37 | <emphasis>and</emphasis> as the place to store the patches. In this way,
|
---|
38 | everything will be on the LFS partition and available during all stages of the
|
---|
39 | building process.</para>
|
---|
40 |
|
---|
41 | <para>So you may want to execute the following command before starting
|
---|
42 | your download session:</para>
|
---|
43 |
|
---|
44 | <screen><userinput>mkdir -p $LFS/tools/sources/packages</userinput></screen>
|
---|
45 |
|
---|
46 | <!--
|
---|
47 | <para>For your convenience the top of the list contains a link to a file
|
---|
48 | you can use with the <ulink url="http://wget.sunsite.dk">wget</ulink>
|
---|
49 | program. Using this file and the <userinput>wget</userinput> program will
|
---|
50 | make it easy to download all the files at once, rather than downloading each
|
---|
51 | and every individual file manually.</para>
|
---|
52 | -->
|
---|
53 |
|
---|
54 | </sect1>
|
---|
55 |
|
---|
56 |
|
---|
57 | <sect1 id="ch04-packages">
|
---|
58 | <title>All the packages</title>
|
---|
59 | <?dbhtml filename="packages.html" dir="chapter04"?>
|
---|
60 |
|
---|
61 | <para>Download or otherwise obtain the following packages:</para>
|
---|
62 |
|
---|
63 | <literallayout>
|
---|
64 | Autoconf (&autoconf-version;) - &autoconf-size;:
|
---|
65 | <ulink url="http://freshmeat.net/projects/autoconf/"/>
|
---|
66 |
|
---|
67 | Automake (&automake-version;) - &automake-size;:
|
---|
68 | <ulink url="http://freshmeat.net/projects/automake/"/>
|
---|
69 |
|
---|
70 | Bash (&bash-version;) - &bash-size;:
|
---|
71 | <ulink url="http://freshmeat.net/projects/gnubash/"/>
|
---|
72 |
|
---|
73 | Binutils (&binutils-version;) - &binutils-size;:
|
---|
74 | <ulink url="http://freshmeat.net/projects/binutils/"/>
|
---|
75 |
|
---|
76 | Bison (&bison-version;) - &bison-size;:
|
---|
77 | <ulink url="http://freshmeat.net/projects/bison/"/>
|
---|
78 |
|
---|
79 | Bzip2 (&bzip2-version;) - &bzip2-size;:
|
---|
80 | <ulink url="http://freshmeat.net/projects/bzip2/"/>
|
---|
81 |
|
---|
82 | Coreutils (&coreutils-version;) - &coreutils-size;:
|
---|
83 | <ulink url="http://freshmeat.net/projects/coreutils/"/>
|
---|
84 |
|
---|
85 | DejaGnu (&dejagnu-version;) - &dejagnu-size;:
|
---|
86 | <ulink url="http://freshmeat.net/projects/dejagnu/"/>
|
---|
87 |
|
---|
88 | Diffutils (&diffutils-version;) - &diffutils-size;:
|
---|
89 | <ulink url="http://freshmeat.net/projects/diffutils/"/>
|
---|
90 |
|
---|
91 | E2fsprogs (&e2fsprogs-version;) - &e2fsprogs-size;:
|
---|
92 | <ulink url="http://freshmeat.net/projects/e2fsprogs/"/>
|
---|
93 |
|
---|
94 | Ed (&ed-version;) - &ed-size;:
|
---|
95 | <ulink url="http://freshmeat.net/projects/ed/"/>
|
---|
96 |
|
---|
97 | Expect (&expect-version;) - &expect-size;:
|
---|
98 | <ulink url="http://freshmeat.net/projects/expect/"/>
|
---|
99 |
|
---|
100 | File (&file-version;) - &file-size;:
|
---|
101 | <ulink url="http://freshmeat.net/projects/file/"/>
|
---|
102 |
|
---|
103 | Findutils (&findutils-version;) - &findutils-size;:
|
---|
104 | <ulink url="http://freshmeat.net/projects/findutils/"/>
|
---|
105 |
|
---|
106 | Flex (&flex-version;) - &flex-size;:
|
---|
107 | <ulink url="ftp://ftp.gnu.org/gnu/non-gnu/flex/"/>
|
---|
108 |
|
---|
109 | Gawk (&gawk-version;) - &gawk-size;:
|
---|
110 | <ulink url="http://freshmeat.net/projects/gnuawk/"/>
|
---|
111 |
|
---|
112 | GCC (&gcc-2953-version;) - &gcc-2953-size;:
|
---|
113 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
114 |
|
---|
115 | GCC-core (&gcc-version;) - &gcc-core-size;:
|
---|
116 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
117 |
|
---|
118 | GCC-g++ (&gcc-version;) - &gcc-gpp-size;:
|
---|
119 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
120 |
|
---|
121 | GCC-testsuite (&gcc-version;) - &gcc-testsuite-size;:
|
---|
122 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
123 |
|
---|
124 | Gettext (&gettext-version;) - &gettext-size;:
|
---|
125 | <ulink url="http://freshmeat.net/projects/gettext/"/>
|
---|
126 |
|
---|
127 | Glibc (&glibc-version;) - &glibc-size;:
|
---|
128 | <ulink url="http://freshmeat.net/projects/glibc/"/>
|
---|
129 |
|
---|
130 | Glibc-linuxthreads (&glibc-version;) - &glibc-threads-size;:
|
---|
131 | <ulink url="http://freshmeat.net/projects/glibc/"/>
|
---|
132 |
|
---|
133 | Grep (&grep-version;) - &grep-size;:
|
---|
134 | <ulink url="http://freshmeat.net/projects/grep/"/>
|
---|
135 |
|
---|
136 | Groff (&groff-version;) - &groff-size;:
|
---|
137 | <ulink url="http://freshmeat.net/projects/groff/"/>
|
---|
138 |
|
---|
139 | Grub (&grub-version;) - &grub-size;:
|
---|
140 | <ulink url="ftp://alpha.gnu.org/pub/gnu/grub/"/>
|
---|
141 |
|
---|
142 | Gzip (&gzip-version;) - &gzip-size;:
|
---|
143 | <ulink url="ftp://alpha.gnu.org/gnu/gzip/"/>
|
---|
144 |
|
---|
145 | Inetutils (&inetutils-version;) - &inetutils-size;:
|
---|
146 | <ulink url="http://freshmeat.net/projects/inetutils/"/>
|
---|
147 |
|
---|
148 | Kbd (&kbd-version;) - &kbd-size;:
|
---|
149 | <ulink url="http://freshmeat.net/projects/kbd/"/>
|
---|
150 |
|
---|
151 | Less (&less-version;) - &less-size;:
|
---|
152 | <ulink url="http://freshmeat.net/projects/less/"/>
|
---|
153 |
|
---|
154 | LFS-Bootscripts (&bootscripts-version;) - &bootscripts-size;:
|
---|
155 | <ulink url="&http;/lfs-bootscripts-&bootscripts-version;.tar.bz2"/>
|
---|
156 |
|
---|
157 | Lfs-Utils (&lfs-utils-version;) - &lfs-utils-size;:
|
---|
158 | <ulink url="http://www.linuxfromscratch.org/~winkie/downloads/lfs-utils/"/>
|
---|
159 |
|
---|
160 | Libtool (&libtool-version;) - &libtool-size;:
|
---|
161 | <ulink url="http://freshmeat.net/projects/libtool/"/>
|
---|
162 |
|
---|
163 | Linux (&kernel-version;) - &kernel-size;:
|
---|
164 | <ulink url="http://freshmeat.net/projects/linux/"/>
|
---|
165 |
|
---|
166 | M4 (&m4-version;) - &m4-size;:
|
---|
167 | <ulink url="http://freshmeat.net/projects/gnum4/"/>
|
---|
168 |
|
---|
169 | Make (&make-version;) - &make-size;:
|
---|
170 | <ulink url="http://freshmeat.net/projects/gnumake"/>
|
---|
171 |
|
---|
172 | MAKEDEV (&makedev-version;) - &makedev-size;:
|
---|
173 | <ulink url="&http;/MAKEDEV-&makedev-version;.bz2"/>
|
---|
174 |
|
---|
175 | Man (&man-version;) - &man-size;:
|
---|
176 | <ulink url="http://freshmeat.net/projects/man/"/>
|
---|
177 |
|
---|
178 | Man-pages (&man-pages-version;) - &man-pages-size;:
|
---|
179 | <ulink url="http://freshmeat.net/projects/man-pages/"/>
|
---|
180 |
|
---|
181 | Modutils (&modutils-version;) - &modutils-size;:
|
---|
182 | <ulink url="http://freshmeat.net/projects/modutils/"/>
|
---|
183 |
|
---|
184 | Ncurses (&ncurses-version;) - &ncurses-size;:
|
---|
185 | <ulink url="http://freshmeat.net/projects/ncurses/"/>
|
---|
186 |
|
---|
187 | Net-tools (&net-tools-version;) - &net-tools-size;:
|
---|
188 | <ulink url="http://freshmeat.net/projects/net-tools/"/>
|
---|
189 |
|
---|
190 | Patch (&patch-version;) - &patch-size;:
|
---|
191 | <ulink url="http://freshmeat.net/projects/patch/"/>
|
---|
192 |
|
---|
193 | Perl (&perl-version;) - &perl-size;:
|
---|
194 | <ulink url="http://freshmeat.net/projects/perl/"/>
|
---|
195 |
|
---|
196 | Procinfo (&procinfo-version;) - &procinfo-size;:
|
---|
197 | <ulink url="http://freshmeat.net/projects/procinfo/"/>
|
---|
198 |
|
---|
199 | Procps (&procps-version;) - &procps-size;:
|
---|
200 | <ulink url="http://freshmeat.net/projects/procps/"/>
|
---|
201 |
|
---|
202 | Psmisc (&psmisc-version;) - &psmisc-size;:
|
---|
203 | <ulink url="http://freshmeat.net/projects/psmisc/"/>
|
---|
204 |
|
---|
205 | Sed (&sed-version;) - &sed-size;:
|
---|
206 | <ulink url="http://freshmeat.net/projects/sed/"/>
|
---|
207 |
|
---|
208 | Shadow (&shadow-version;) - &shadow-size;:
|
---|
209 | <ulink url="http://freshmeat.net/projects/shadow/"/>
|
---|
210 |
|
---|
211 | Sysklogd (&sysklogd-version;) - &sysklogd-size;:
|
---|
212 | <ulink url="http://freshmeat.net/projects/sysklogd/"/>
|
---|
213 |
|
---|
214 | Sysvinit (&sysvinit-version;) - &sysvinit-size;:
|
---|
215 | <ulink url="http://freshmeat.net/projects/sysvinit/"/>
|
---|
216 |
|
---|
217 | Tar (&tar-version;) - &tar-size;:
|
---|
218 | <ulink url="ftp://alpha.gnu.org/gnu/tar/"/>
|
---|
219 |
|
---|
220 | Tcl (&tcl-version;) - &tcl-size;:
|
---|
221 | <ulink url="http://freshmeat.net/projects/tcltk/"/>
|
---|
222 |
|
---|
223 | Texinfo (&texinfo-version;) - &texinfo-size;:
|
---|
224 | <ulink url="http://freshmeat.net/projects/texinfo/"/>
|
---|
225 |
|
---|
226 | Util-linux (&util-linux-version;) - &util-linux-size;:
|
---|
227 | <ulink url="http://freshmeat.net/projects/util-linux/"/>
|
---|
228 |
|
---|
229 | Vim (&vim-version;) - &vim-size;:
|
---|
230 | <ulink url="http://freshmeat.net/projects/vim/"/>
|
---|
231 |
|
---|
232 | Zlib (&zlib-version;) - &zlib-size;:
|
---|
233 | <ulink url="http://freshmeat.net/projects/zlib/"/>
|
---|
234 |
|
---|
235 | Total size of these packages: &all-size-mb;
|
---|
236 | </literallayout>
|
---|
237 |
|
---|
238 | </sect1>
|
---|
239 |
|
---|
240 |
|
---|
241 | <sect1 id="ch04-patches">
|
---|
242 | <title>Needed patches</title>
|
---|
243 | <?dbhtml filename="patches.html" dir="chapter04"?>
|
---|
244 |
|
---|
245 | <para>Besides all those packages, you'll also need several patches. These
|
---|
246 | correct tiny mistakes in the packages that should be fixed by the maintainer,
|
---|
247 | or just make some small modifications to bend things our way. You'll need the
|
---|
248 | following:</para>
|
---|
249 |
|
---|
250 | <literallayout>
|
---|
251 | Bash Patch - &bash-patch-size;:
|
---|
252 | <ulink url="&patches-root;&bash-patch;"/>
|
---|
253 |
|
---|
254 | Bison Attribute Patch - &bison-patch-size;:
|
---|
255 | <ulink url="&patches-root;&bison-patch;"/>
|
---|
256 |
|
---|
257 | Coreutils Hostname Patch - &coreutils-hostname-patch-size;:
|
---|
258 | <ulink url="&patches-root;&coreutils-hostname-patch;"/>
|
---|
259 |
|
---|
260 | Coreutils Uname Patch - &coreutils-uname-patch-size;:
|
---|
261 | <ulink url="&patches-root;&coreutils-uname-patch;"/>
|
---|
262 |
|
---|
263 | Ed Mkstemp Patch - &ed-patch-size;:
|
---|
264 | <ulink url="&patches-root;&ed-patch;"/>
|
---|
265 |
|
---|
266 | Expect Spawn Patch - &expect-patch-size;:
|
---|
267 | <ulink url="&patches-root;&expect-patch;"/>
|
---|
268 |
|
---|
269 | Gawk Libexecdir Patch - &gawk-patch-size;:
|
---|
270 | <ulink url="&patches-root;&gawk-patch;"/>
|
---|
271 |
|
---|
272 | GCC No-Fixincludes Patch - &gcc-nofixincludes-patch-size;:
|
---|
273 | <ulink url="&patches-root;&gcc-nofixincludes-patch;"/>
|
---|
274 |
|
---|
275 | GCC Specs Patch - &gcc-specs-patch-size;:
|
---|
276 | <ulink url="&patches-root;&gcc-specs-patch;"/>
|
---|
277 |
|
---|
278 | GCC Suppress-Libiberty Patch - &gcc-suppress-libiberty-patch-size;:
|
---|
279 | <ulink url="&patches-root;&gcc-suppress-libiberty-patch;"/>
|
---|
280 |
|
---|
281 | GCC-2 Patch - &gcc-2953-patch-size;:
|
---|
282 | <ulink url="&patches-root;&gcc-2953-patch;"/>
|
---|
283 |
|
---|
284 | GCC-2 No-Fixincludes Patch - &gcc-2953-no-fixinc-patch-size;:
|
---|
285 | <ulink url="&patches-root;&gcc-2953-no-fixinc-patch;"/>
|
---|
286 |
|
---|
287 | GCC-2 Return-Type Patch - &gcc-2953-returntype-fix-patch-size;:
|
---|
288 | <ulink url="&patches-root;&gcc-2953-returntype-fix-patch;"/>
|
---|
289 |
|
---|
290 | Glibc Sscanf Patch - &glibc-sscanf-patch-size;:
|
---|
291 | <ulink url="&patches-root;&glibc-sscanf-patch;"/>
|
---|
292 |
|
---|
293 | Grub Gcc33 Patch - &grub-patch-size;:
|
---|
294 | <ulink url="&patches-root;&grub-patch;"/>
|
---|
295 |
|
---|
296 | Kbd More-Programs Patch - &kbd-patch-size;:
|
---|
297 | <ulink url="&patches-root;&kbd-patch;"/>
|
---|
298 |
|
---|
299 | Man 80-Columns Patch - &man-80cols-patch-size;:
|
---|
300 | <ulink url="&patches-root;&man-80cols-patch;"/>
|
---|
301 |
|
---|
302 | Man Manpath Patch - &man-manpath-patch-size;:
|
---|
303 | <ulink url="&patches-root;&man-manpath-patch;"/>
|
---|
304 |
|
---|
305 | Man Pager Patch - &man-pager-patch-size;:
|
---|
306 | <ulink url="&patches-root;&man-pager-patch;"/>
|
---|
307 |
|
---|
308 | Ncurses Etip Patch - &ncurses-etip-patch-size;:
|
---|
309 | <ulink url="&patches-root;&ncurses-etip-patch;"/>
|
---|
310 |
|
---|
311 | Ncurses Vsscanf Patch - &ncurses-vsscanf-patch-size;:
|
---|
312 | <ulink url="&patches-root;&ncurses-vsscanf-patch;"/>
|
---|
313 |
|
---|
314 | Net-tools Mii-Tool-Gcc33 Patch - &net-tools-mii-patch-size;:
|
---|
315 | <ulink url="&patches-root;&net-tools-mii-patch;"/>
|
---|
316 |
|
---|
317 | Perl Libc Patch - &perl-libc-patch-size;:
|
---|
318 | <ulink url="&patches-root;&perl-libc-patch;"/>
|
---|
319 |
|
---|
320 | Procps Locale Patch - &procps-patch-size;:
|
---|
321 | <ulink url="&patches-root;&procps-patch;"/>
|
---|
322 |
|
---|
323 | Shadow Newgrp Patch - &shadow-patch-size;:
|
---|
324 | <ulink url="&patches-root;&shadow-patch;"/>
|
---|
325 |
|
---|
326 | Zlib Vsnprintf Patch - &zlib-patch-size;:
|
---|
327 | <ulink url="&patches-root;&zlib-patch;"/>
|
---|
328 | </literallayout>
|
---|
329 |
|
---|
330 | <para>In addition to the above required patches, there exist a number of
|
---|
331 | optional ones created by the LFS community. Most of these solve slight
|
---|
332 | problems, or enable some functionality that's not enabled by default. Feel
|
---|
333 | free to examine the patches database, located at
|
---|
334 | <ulink url="http://www.linuxfromscratch.org/patches/"/>, and pick any
|
---|
335 | additional patches you wish to use.</para>
|
---|
336 |
|
---|
337 | </sect1>
|
---|
338 |
|
---|
339 | </chapter>
|
---|
340 |
|
---|