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