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