chapter04.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <chapter id="chapter-getting-materials" xreflabel="Chapter 4">
  2. <title>The materials: packages and patches</title>
  3. <?dbhtml filename="chapter04.html" dir="chapter04"?>
  4. <sect1 id="materials-introduction">
  5. <title>Introduction</title>
  6. <?dbhtml filename="introduction.html" dir="chapter04"?>
  7. <para>Below is a list of packages you need to download for building a basic
  8. Linux system. The listed version numbers correspond to versions of the
  9. software that are <emphasis>known</emphasis> to work, and this book is
  10. based upon them. Unless you are an experienced LFS builder, we highly
  11. recommend not to try out newer versions, as the build commands for one
  12. version may not work with a newer version. Also, there is often a good
  13. reason for not using the latest version due to known problems that haven't
  14. been worked around yet.</para>
  15. <para>All the URLs, when possible, refer to the project's page at
  16. <ulink url="http://www.freshmeat.net/"/>. The Freshmeat
  17. pages will give you easy access to the official download sites as well as
  18. project websites, mailing lists, FAQs, changelogs and more.</para>
  19. <para>We can't guarantee that these download locations are always available.
  20. In case a download location has changed since this book was published, please
  21. try to google for the package. Should you remain unsuccessful with this, you
  22. can consult the book's errata page at <ulink url="&lfs-root;lfs/print/"/>
  23. or, better yet, try one of the alternative means of downloading listed on
  24. <ulink url="&lfs-root;lfs/packages.html"/>.</para>
  25. <para>You'll need to store all the downloaded packages and patches somewhere
  26. that is conveniently available throughout the entire build. You'll also need a
  27. working directory in which to unpack the sources and build them. A scheme that
  28. works well is to use <filename>$LFS/sources</filename> as the place to store
  29. the tarballs and patches, <emphasis>and</emphasis> as a working directory.
  30. This way everything you need will be located on the LFS partition and available
  31. during all stages of the building process.</para>
  32. <para>So you may want to execute, as <emphasis>root</emphasis>, the following
  33. command before starting your download session:</para>
  34. <screen><userinput>mkdir $LFS/sources</userinput></screen>
  35. <para>And make this directory writable (and sticky) for your normal user -- as
  36. you won't do the downloading as <emphasis>root</emphasis>, we guess:</para>
  37. <screen><userinput>chmod a+wt $LFS/sources</userinput></screen>
  38. <!--
  39. <para>For your convenience the top of the list contains a link to a file
  40. you can use with the <ulink url="http://wget.sunsite.dk">wget</ulink>
  41. program. Using this file and the <command>wget</command> program will
  42. make it easy to download all the files at once, rather than downloading each
  43. and every individual file manually.</para>
  44. -->
  45. </sect1>
  46. <sect1 id="materials-packages">
  47. <title>All the packages</title>
  48. <?dbhtml filename="packages.html" dir="chapter04"?>
  49. <para>Download or otherwise obtain the following packages:</para>
  50. <literallayout>
  51. Autoconf (&autoconf-version;) - &autoconf-size;:
  52. <ulink url="http://freshmeat.net/projects/autoconf/"/>
  53. Automake (&automake-version;) - &automake-size;:
  54. <ulink url="http://freshmeat.net/projects/automake/"/>
  55. Bash (&bash-version;) - &bash-size;:
  56. <ulink url="http://freshmeat.net/projects/gnubash/"/>
  57. Binutils (&binutils-version;) - &binutils-size;:
  58. <ulink url="http://freshmeat.net/projects/binutils/"/>
  59. Bison (&bison-version;) - &bison-size;:
  60. <ulink url="http://freshmeat.net/projects/bison/"/>
  61. Bzip2 (&bzip2-version;) - &bzip2-size;:
  62. <ulink url="http://freshmeat.net/projects/bzip2/"/>
  63. Coreutils (&coreutils-version;) - &coreutils-size;:
  64. <ulink url="http://freshmeat.net/projects/coreutils/"/>
  65. DejaGnu (&dejagnu-version;) - &dejagnu-size;:
  66. <ulink url="http://freshmeat.net/projects/dejagnu/"/>
  67. Diffutils (&diffutils-version;) - &diffutils-size;:
  68. <ulink url="http://freshmeat.net/projects/diffutils/"/>
  69. E2fsprogs (&e2fsprogs-version;) - &e2fsprogs-size;:
  70. <ulink url="http://freshmeat.net/projects/e2fsprogs/"/>
  71. Ed (&ed-version;) - &ed-size;:
  72. <ulink url="http://freshmeat.net/projects/ed/"/>
  73. Expect (&expect-version;) - &expect-size;:
  74. <ulink url="http://freshmeat.net/projects/expect/"/>
  75. File (&file-version;) - &file-size;: -- <emphasis>(see Note 1 below)</emphasis>
  76. <ulink url="http://freshmeat.net/projects/file/"/>
  77. Findutils (&findutils-version;) - &findutils-size;:
  78. <ulink url="http://freshmeat.net/projects/findutils/"/>
  79. Flex (&flex-version;) - &flex-size;:
  80. <ulink url="ftp://ftp.gnu.org/gnu/non-gnu/flex/"/>
  81. Gawk (&gawk-version;) - &gawk-size;:
  82. <ulink url="http://freshmeat.net/projects/gnuawk/"/>
  83. GCC (&gcc-2953-version;) - &gcc-2953-size;:
  84. <ulink url="http://freshmeat.net/projects/gcc/"/>
  85. GCC-core (&gcc-version;) - &gcc-core-size;:
  86. <ulink url="http://freshmeat.net/projects/gcc/"/>
  87. GCC-g++ (&gcc-version;) - &gcc-gpp-size;:
  88. <ulink url="http://freshmeat.net/projects/gcc/"/>
  89. GCC-testsuite (&gcc-version;) - &gcc-testsuite-size;:
  90. <ulink url="http://freshmeat.net/projects/gcc/"/>
  91. Gettext (&gettext-version;) - &gettext-size;:
  92. <ulink url="http://freshmeat.net/projects/gettext/"/>
  93. Glibc (&glibc-version;) - &glibc-size;: -- <emphasis>(see Note 2 below)</emphasis>
  94. <ulink url="http://freshmeat.net/projects/glibc/"/>
  95. Grep (&grep-version;) - &grep-size;:
  96. <ulink url="http://freshmeat.net/projects/grep/"/>
  97. Groff (&groff-version;) - &groff-size;:
  98. <ulink url="http://freshmeat.net/projects/groff/"/>
  99. Grub (&grub-version;) - &grub-size;:
  100. <ulink url="ftp://alpha.gnu.org/pub/gnu/grub/"/>
  101. Gzip (&gzip-version;) - &gzip-size;:
  102. <ulink url="ftp://alpha.gnu.org/gnu/gzip/"/>
  103. Inetutils (&inetutils-version;) - &inetutils-size;:
  104. <ulink url="http://freshmeat.net/projects/inetutils/"/>
  105. Kbd (&kbd-version;) - &kbd-size;:
  106. <ulink url="http://freshmeat.net/projects/kbd/"/>
  107. Less (&less-version;) - &less-size;:
  108. <ulink url="http://freshmeat.net/projects/less/"/>
  109. LFS-Bootscripts (&bootscripts-version;) - &bootscripts-size;:
  110. <ulink url="&http-down;lfs-bootscripts-&bootscripts-version;.tar.bz2"/>
  111. Lfs-Utils (&lfs-utils-version;) - &lfs-utils-size;:
  112. <ulink url="&lfs-root;~winkie/downloads/lfs-utils/"/>
  113. Libtool (&libtool-version;) - &libtool-size;:
  114. <ulink url="http://freshmeat.net/projects/libtool/"/>
  115. Linux (&kernel-version;) - &kernel-size;:
  116. <ulink url="http://freshmeat.net/projects/linux/"/>
  117. M4 (&m4-version;) - &m4-size;:
  118. <ulink url="http://freshmeat.net/projects/gnum4/"/>
  119. Make (&make-version;) - &make-size;:
  120. <ulink url="http://freshmeat.net/projects/gnumake/"/>
  121. Make_devices (&makedev-version;) - &makedev-size;:
  122. <ulink url="&lfs-root;~alex/make_devices-&makedev-version;.bz2"/>
  123. Man (&man-version;) - &man-size;:
  124. <ulink url="http://freshmeat.net/projects/man/"/>
  125. Man-pages (&man-pages-version;) - &man-pages-size;:
  126. <ulink url="http://freshmeat.net/projects/man-pages/"/>
  127. Modutils (&modutils-version;) - &modutils-size;:
  128. <ulink url="http://freshmeat.net/projects/modutils/"/>
  129. Ncurses (&ncurses-version;) - &ncurses-size;:
  130. <ulink url="http://freshmeat.net/projects/ncurses/"/>
  131. Net-tools (&net-tools-version;) - &net-tools-size;:
  132. <ulink url="http://freshmeat.net/projects/net-tools/"/>
  133. Patch (&patch-version;) - &patch-size;:
  134. <ulink url="http://freshmeat.net/projects/patch/"/>
  135. Perl (&perl-version;) - &perl-size;:
  136. <ulink url="http://freshmeat.net/projects/perl/"/>
  137. Procinfo (&procinfo-version;) - &procinfo-size;:
  138. <ulink url="http://freshmeat.net/projects/procinfo/"/>
  139. Procps (&procps-version;) - &procps-size;:
  140. <ulink url="http://freshmeat.net/projects/procps/"/>
  141. Psmisc (&psmisc-version;) - &psmisc-size;:
  142. <ulink url="http://freshmeat.net/projects/psmisc/"/>
  143. Sed (&sed-version;) - &sed-size;:
  144. <ulink url="http://freshmeat.net/projects/sed/"/>
  145. Shadow (&shadow-version;) - &shadow-size;:
  146. <ulink url="http://freshmeat.net/projects/shadow/"/>
  147. Sysklogd (&sysklogd-version;) - &sysklogd-size;:
  148. <ulink url="http://freshmeat.net/projects/sysklogd/"/>
  149. Sysvinit (&sysvinit-version;) - &sysvinit-size;:
  150. <ulink url="http://freshmeat.net/projects/sysvinit/"/>
  151. Tar (&tar-version;) - &tar-size;:
  152. <ulink url="ftp://alpha.gnu.org/gnu/tar/"/>
  153. Tcl (&tcl-version;) - &tcl-size;:
  154. <ulink url="http://freshmeat.net/projects/tcltk/"/>
  155. Texinfo (&texinfo-version;) - &texinfo-size;:
  156. <ulink url="http://freshmeat.net/projects/texinfo/"/>
  157. Util-linux (&util-linux-version;) - &util-linux-size;:
  158. <ulink url="http://freshmeat.net/projects/util-linux/"/>
  159. Vim (&vim-version;) - &vim-size;:
  160. <ulink url="http://freshmeat.net/projects/vim/"/>
  161. Zlib (&zlib-version;) - &zlib-size;:
  162. <ulink url="http://freshmeat.net/projects/zlib/"/>
  163. Total size of these packages: &all-size-mb;
  164. </literallayout>
  165. <note><para>1) File (&file-version;) may not be available by the time you read
  166. this. The site admins of the master download location are known to occasionally
  167. remove old versions when new ones are released. Please refer to the
  168. <xref linkend="ch-system-file"/> section for an alternate download
  169. location.</para></note>
  170. <note><para>2) As of this writing, the Glibc maintainers have decided in their
  171. wisdom not to make available new release tarballs for download. The only way to
  172. obtain the current Glibc release from pristine upstream sources is to pull it
  173. from the Glibc CVS repository. The following commands will download the current
  174. release and make a tarball from it:</para>
  175. <screen><userinput>cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc \
  176. &nbsp;&nbsp;&nbsp;&nbsp;export -d &glibc-dir; -D "2003-12-02 UTC" libc
  177. tar jcvf &glibc-package; &glibc-dir;</userinput></screen>
  178. <para>Alternatively, we've made our own tarball available which you can
  179. download courtesy of the generous LFS mirror sites. Please refer to the
  180. <xref linkend="ch-tools-glibc"/> section for the download links.</para></note>
  181. </sect1>
  182. <sect1 id="materials-patches">
  183. <title>Needed patches</title>
  184. <?dbhtml filename="patches.html" dir="chapter04"?>
  185. <para>Besides all those packages, you'll also need several patches. These
  186. correct tiny mistakes in the packages that should be fixed by the maintainer,
  187. or just make some small modifications to bend things our way. You'll need the
  188. following:</para>
  189. <literallayout>
  190. Bash Patch - &bash-patch-size;:
  191. <ulink url="&patches-root;&bash-patch;"/>
  192. Bison Attribute Patch - &bison-patch-size;:
  193. <ulink url="&patches-root;&bison-patch;"/>
  194. Coreutils Hostname Patch - &coreutils-hostname-patch-size;:
  195. <ulink url="&patches-root;&coreutils-hostname-patch;"/>
  196. Coreutils Posixver Patch - &coreutils-posixver-patch-size;:
  197. <ulink url="&patches-root;&coreutils-posixver-patch;"/>
  198. Coreutils Uname Patch - &coreutils-uname-patch-size;:
  199. <ulink url="&patches-root;&coreutils-uname-patch;"/>
  200. Ed Mkstemp Patch - &ed-patch-size;:
  201. <ulink url="&patches-root;&ed-patch;"/>
  202. Expect Spawn Patch - &expect-patch-size;:
  203. <ulink url="&patches-root;&expect-patch;"/>
  204. GCC No-Fixincludes Patch - &gcc-nofixincludes-patch-size;:
  205. <ulink url="&patches-root;&gcc-nofixincludes-patch;"/>
  206. GCC Specs Patch - &gcc-specs-patch-size;:
  207. <ulink url="&patches-root;&gcc-specs-patch;"/>
  208. GCC-2 Patch - &gcc-2953-patch-size;:
  209. <ulink url="&patches-root;&gcc-2953-patch;"/>
  210. GCC-2 No-Fixincludes Patch - &gcc-2953-no-fixinc-patch-size;:
  211. <ulink url="&patches-root;&gcc-2953-no-fixinc-patch;"/>
  212. GCC-2 Return-Type Patch - &gcc-2953-returntype-fix-patch-size;:
  213. <ulink url="&patches-root;&gcc-2953-returntype-fix-patch;"/>
  214. Inetutils No-Server-Man-Pages Patch - &inetutils-no-server-man-pages-patch-size;:
  215. <ulink url="&patches-root;&inetutils-no-server-man-pages-patch;"/>
  216. Kbd More-Programs Patch - &kbd-patch-size;:
  217. <ulink url="&patches-root;&kbd-patch;"/>
  218. Man 80-Columns Patch - &man-80cols-patch-size;:
  219. <ulink url="&patches-root;&man-80cols-patch;"/>
  220. Net-tools Mii-Tool-Gcc33 Patch - &net-tools-mii-patch-size;:
  221. <ulink url="&patches-root;&net-tools-mii-patch;"/>
  222. Perl Libc Patch - &perl-libc-patch-size;:
  223. <ulink url="&patches-root;&perl-libc-patch;"/>
  224. </literallayout>
  225. <para>In addition to the above required patches, there exist a number of
  226. optional ones created by the LFS community. Most of these solve slight
  227. problems, or enable some functionality that's not enabled by default.
  228. Feel free to examine the patches database, located at <ulink
  229. url="&lfs-root;patches/"/>, and pick any additional patches you wish to
  230. use.</para>
  231. </sect1>
  232. </chapter>