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 . The Freshmeat pages will give you easy access to the official download sites as well as project websites, mailing lists, FAQs, changelogs and more. We can't guarantee that these download locations are always available. 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 can consult the book's errata page at or, better yet, try one of the alternative means of downloading listed on . 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/sources as the place to store the tarballs and patches, and as a working directory. This way everything you need will be located on the LFS partition and available during all stages of the building process. So you may want to execute, as root, the following command before starting your download session: mkdir $LFS/sources And make this directory writable (and sticky) for your normal user -- as you won't do the downloading as root, we guess: chmod a+wt $LFS/sources 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;: -- (see Note 1 below) 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;: -- (see Note 2 below) 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; 1) File (&file-version;) may not be available by the time you read this. The site admins of the master download location are known to occasionally remove old versions when new ones are released. Please refer to the section for an alternate download location. 2) As of this writing, the Glibc maintainers have decided in their wisdom not to make available new release tarballs for download. The only way to obtain the current Glibc release from pristine upstream sources is to pull it from the Glibc CVS repository. The following commands will download the current release and make a tarball from it: cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc \     export -d &glibc-dir; -D "2003-12-02 UTC" libc tar jcvf &glibc-package; &glibc-dir; Alternatively, we've made our own tarball available which you can download courtesy of the generous LFS mirror sites. Please refer to the section for the download links. 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-size;: Bison Attribute Patch - &bison-patch-size;: Coreutils Hostname Patch - &coreutils-hostname-patch-size;: Coreutils Posixver Patch - &coreutils-posixver-patch-size;: Coreutils Uname Patch - &coreutils-uname-patch-size;: Ed Mkstemp Patch - &ed-patch-size;: Expect Spawn Patch - &expect-patch-size;: GCC No-Fixincludes Patch - &gcc-nofixincludes-patch-size;: GCC Specs Patch - &gcc-specs-patch-size;: GCC-2 Patch - &gcc-2953-patch-size;: GCC-2 No-Fixincludes Patch - &gcc-2953-no-fixinc-patch-size;: GCC-2 Return-Type Patch - &gcc-2953-returntype-fix-patch-size;: Inetutils No-Server-Man-Pages Patch - &inetutils-no-server-man-pages-patch-size;: Kbd More-Programs Patch - &kbd-patch-size;: Man 80-Columns Patch - &man-80cols-patch-size;: Ncurses Etip Patch - &ncurses-etip-patch-size;: Net-tools Mii-Tool-Gcc33 Patch - &net-tools-mii-patch-size;: Perl Libc Patch - &perl-libc-patch-size;: In addition to the above required patches, there exist a number of optional ones created by the LFS community. Most of these solve slight problems, or enable some functionality that's not enabled by default. Feel free to examine the patches database, located at , and pick any additional patches you wish to use.