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