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