1 | <chapter id="chapter-getting-materials" xreflabel="Chapter 3">
|
---|
2 | <title>The materials: packages and patches</title>
|
---|
3 | <?dbhtml filename="chapter03.html" dir="chapter03"?>
|
---|
4 |
|
---|
5 |
|
---|
6 | <sect1 id="materials-introduction">
|
---|
7 | <title>Introduction</title>
|
---|
8 | <?dbhtml filename="introduction.html" dir="chapter03"?>
|
---|
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 <ulink url="&lfs-root;lfs/print/"/>
|
---|
28 | or, better yet, try one of the alternative means of downloading listed on
|
---|
29 | <ulink url="&lfs-root;lfs/packages.html"/>.</para>
|
---|
30 |
|
---|
31 | <para>You'll need to store all the downloaded packages and patches somewhere
|
---|
32 | that is conveniently available throughout the entire build. You'll also need a
|
---|
33 | working directory in which to unpack the sources and build them. A scheme that
|
---|
34 | works well is to use <filename>$LFS/sources</filename> as the place to store
|
---|
35 | the tarballs and patches, <emphasis>and</emphasis> as a working directory.
|
---|
36 | This way everything you need will be located on the LFS partition and available
|
---|
37 | during all stages of the building process.</para>
|
---|
38 |
|
---|
39 | <para>So you may want to execute, as <emphasis>root</emphasis>, the following
|
---|
40 | command before starting your download session:</para>
|
---|
41 |
|
---|
42 | <screen><userinput>mkdir $LFS/sources</userinput></screen>
|
---|
43 |
|
---|
44 | <para>And make this directory writable (and sticky) for your normal user -- as
|
---|
45 | you won't do the downloading as <emphasis>root</emphasis>, we guess:</para>
|
---|
46 |
|
---|
47 | <screen><userinput>chmod a+wt $LFS/sources</userinput></screen>
|
---|
48 |
|
---|
49 | <!--
|
---|
50 | <para>For your convenience the top of the list contains a link to a file
|
---|
51 | you can use with the <ulink url="http://wget.sunsite.dk">wget</ulink>
|
---|
52 | program. Using this file and the <command>wget</command> program will
|
---|
53 | make it easy to download all the files at once, rather than downloading each
|
---|
54 | and every individual file manually.</para>
|
---|
55 | -->
|
---|
56 |
|
---|
57 | </sect1>
|
---|
58 |
|
---|
59 |
|
---|
60 | <sect1 id="materials-packages">
|
---|
61 | <title>All the packages</title>
|
---|
62 | <?dbhtml filename="packages.html" dir="chapter03"?>
|
---|
63 |
|
---|
64 | <para>Download or otherwise obtain the following packages:</para>
|
---|
65 |
|
---|
66 | <literallayout>
|
---|
67 | Autoconf (&autoconf-version;) - &autoconf-size;:
|
---|
68 | <ulink url="http://freshmeat.net/projects/autoconf/"/>
|
---|
69 |
|
---|
70 | Automake (&automake-version;) - &automake-size;:
|
---|
71 | <ulink url="http://freshmeat.net/projects/automake/"/>
|
---|
72 |
|
---|
73 | Bash (&bash-version;) - &bash-size;:
|
---|
74 | <ulink url="http://freshmeat.net/projects/gnubash/"/>
|
---|
75 |
|
---|
76 | Binutils (&binutils-version;) - &binutils-size;:
|
---|
77 | <ulink url="http://freshmeat.net/projects/binutils/"/>
|
---|
78 |
|
---|
79 | Bison (&bison-version;) - &bison-size;:
|
---|
80 | <ulink url="http://freshmeat.net/projects/bison/"/>
|
---|
81 |
|
---|
82 | Bzip2 (&bzip2-version;) - &bzip2-size;:
|
---|
83 | <ulink url="http://freshmeat.net/projects/bzip2/"/>
|
---|
84 |
|
---|
85 | Coreutils (&coreutils-version;) - &coreutils-size;:
|
---|
86 | <ulink url="http://freshmeat.net/projects/coreutils/"/>
|
---|
87 |
|
---|
88 | DejaGnu (&dejagnu-version;) - &dejagnu-size;:
|
---|
89 | <ulink url="http://freshmeat.net/projects/dejagnu/"/>
|
---|
90 |
|
---|
91 | Diffutils (&diffutils-version;) - &diffutils-size;:
|
---|
92 | <ulink url="http://freshmeat.net/projects/diffutils/"/>
|
---|
93 |
|
---|
94 | E2fsprogs (&e2fsprogs-version;) - &e2fsprogs-size;:
|
---|
95 | <ulink url="http://freshmeat.net/projects/e2fsprogs/"/>
|
---|
96 |
|
---|
97 | Ed (&ed-version;) - &ed-size;:
|
---|
98 | <ulink url="http://freshmeat.net/projects/ed/"/>
|
---|
99 |
|
---|
100 | Expect (&expect-version;) - &expect-size;:
|
---|
101 | <ulink url="http://freshmeat.net/projects/expect/"/>
|
---|
102 |
|
---|
103 | File (&file-version;) - &file-size;: -- <emphasis>(see Note 1 below)</emphasis>
|
---|
104 | <ulink url="http://freshmeat.net/projects/file/"/>
|
---|
105 |
|
---|
106 | Findutils (&findutils-version;) - &findutils-size;:
|
---|
107 | <ulink url="http://freshmeat.net/projects/findutils/"/>
|
---|
108 |
|
---|
109 | Flex (&flex-version;) - &flex-size;:
|
---|
110 | <ulink url="ftp://ftp.gnu.org/gnu/non-gnu/flex/"/>
|
---|
111 |
|
---|
112 | Gawk (&gawk-version;) - &gawk-size;:
|
---|
113 | <ulink url="http://freshmeat.net/projects/gnuawk/"/>
|
---|
114 |
|
---|
115 | GCC-core (&gcc-version;) - &gcc-core-size;:
|
---|
116 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
117 | GCC-g++ (&gcc-version;) - &gcc-gpp-size;:
|
---|
118 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
119 | GCC-testsuite (&gcc-version;) - &gcc-testsuite-size;:
|
---|
120 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
121 |
|
---|
122 | GCC-2 (&gcc-2953-version;) - &gcc-2953-size;:
|
---|
123 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
124 |
|
---|
125 | Gettext (&gettext-version;) - &gettext-size;:
|
---|
126 | <ulink url="http://freshmeat.net/projects/gettext/"/>
|
---|
127 |
|
---|
128 | Glibc (&glibc-version;) - &glibc-size;: -- <emphasis>(see Note 2 below)</emphasis>
|
---|
129 | <ulink url="http://freshmeat.net/projects/glibc/"/>
|
---|
130 |
|
---|
131 | Grep (&grep-version;) - &grep-size;:
|
---|
132 | <ulink url="http://freshmeat.net/projects/grep/"/>
|
---|
133 |
|
---|
134 | Groff (&groff-version;) - &groff-size;:
|
---|
135 | <ulink url="http://freshmeat.net/projects/groff/"/>
|
---|
136 |
|
---|
137 | Grub (&grub-version;) - &grub-size;:
|
---|
138 | <ulink url="ftp://alpha.gnu.org/pub/gnu/grub/"/>
|
---|
139 |
|
---|
140 | Gzip (&gzip-version;) - &gzip-size;:
|
---|
141 | <ulink url="ftp://alpha.gnu.org/gnu/gzip/"/>
|
---|
142 |
|
---|
143 | Inetutils (&inetutils-version;) - &inetutils-size;:
|
---|
144 | <ulink url="http://freshmeat.net/projects/inetutils/"/>
|
---|
145 |
|
---|
146 | Kbd (&kbd-version;) - &kbd-size;:
|
---|
147 | <ulink url="http://freshmeat.net/projects/kbd/"/>
|
---|
148 |
|
---|
149 | Less (&less-version;) - &less-size;:
|
---|
150 | <ulink url="http://freshmeat.net/projects/less/"/>
|
---|
151 |
|
---|
152 | LFS-Bootscripts (&bootscripts-version;) - &bootscripts-size;:
|
---|
153 | <ulink url="&http-down;lfs-bootscripts-&bootscripts-version;.tar.bz2"/>
|
---|
154 |
|
---|
155 | Lfs-Utils (&lfs-utils-version;) - &lfs-utils-size;:
|
---|
156 | <ulink url="&lfs-root;~winkie/downloads/lfs-utils/"/>
|
---|
157 |
|
---|
158 | Libtool (&libtool-version;) - &libtool-size;:
|
---|
159 | <ulink url="http://freshmeat.net/projects/libtool/"/>
|
---|
160 |
|
---|
161 | Linux (&kernel-version;) - &kernel-size;:
|
---|
162 | <ulink url="http://freshmeat.net/projects/linux/"/>
|
---|
163 |
|
---|
164 | M4 (&m4-version;) - &m4-size;:
|
---|
165 | <ulink url="http://freshmeat.net/projects/gnum4/"/>
|
---|
166 |
|
---|
167 | Make (&make-version;) - &make-size;:
|
---|
168 | <ulink url="http://freshmeat.net/projects/gnumake/"/>
|
---|
169 |
|
---|
170 | Make_devices (&makedev-version;) - &makedev-size;:
|
---|
171 | <ulink url="&lfs-root;~alex/make_devices-&makedev-version;.bz2"/>
|
---|
172 |
|
---|
173 | Man (&man-version;) - &man-size;:
|
---|
174 | <ulink url="http://freshmeat.net/projects/man/"/>
|
---|
175 |
|
---|
176 | Man-pages (&man-pages-version;) - &man-pages-size;:
|
---|
177 | <ulink url="http://freshmeat.net/projects/man-pages/"/>
|
---|
178 |
|
---|
179 | Modutils (&modutils-version;) - &modutils-size;:
|
---|
180 | <ulink url="http://freshmeat.net/projects/modutils/"/>
|
---|
181 |
|
---|
182 | Ncurses (&ncurses-version;) - &ncurses-size;:
|
---|
183 | <ulink url="http://freshmeat.net/projects/ncurses/"/>
|
---|
184 |
|
---|
185 | Net-tools (&net-tools-version;) - &net-tools-size;:
|
---|
186 | <ulink url="http://freshmeat.net/projects/net-tools/"/>
|
---|
187 |
|
---|
188 | Patch (&patch-version;) - &patch-size;:
|
---|
189 | <ulink url="http://freshmeat.net/projects/patch/"/>
|
---|
190 |
|
---|
191 | Perl (&perl-version;) - &perl-size;:
|
---|
192 | <ulink url="http://freshmeat.net/projects/perl/"/>
|
---|
193 |
|
---|
194 | Procinfo (&procinfo-version;) - &procinfo-size;:
|
---|
195 | <ulink url="http://freshmeat.net/projects/procinfo/"/>
|
---|
196 |
|
---|
197 | Procps (&procps-version;) - &procps-size;:
|
---|
198 | <ulink url="http://freshmeat.net/projects/procps/"/>
|
---|
199 |
|
---|
200 | Psmisc (&psmisc-version;) - &psmisc-size;:
|
---|
201 | <ulink url="http://freshmeat.net/projects/psmisc/"/>
|
---|
202 |
|
---|
203 | Sed (&sed-version;) - &sed-size;:
|
---|
204 | <ulink url="http://freshmeat.net/projects/sed/"/>
|
---|
205 |
|
---|
206 | Shadow (&shadow-version;) - &shadow-size;:
|
---|
207 | <ulink url="http://freshmeat.net/projects/shadow/"/>
|
---|
208 |
|
---|
209 | Sysklogd (&sysklogd-version;) - &sysklogd-size;:
|
---|
210 | <ulink url="http://freshmeat.net/projects/sysklogd/"/>
|
---|
211 |
|
---|
212 | Sysvinit (&sysvinit-version;) - &sysvinit-size;:
|
---|
213 | <ulink url="http://freshmeat.net/projects/sysvinit/"/>
|
---|
214 |
|
---|
215 | Tar (&tar-version;) - &tar-size;:
|
---|
216 | <ulink url="ftp://alpha.gnu.org/gnu/tar/"/>
|
---|
217 |
|
---|
218 | Tcl (&tcl-version;) - &tcl-size;:
|
---|
219 | <ulink url="http://freshmeat.net/projects/tcltk/"/>
|
---|
220 |
|
---|
221 | Texinfo (&texinfo-version;) - &texinfo-size;:
|
---|
222 | <ulink url="http://freshmeat.net/projects/texinfo/"/>
|
---|
223 |
|
---|
224 | Util-linux (&util-linux-version;) - &util-linux-size;:
|
---|
225 | <ulink url="http://freshmeat.net/projects/util-linux/"/>
|
---|
226 |
|
---|
227 | Vim (&vim-version;) - &vim-size;:
|
---|
228 | <ulink url="http://freshmeat.net/projects/vim/"/>
|
---|
229 |
|
---|
230 | Zlib (&zlib-version;) - &zlib-size;:
|
---|
231 | <ulink url="http://freshmeat.net/projects/zlib/"/>
|
---|
232 |
|
---|
233 | Total size of these packages: &all-size-mb;
|
---|
234 | </literallayout>
|
---|
235 |
|
---|
236 | <note><para>1) File (&file-version;) may not be available by the time you read
|
---|
237 | this. The site admins of the master download location are known to occasionally
|
---|
238 | remove old versions when new ones are released. Please refer to the
|
---|
239 | <xref linkend="ch-system-file"/> section for an alternate download
|
---|
240 | location.</para></note>
|
---|
241 |
|
---|
242 | <note><para>2) As of this writing, the Glibc maintainers have decided in their
|
---|
243 | wisdom not to make available new release tarballs for download. The only way to
|
---|
244 | obtain the current Glibc release from pristine upstream sources is to pull it
|
---|
245 | from the Glibc CVS repository. The following commands will download the current
|
---|
246 | release and make a tarball from it:</para>
|
---|
247 |
|
---|
248 | <screen><userinput>cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc \
|
---|
249 | export -d &glibc-dir; -D "2003-12-02 UTC" libc
|
---|
250 | tar jcvf &glibc-package; &glibc-dir;</userinput></screen>
|
---|
251 |
|
---|
252 | <para>Alternatively, we've made our own tarball available which you can
|
---|
253 | download courtesy of the generous LFS mirror sites. Please refer to the
|
---|
254 | <xref linkend="ch-tools-glibc"/> section for the download links.</para></note>
|
---|
255 |
|
---|
256 | </sect1>
|
---|
257 |
|
---|
258 |
|
---|
259 | <sect1 id="materials-patches">
|
---|
260 | <title>Needed patches</title>
|
---|
261 | <?dbhtml filename="patches.html" dir="chapter03"?>
|
---|
262 |
|
---|
263 | <para>Besides all those packages, you'll also need several patches. These
|
---|
264 | correct tiny mistakes in the packages that should be fixed by the maintainer,
|
---|
265 | or just make some small modifications to bend things our way. You'll need the
|
---|
266 | following:</para>
|
---|
267 |
|
---|
268 | <literallayout>
|
---|
269 | Bash Patch - &bash-patch-size;:
|
---|
270 | <ulink url="&patches-root;&bash-patch;"/>
|
---|
271 |
|
---|
272 | Bison Attribute Patch - &bison-patch-size;:
|
---|
273 | <ulink url="&patches-root;&bison-patch;"/>
|
---|
274 |
|
---|
275 | Coreutils Hostname Patch - &coreutils-hostname-patch-size;:
|
---|
276 | <ulink url="&patches-root;&coreutils-hostname-patch;"/>
|
---|
277 | Coreutils Posixver Patch - &coreutils-posixver-patch-size;:
|
---|
278 | <ulink url="&patches-root;&coreutils-posixver-patch;"/>
|
---|
279 | Coreutils Uname Patch - &coreutils-uname-patch-size;:
|
---|
280 | <ulink url="&patches-root;&coreutils-uname-patch;"/>
|
---|
281 |
|
---|
282 | Ed Mkstemp Patch - &ed-patch-size;:
|
---|
283 | <ulink url="&patches-root;&ed-patch;"/>
|
---|
284 |
|
---|
285 | Expect Spawn Patch - &expect-patch-size;:
|
---|
286 | <ulink url="&patches-root;&expect-patch;"/>
|
---|
287 |
|
---|
288 | GCC No-Fixincludes Patch - &gcc-nofixincludes-patch-size;:
|
---|
289 | <ulink url="&patches-root;&gcc-nofixincludes-patch;"/>
|
---|
290 | GCC Specs Patch - &gcc-specs-patch-size;:
|
---|
291 | <ulink url="&patches-root;&gcc-specs-patch;"/>
|
---|
292 |
|
---|
293 | GCC-2 Patch - &gcc-2953-patch-size;:
|
---|
294 | <ulink url="&patches-root;&gcc-2953-patch;"/>
|
---|
295 | GCC-2 No-Fixincludes Patch - &gcc-2953-no-fixinc-patch-size;:
|
---|
296 | <ulink url="&patches-root;&gcc-2953-no-fixinc-patch;"/>
|
---|
297 | GCC-2 Return-Type Patch - &gcc-2953-returntype-fix-patch-size;:
|
---|
298 | <ulink url="&patches-root;&gcc-2953-returntype-fix-patch;"/>
|
---|
299 |
|
---|
300 | Inetutils No-Server-Man-Pages Patch - &inetutils-no-server-man-pages-patch-size;:
|
---|
301 | <ulink url="&patches-root;&inetutils-no-server-man-pages-patch;"/>
|
---|
302 |
|
---|
303 | Kbd More-Programs Patch - &kbd-patch-size;:
|
---|
304 | <ulink url="&patches-root;&kbd-patch;"/>
|
---|
305 |
|
---|
306 | Man 80-Columns Patch - &man-80cols-patch-size;:
|
---|
307 | <ulink url="&patches-root;&man-80cols-patch;"/>
|
---|
308 |
|
---|
309 | Net-tools Mii-Tool-Gcc33 Patch - &net-tools-mii-patch-size;:
|
---|
310 | <ulink url="&patches-root;&net-tools-mii-patch;"/>
|
---|
311 |
|
---|
312 | Perl Libc Patch - &perl-libc-patch-size;:
|
---|
313 | <ulink url="&patches-root;&perl-libc-patch;"/>
|
---|
314 | </literallayout>
|
---|
315 |
|
---|
316 | <para>In addition to the above required patches, there exist a number of
|
---|
317 | optional ones created by the LFS community. Most of these solve slight
|
---|
318 | problems, or enable some functionality that's not enabled by default.
|
---|
319 | Feel free to examine the patches database, located at <ulink
|
---|
320 | url="&lfs-root;patches/"/>, and pick any additional patches you wish to
|
---|
321 | use.</para>
|
---|
322 |
|
---|
323 | </sect1>
|
---|
324 |
|
---|
325 | </chapter>
|
---|
326 |
|
---|