| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 | <chapter id="chapter-getting-materials" xreflabel="Chapter 4"><title>The materials: packages and patches</title><?dbhtml filename="chapter04.html" dir="chapter04"?><sect1 id="ch-materials-introduction"><title>Introduction</title><?dbhtml filename="introduction.html" dir="chapter04"?><para>Below is a list of packages you need to download for building a basicLinux system. The listed version numbers correspond to versions of thesoftware that are <emphasis>known</emphasis> to work, and this book isbased upon them. Unless you are an experienced LFS builder, we highlyrecommend not to try out newer versions, as the build commands for oneversion may not work with a newer version. Also, there is often a goodreason for not using the latest version due to known problems that haven'tbeen worked around yet.</para><para>All the URLs, when possible, refer to the project's page at<ulink url="http://www.freshmeat.net/"/>. The Freshmeatpages will give you easy access to the official download sites as well asproject websites, mailing lists, FAQs, changelogs and more.</para><para>We can't guarantee that these download locations are always available.In case a download location has changed since this book was published, pleasetry to google for the package. Should you remain unsuccessful with this, youcan consult the book's errata page at <ulink url="&lfs-root;lfs/print/"/>or, better yet, try one of the alternative means of downloading listed on<ulink url="&lfs-root;lfs/packages.html"/>.</para><para>You'll need to store all the downloaded packages and patches somewherethat is conveniently available throughout the entire build. You'll also need aworking directory in which to unpack the sources and build them. A scheme thatworks well is to use <filename>$LFS/sources</filename> as the place to storethe tarballs and patches, <emphasis>and</emphasis> as a working directory.This way everything you need will be located on the LFS partition and availableduring all stages of the building process.</para><para>So you may want to execute, as <emphasis>root</emphasis>, the followingcommand before starting your download session:</para><screen><userinput>mkdir $LFS/sources</userinput></screen><para>And make this directory writable (and sticky) for your normal user -- asyou won't do the downloading as <emphasis>root</emphasis>, we guess:</para><screen><userinput>chmod a+wt $LFS/sources</userinput></screen><!--<para>For your convenience the top of the list contains a link to a fileyou can use with the <ulink url="http://wget.sunsite.dk">wget</ulink>program. Using this file and the <command>wget</command> program willmake it easy to download all the files at once, rather than downloading eachand every individual file manually.</para>--></sect1><sect1 id="ch-materials-packages"><title>All the packages</title><?dbhtml filename="packages.html" dir="chapter04"?><para>Download or otherwise obtain the following packages:</para><literallayout>Autoconf (&autoconf-version;) - &autoconf-size;:<ulink url="http://freshmeat.net/projects/autoconf/"/>Automake (&automake-version;) - &automake-size;:<ulink url="http://freshmeat.net/projects/automake/"/>Bash (&bash-version;) - &bash-size;:<ulink url="http://freshmeat.net/projects/gnubash/"/>Binutils (&binutils-version;) - &binutils-size;:<ulink url="http://freshmeat.net/projects/binutils/"/>Bison (&bison-version;) - &bison-size;:<ulink url="http://freshmeat.net/projects/bison/"/>Bzip2 (&bzip2-version;) - &bzip2-size;:<ulink url="http://freshmeat.net/projects/bzip2/"/>Coreutils (&coreutils-version;) - &coreutils-size;:<ulink url="http://freshmeat.net/projects/coreutils/"/>DejaGnu (&dejagnu-version;) - &dejagnu-size;:<ulink url="http://freshmeat.net/projects/dejagnu/"/>Diffutils (&diffutils-version;) - &diffutils-size;:<ulink url="http://freshmeat.net/projects/diffutils/"/>E2fsprogs (&e2fsprogs-version;) - &e2fsprogs-size;:<ulink url="http://freshmeat.net/projects/e2fsprogs/"/>Ed (&ed-version;) - &ed-size;:<ulink url="http://freshmeat.net/projects/ed/"/>Expect (&expect-version;) - &expect-size;:<ulink url="http://freshmeat.net/projects/expect/"/>File (&file-version;) - &file-size;: -- <emphasis>(see Note 1 below)</emphasis><ulink url="http://freshmeat.net/projects/file/"/>Findutils (&findutils-version;) - &findutils-size;:<ulink url="http://freshmeat.net/projects/findutils/"/>Flex (&flex-version;) - &flex-size;:<ulink url="ftp://ftp.gnu.org/gnu/non-gnu/flex/"/>Gawk (&gawk-version;) - &gawk-size;:<ulink url="http://freshmeat.net/projects/gnuawk/"/>GCC (&gcc-2953-version;) - &gcc-2953-size;:<ulink url="http://freshmeat.net/projects/gcc/"/>GCC-core (&gcc-version;) - &gcc-core-size;:<ulink url="http://freshmeat.net/projects/gcc/"/>GCC-g++ (&gcc-version;) - &gcc-gpp-size;:<ulink url="http://freshmeat.net/projects/gcc/"/>GCC-testsuite (&gcc-version;) - &gcc-testsuite-size;:<ulink url="http://freshmeat.net/projects/gcc/"/>Gettext (&gettext-version;) - &gettext-size;:<ulink url="http://freshmeat.net/projects/gettext/"/>Glibc (&glibc-version;) - &glibc-size;: -- <emphasis>(see Note 2 below)</emphasis><ulink url="http://freshmeat.net/projects/glibc/"/>Grep (&grep-version;) - &grep-size;:<ulink url="http://freshmeat.net/projects/grep/"/>Groff (&groff-version;) - &groff-size;:<ulink url="http://freshmeat.net/projects/groff/"/>Grub (&grub-version;) - &grub-size;:<ulink url="ftp://alpha.gnu.org/pub/gnu/grub/"/>Gzip (&gzip-version;) - &gzip-size;:<ulink url="ftp://alpha.gnu.org/gnu/gzip/"/>Inetutils (&inetutils-version;) - &inetutils-size;:<ulink url="http://freshmeat.net/projects/inetutils/"/>Kbd (&kbd-version;) - &kbd-size;:<ulink url="http://freshmeat.net/projects/kbd/"/>Less (&less-version;) - &less-size;:<ulink url="http://freshmeat.net/projects/less/"/>LFS-Bootscripts (&bootscripts-version;) - &bootscripts-size;:<ulink url="&http-down;lfs-bootscripts-&bootscripts-version;.tar.bz2"/>Lfs-Utils (&lfs-utils-version;) - &lfs-utils-size;:<ulink url="&lfs-root;~winkie/downloads/lfs-utils/"/>Libtool (&libtool-version;) - &libtool-size;:<ulink url="http://freshmeat.net/projects/libtool/"/>Linux (&kernel-version;) - &kernel-size;:<ulink url="http://freshmeat.net/projects/linux/"/>M4 (&m4-version;) - &m4-size;:<ulink url="http://freshmeat.net/projects/gnum4/"/>Make (&make-version;) - &make-size;:<ulink url="http://freshmeat.net/projects/gnumake/"/>Make_devices (&makedev-version;) - &makedev-size;:<ulink url="&lfs-root;~alex/make_devices-&makedev-version;.bz2"/>Man (&man-version;) - &man-size;:<ulink url="http://freshmeat.net/projects/man/"/>Man-pages (&man-pages-version;) - &man-pages-size;:<ulink url="http://freshmeat.net/projects/man-pages/"/>Modutils (&modutils-version;) - &modutils-size;:<ulink url="http://freshmeat.net/projects/modutils/"/>Ncurses (&ncurses-version;) - &ncurses-size;:<ulink url="http://freshmeat.net/projects/ncurses/"/>Net-tools (&net-tools-version;) - &net-tools-size;:<ulink url="http://freshmeat.net/projects/net-tools/"/>Patch (&patch-version;) - &patch-size;:<ulink url="http://freshmeat.net/projects/patch/"/>Perl (&perl-version;) - &perl-size;:<ulink url="http://freshmeat.net/projects/perl/"/>Procinfo (&procinfo-version;) - &procinfo-size;:<ulink url="http://freshmeat.net/projects/procinfo/"/>Procps (&procps-version;) - &procps-size;:<ulink url="http://freshmeat.net/projects/procps/"/>Psmisc (&psmisc-version;) - &psmisc-size;:<ulink url="http://freshmeat.net/projects/psmisc/"/>Sed (&sed-version;) - &sed-size;:<ulink url="http://freshmeat.net/projects/sed/"/>Shadow (&shadow-version;) - &shadow-size;:<ulink url="http://freshmeat.net/projects/shadow/"/>Sysklogd (&sysklogd-version;) - &sysklogd-size;:<ulink url="http://freshmeat.net/projects/sysklogd/"/>Sysvinit (&sysvinit-version;) - &sysvinit-size;:<ulink url="http://freshmeat.net/projects/sysvinit/"/>Tar (&tar-version;) - &tar-size;:<ulink url="ftp://alpha.gnu.org/gnu/tar/"/>Tcl (&tcl-version;) - &tcl-size;:<ulink url="http://freshmeat.net/projects/tcltk/"/>Texinfo (&texinfo-version;) - &texinfo-size;:<ulink url="http://freshmeat.net/projects/texinfo/"/>Util-linux (&util-linux-version;) - &util-linux-size;:<ulink url="http://freshmeat.net/projects/util-linux/"/>Vim (&vim-version;) - &vim-size;:<ulink url="http://freshmeat.net/projects/vim/"/>Zlib (&zlib-version;) - &zlib-size;:<ulink url="http://freshmeat.net/projects/zlib/"/>Total size of these packages: &all-size-mb;</literallayout><note><para>1) File (&file-version;) may not be available by the time you readthis. The site admins of the master download location are known to occasionallyremove old versions when new ones are released. Please refer to the<xref linkend="ch-system-file"/> section for an alternate downloadlocation.</para></note><note><para>2) As of this writing, the Glibc maintainers have decided in theirwisdom not to make available new release tarballs for download. The only way toobtain the current Glibc release from pristine upstream sources is to pull itfrom the Glibc CVS repository. The following commands will download the currentrelease and make a tarball from it:</para><screen><userinput>cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc \    export -d &glibc-dir; -D "2003-12-02 UTC" libctar jcvf &glibc-package; &glibc-dir;</userinput></screen><para>Alternatively, we've made our own tarball available which you candownload courtesy of the generous LFS mirror sites. Please refer to the<xref linkend="ch-tools-glibc"/> section for the download links.</para></note></sect1><sect1 id="ch-materials-patches"><title>Needed patches</title><?dbhtml filename="patches.html" dir="chapter04"?><para>Besides all those packages, you'll also need several patches. Thesecorrect 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 thefollowing:</para><literallayout>Bash Patch - &bash-patch-size;:<ulink url="&patches-root;&bash-patch;"/>Bison Attribute Patch - &bison-patch-size;:<ulink url="&patches-root;&bison-patch;"/>Coreutils Hostname Patch - &coreutils-hostname-patch-size;:<ulink url="&patches-root;&coreutils-hostname-patch;"/>Coreutils Posixver Patch - &coreutils-posixver-patch-size;:<ulink url="&patches-root;&coreutils-posixver-patch;"/>Coreutils Uname Patch - &coreutils-uname-patch-size;:<ulink url="&patches-root;&coreutils-uname-patch;"/>Ed Mkstemp Patch - &ed-patch-size;:<ulink url="&patches-root;&ed-patch;"/>Expect Spawn Patch - &expect-patch-size;:<ulink url="&patches-root;&expect-patch;"/>GCC No-Fixincludes Patch - &gcc-nofixincludes-patch-size;:<ulink url="&patches-root;&gcc-nofixincludes-patch;"/>GCC Specs Patch - &gcc-specs-patch-size;:<ulink url="&patches-root;&gcc-specs-patch;"/>GCC-2 Patch - &gcc-2953-patch-size;:<ulink url="&patches-root;&gcc-2953-patch;"/>GCC-2 No-Fixincludes Patch - &gcc-2953-no-fixinc-patch-size;:<ulink url="&patches-root;&gcc-2953-no-fixinc-patch;"/>GCC-2 Return-Type Patch - &gcc-2953-returntype-fix-patch-size;:<ulink url="&patches-root;&gcc-2953-returntype-fix-patch;"/>Inetutils No-Server-Man-Pages Patch - &inetutils-no-server-man-pages-patch-size;:<ulink url="&patches-root;&inetutils-no-server-man-pages-patch;"/>Kbd More-Programs Patch - &kbd-patch-size;:<ulink url="&patches-root;&kbd-patch;"/>Man 80-Columns Patch - &man-80cols-patch-size;:<ulink url="&patches-root;&man-80cols-patch;"/>Ncurses Etip Patch - &ncurses-etip-patch-size;:<ulink url="&patches-root;&ncurses-etip-patch;"/>Net-tools Mii-Tool-Gcc33 Patch - &net-tools-mii-patch-size;:<ulink url="&patches-root;&net-tools-mii-patch;"/>Perl Libc Patch - &perl-libc-patch-size;:<ulink url="&patches-root;&perl-libc-patch;"/></literallayout><para>In addition to the above required patches, there exist a number ofoptional ones created by the LFS community. Most of these solve slightproblems, or enable some functionality that's not enabled by default.Feel free to examine the patches database, located at <ulinkurl="&lfs-root;patches/"/>, and pick any additional patches you wish touse.</para></sect1></chapter>
 |