The materials: packages and patches Introduction Below is a list of packages you need to download for building a basic Linux system. The listed version numbers correspond to versions of the software that are known to work, and this book is based upon them. Unless you are an experienced LFS builder, we highly recommend not to try out newer versions, as the build commands for one version may not work with a newer version. Also, there is often a good reason for not using the latest version due to known problems that haven't been worked around yet. All the URLs, when possible, refer to the project's page at Freshmeat.net. The Freshmeat pages will give you easy access to the official download sites as well as project websites, mailinglists, FAQs, Changelogs and more. We can't guarantee that these download locations are always available to you. In case a download location has changed since this book was published, please try to google for the package. Should you remain unsuccessful with this you should consult the book's errata page at or try the alternative means of download listed at You'll need to store all the downloaded packages and patches somewhere that is conveniently available throughout the entire build. You'll also need a working directory in which to unpack the sources and build them. A scheme that works well is to use $LFS/tools/src/packages for all the downloaded files and $LFS/tools/src for the working directory. In this way, everything will be on the LFS partition and always available. Normally, you should delete the source and build directories after each package installation, unless instructed to do otherwise. All the packages Download or otherwise obtain the following packages: Autoconf (&autoconf-version;) - &autoconf-size;: Automake (&automake-version;) - &automake-size;: Bash (&bash-version;) - &bash-size;: Binutils (&binutils-version;) - &binutils-size;: Bison (&bison-version;) - &bison-size;: Bzip2 (&bzip2-version;) - &bzip2-size;: Coreutils (&coreutils-version;) - &coreutils-size;: DejaGnu (&dejagnu-version;) - &dejagnu-size;: Diffutils (&diffutils-version;) - &diffutils-size;: E2fsprogs (&e2fsprogs-version;) - &e2fsprogs-size;: Ed (&ed-version;) - &ed-size;: Expect (&expect-version;) - &expect-size;: File (&file-version;) - &file-size;: Findutils (&findutils-version;) - &findutils-size;: Flex (&flex-version;) - &flex-size;: Gawk (&gawk-version;) - &gawk-size;: GCC (&gcc-2953-version;) - &gcc-2953-size;: GCC-core (&gcc-version;) - &gcc-core-size;: GCC-g++ (&gcc-version;) - &gcc-gpp-size;: GCC-testsuite (&gcc-version;) - &gcc-testsuite-size;: Gettext (&gettext-version;) - &gettext-size;: Glibc (&glibc-version;) - &glibc-size;: Glibc-linuxthreads (&glibc-version;) - &glibc-threads-size;: Grep (&grep-version;) - &grep-size;: Groff (&groff-version;) - &groff-size;: Grub (&grub-version;) - &grub-size;: Gzip (&gzip-version;) - &gzip-size;: Inetutils (&inetutils-version;) - &inetutils-size;: Kbd (&kbd-version;) - &kbd-size;: Less (&less-version;) - &less-size;: LFS-Bootscripts (&bootscripts-version;) - &bootscripts-size;: Lfs-Utils (&lfs-utils-version;) - &lfs-utils-size;: Libtool (&libtool-version;) - &libtool-size;: Linux (&kernel-version;) - &kernel-size;: M4 (&m4-version;) - &m4-size;: Make (&make-version;) - &make-size;: MAKEDEV (&makedev-version;) - &makedev-size;: Man (&man-version;) - &man-size;: Man-pages (&man-pages-version;) - &man-pages-size;: Modutils (&modutils-version;) - &modutils-size;: Ncurses (&ncurses-version;) - &ncurses-size;: Net-tools (&net-tools-version;) - &net-tools-size;: Patch (&patch-version;) - &patch-size;: Perl (&perl-version;) - &perl-size;: Procinfo (&procinfo-version;) - &procinfo-size;: Procps (&procps-version;) - &procps-size;: Psmisc (&psmisc-version;) - &psmisc-size;: Sed (&sed-version;) - &sed-size;: Shadow (&shadow-version;) - &shadow-size;: Sysklogd (&sysklogd-version;) - &sysklogd-size;: Sysvinit (&sysvinit-version;) - &sysvinit-size;: Tar (&tar-version;) - &tar-size;: Tcl (&tcl-version;) - &tcl-size;: Texinfo (&texinfo-version;) - &texinfo-size;: Util-linux (&util-linux-version;) - &util-linux-size;: Vim (&vim-version;) - &vim-size;: Zlib (&zlib-version;) - &zlib-size;: Total size of these packages: &all-size-mb; Needed patches Besides all those packages, you'll also need several patches. These correct tiny mistakes in the packages that should be fixed by the maintainer, or just make some small modifications to bend things our way. You'll need the following: Bash Patch (&bash-patch-version;) - &bash-patch-size;: Bison Attribute Patch (&bison-patch-version;) - &bison-patch-size;: Coreutils Hostname Patch (&coreutils-hostname-patch-version;) - &coreutils-hostname-patch-size;: Coreutils Uname Patch (&coreutils-uname-patch-version;) - &coreutils-uname-patch-size;: Ed Patch (&ed-patch-version;) - &ed-patch-size;: Expect Patch (&expect-patch-version;) - &expect-patch-size;: Gawk Patch (&gawk-patch-version;) - &gawk-patch-size;: GCC No Fixincludes Patch: (&gcc-nofixincludes-patch-version;) - &gcc-nofixincludes-patch-size;: GCC Specs Patch: (&gcc-specs-patch-version;) - &gcc-specs-patch-size;: GCC Suppress Libiberty Patch: (&gcc-suppress-libiberty-patch-version;) - &gcc-suppress-libiberty-patch-size;: GCC-2 Patch (&gcc-2953-patch-version;) - &gcc-2953-patch-size;: GCC-2 No Fixincludes Patch (&gcc-2953-no-fixinc-patch-version;) - &gcc-2953-no-fixinc-patch-size;: GCC-2 Return Type Patch (&gcc-2953-returntype-fix-patch-version;) - &gcc-2953-returntype-fix-patch-size;: Glibc Sscanf Patch: (&glibc-sscanf-patch-version;) - &glibc-sscanf-patch-size;: Grub Gcc33 Patch (&grub-patch-version;) - &grub-patch-size;: Kbd Patch (&kbd-patch-version;) - &kbd-patch-size;: Man 80Cols Patch (&man-80cols-patch-version;) - &man-80cols-patch-size;: Man Manpath Patch (&man-manpath-patch-version;) - &man-manpath-patch-size;: Man Pager Patch (&man-pager-patch-version;) - &man-pager-patch-size;: Ncurses Etip Patch (&ncurses-etip-patch-version;) - &ncurses-etip-patch-size;: Ncurses Vsscanf Patch (&ncurses-vsscanf-patch-version;) - &ncurses-vsscanf-patch-size;: Net-tools Mii-Tool Gcc33 Patch (&net-tools-mii-patch-version;) - &net-tools-mii-patch-size;: Perl Libc Patch (&perl-libc-patch-version;) - &perl-libc-patch-size;: Procps Patch (&procps-patch-version;) - &procps-patch-size;: Shadow Newgrp Patch (&shadow-patch-version;) - &shadow-patch-size;: Zlib Vsnprintf Patch (&zlib-patch-version;) - &zlib-patch-size;: In addition, there are a number of optional patches that have been created by the LFS community. Most of these solve slight problems, or enable some functionality that's not enabled by default. Please feel free to examine the patches database, located at , and choose any additional patches you might wish to use.