[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 |
|
---|
[3be4d97] | 6 | <sect1 id="ch-materials-introduction">
|
---|
[b0dbf738] | 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
|
---|
[a52b2c2] | 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>
|
---|
[c94dd38] | 30 |
|
---|
[72b845e6] | 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
|
---|
[8f75224] | 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>
|
---|
[617bacd] | 38 |
|
---|
[8f75224] | 39 | <para>So you may want to execute, as <emphasis>root</emphasis>, the following
|
---|
| 40 | command before starting your download session:</para>
|
---|
[617bacd] | 41 |
|
---|
[8f75224] | 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>
|
---|
[72b845e6] | 48 |
|
---|
[b0dbf738] | 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 <userinput>wget</userinput> 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 |
|
---|
[3be4d97] | 60 | <sect1 id="ch-materials-packages">
|
---|
[b0dbf738] | 61 | <title>All the packages</title>
|
---|
| 62 | <?dbhtml filename="packages.html" dir="chapter04"?>
|
---|
| 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 |
|
---|
[2ea93a3] | 88 | DejaGnu (&dejagnu-version;) - &dejagnu-size;:
|
---|
[b0dbf738] | 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 |
|
---|
[d0a6c4c] | 103 | File (&file-version;) - &file-size;: -- <emphasis role="strong">(*) See Note 1 Below</emphasis>
|
---|
[b0dbf738] | 104 | <ulink url="http://freshmeat.net/projects/file/"/>
|
---|
| 105 |
|
---|
| 106 | Findutils (&findutils-version;) - &findutils-size;:
|
---|
[eb70a73] | 107 | <ulink url="http://freshmeat.net/projects/findutils/"/>
|
---|
[b0dbf738] | 108 |
|
---|
| 109 | Flex (&flex-version;) - &flex-size;:
|
---|
[bace8ea] | 110 | <ulink url="ftp://ftp.gnu.org/gnu/non-gnu/flex/"/>
|
---|
[b0dbf738] | 111 |
|
---|
| 112 | Gawk (&gawk-version;) - &gawk-size;:
|
---|
| 113 | <ulink url="http://freshmeat.net/projects/gnuawk/"/>
|
---|
| 114 |
|
---|
| 115 | GCC (&gcc-2953-version;) - &gcc-2953-size;:
|
---|
| 116 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
[00d3878] | 117 |
|
---|
[b0dbf738] | 118 | GCC-core (&gcc-version;) - &gcc-core-size;:
|
---|
| 119 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
[00d3878] | 120 |
|
---|
[b0dbf738] | 121 | GCC-g++ (&gcc-version;) - &gcc-gpp-size;:
|
---|
| 122 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
[eb70a73] | 123 |
|
---|
[b0dbf738] | 124 | GCC-testsuite (&gcc-version;) - &gcc-testsuite-size;:
|
---|
| 125 | <ulink url="http://freshmeat.net/projects/gcc/"/>
|
---|
| 126 |
|
---|
| 127 | Gettext (&gettext-version;) - &gettext-size;:
|
---|
| 128 | <ulink url="http://freshmeat.net/projects/gettext/"/>
|
---|
| 129 |
|
---|
[d0a6c4c] | 130 | Glibc (&glibc-version;) - &glibc-size;: -- <emphasis role="strong">(*) See Note 2 Below</emphasis>
|
---|
[b0dbf738] | 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 |
|
---|
[955533b] | 139 | Grub (&grub-version;) - &grub-size;:
|
---|
| 140 | <ulink url="ftp://alpha.gnu.org/pub/gnu/grub/"/>
|
---|
| 141 |
|
---|
[b0dbf738] | 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;:
|
---|
[a52b2c2] | 155 | <ulink url="&http-down;lfs-bootscripts-&bootscripts-version;.tar.bz2"/>
|
---|
[b0dbf738] | 156 |
|
---|
| 157 | Lfs-Utils (&lfs-utils-version;) - &lfs-utils-size;:
|
---|
[a52b2c2] | 158 | <ulink url="&lfs-root;~winkie/downloads/lfs-utils/"/>
|
---|
[b0dbf738] | 159 |
|
---|
| 160 | Libtool (&libtool-version;) - &libtool-size;:
|
---|
| 161 | <ulink url="http://freshmeat.net/projects/libtool/"/>
|
---|
| 162 |
|
---|
[dc7ba45] | 163 | Linux (&kernel-version;) - &kernel-size;:
|
---|
| 164 | <ulink url="http://freshmeat.net/projects/linux/"/>
|
---|
| 165 |
|
---|
[b0dbf738] | 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;:
|
---|
[a52b2c2] | 173 | <ulink url="&http-down;MAKEDEV-&makedev-version;.bz2"/>
|
---|
[b0dbf738] | 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 |
|
---|
[2ea93a3] | 220 | Tcl (&tcl-version;) - &tcl-size;:
|
---|
[b0dbf738] | 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;:
|
---|
[fbb00ac] | 227 | <ulink url="http://freshmeat.net/projects/util-linux/"/>
|
---|
[b0dbf738] | 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 |
|
---|
[d0a6c4c] | 238 | <note><para>1) File (&file-version;) may not be available by the time you read
|
---|
| 239 | this. The site admins of the master download location are known to occasionally
|
---|
| 240 | remove old versions when new ones are released. Please refer to the
|
---|
[3be4d97] | 241 | <xref linkend="ch-system-file"/> section for an alternate download
|
---|
[d0a6c4c] | 242 | location.</para></note>
|
---|
| 243 |
|
---|
| 244 | <note><para>2) As of this writing, the Glibc maintainers have decided in their
|
---|
| 245 | wisdom not to make available new release tarballs for download. The only way to
|
---|
| 246 | obtain the current Glibc release from pristine upstream sources is to pull it
|
---|
| 247 | from the Glibc CVS repository. The following commands will download the current
|
---|
| 248 | release and make a tarball from it:</para>
|
---|
| 249 |
|
---|
| 250 | <screen><userinput>cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc \
|
---|
| 251 | export -d &glibc-dir; -D "2003-12-02 UTC" libc
|
---|
| 252 | tar jcvf &glibc-package; &glibc-dir;</userinput></screen>
|
---|
| 253 |
|
---|
| 254 | <para>Alternatively, we've made our own tarball available which you can
|
---|
| 255 | download courtesy of the generous LFS mirror sites. Please refer to the
|
---|
[3be4d97] | 256 | <xref linkend="ch-system-glibc"/> section for the download links.</para></note>
|
---|
[4c39859] | 257 |
|
---|
[b0dbf738] | 258 | </sect1>
|
---|
| 259 |
|
---|
| 260 |
|
---|
[3be4d97] | 261 | <sect1 id="ch-materials-patches">
|
---|
[b0dbf738] | 262 | <title>Needed patches</title>
|
---|
| 263 | <?dbhtml filename="patches.html" dir="chapter04"?>
|
---|
| 264 |
|
---|
| 265 | <para>Besides all those packages, you'll also need several patches. These
|
---|
| 266 | correct tiny mistakes in the packages that should be fixed by the maintainer,
|
---|
| 267 | or just make some small modifications to bend things our way. You'll need the
|
---|
| 268 | following:</para>
|
---|
| 269 |
|
---|
| 270 | <literallayout>
|
---|
[7acb4c3] | 271 | Bash Patch - &bash-patch-size;:
|
---|
| 272 | <ulink url="&patches-root;&bash-patch;"/>
|
---|
[b0dbf738] | 273 |
|
---|
[7acb4c3] | 274 | Bison Attribute Patch - &bison-patch-size;:
|
---|
| 275 | <ulink url="&patches-root;&bison-patch;"/>
|
---|
[54df5b44] | 276 |
|
---|
[7acb4c3] | 277 | Coreutils Hostname Patch - &coreutils-hostname-patch-size;:
|
---|
| 278 | <ulink url="&patches-root;&coreutils-hostname-patch;"/>
|
---|
[3985670] | 279 |
|
---|
[d0a6c4c] | 280 | Coreutils Posixver Patch - &coreutils-posixver-patch-size;:
|
---|
| 281 | <ulink url="&patches-root;&coreutils-posixver-patch;"/>
|
---|
| 282 |
|
---|
[7acb4c3] | 283 | Coreutils Uname Patch - &coreutils-uname-patch-size;:
|
---|
| 284 | <ulink url="&patches-root;&coreutils-uname-patch;"/>
|
---|
[b0dbf738] | 285 |
|
---|
[df21e1e] | 286 | Ed Mkstemp Patch - &ed-patch-size;:
|
---|
[7acb4c3] | 287 | <ulink url="&patches-root;&ed-patch;"/>
|
---|
[b0dbf738] | 288 |
|
---|
[821b566] | 289 | Expect Spawn Patch - &expect-patch-size;:
|
---|
[7acb4c3] | 290 | <ulink url="&patches-root;&expect-patch;"/>
|
---|
[b0dbf738] | 291 |
|
---|
[7acb4c3] | 292 | GCC No-Fixincludes Patch - &gcc-nofixincludes-patch-size;:
|
---|
| 293 | <ulink url="&patches-root;&gcc-nofixincludes-patch;"/>
|
---|
[3985670] | 294 |
|
---|
[7acb4c3] | 295 | GCC Specs Patch - &gcc-specs-patch-size;:
|
---|
| 296 | <ulink url="&patches-root;&gcc-specs-patch;"/>
|
---|
[3985670] | 297 |
|
---|
[7acb4c3] | 298 | GCC-2 Patch - &gcc-2953-patch-size;:
|
---|
| 299 | <ulink url="&patches-root;&gcc-2953-patch;"/>
|
---|
[3985670] | 300 |
|
---|
[7acb4c3] | 301 | GCC-2 No-Fixincludes Patch - &gcc-2953-no-fixinc-patch-size;:
|
---|
| 302 | <ulink url="&patches-root;&gcc-2953-no-fixinc-patch;"/>
|
---|
[3985670] | 303 |
|
---|
[7acb4c3] | 304 | GCC-2 Return-Type Patch - &gcc-2953-returntype-fix-patch-size;:
|
---|
| 305 | <ulink url="&patches-root;&gcc-2953-returntype-fix-patch;"/>
|
---|
[008e758] | 306 |
|
---|
[2ad19ed] | 307 | Inetutils No-Server-Man-Pages Patch - &inetutils-no-server-man-pages-patch-size;:
|
---|
| 308 | <ulink url="&patches-root;&inetutils-no-server-man-pages-patch;"/>
|
---|
| 309 |
|
---|
[df21e1e] | 310 | Kbd More-Programs Patch - &kbd-patch-size;:
|
---|
[7acb4c3] | 311 | <ulink url="&patches-root;&kbd-patch;"/>
|
---|
[b0dbf738] | 312 |
|
---|
[7acb4c3] | 313 | Man 80-Columns Patch - &man-80cols-patch-size;:
|
---|
| 314 | <ulink url="&patches-root;&man-80cols-patch;"/>
|
---|
[3985670] | 315 |
|
---|
[7acb4c3] | 316 | Ncurses Etip Patch - &ncurses-etip-patch-size;:
|
---|
| 317 | <ulink url="&patches-root;&ncurses-etip-patch;"/>
|
---|
[3985670] | 318 |
|
---|
[7acb4c3] | 319 | Net-tools Mii-Tool-Gcc33 Patch - &net-tools-mii-patch-size;:
|
---|
| 320 | <ulink url="&patches-root;&net-tools-mii-patch;"/>
|
---|
[94cb9c22] | 321 |
|
---|
[7acb4c3] | 322 | Perl Libc Patch - &perl-libc-patch-size;:
|
---|
| 323 | <ulink url="&patches-root;&perl-libc-patch;"/>
|
---|
[b0dbf738] | 324 | </literallayout>
|
---|
| 325 |
|
---|
[7acb4c3] | 326 | <para>In addition to the above required patches, there exist a number of
|
---|
| 327 | optional ones created by the LFS community. Most of these solve slight
|
---|
[a52b2c2] | 328 | problems, or enable some functionality that's not enabled by default.
|
---|
| 329 | Feel free to examine the patches database, located at <ulink
|
---|
| 330 | url="&lfs-root;patches/"/>, and pick any additional patches you wish to
|
---|
| 331 | use.</para>
|
---|
[2b18510] | 332 |
|
---|
[b0dbf738] | 333 | </sect1>
|
---|
[6370fa6] | 334 |
|
---|
| 335 | </chapter>
|
---|
[0e328c8] | 336 |
|
---|