chapter04.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <chapter id="chapter04">
  2. <title>The materials: packages and patches</title>
  3. <?dbhtml filename="chapter04.html" dir="chapter04"?>
  4. <sect1 id="ch04-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, mailinglists, FAQs, Changelogs and more.</para>
  19. <para>We can't guarantee that these download locations are always available
  20. to you. In case a download location has changed since this book was
  21. published, please try to google for the package. Should you remain
  22. unsuccessful with this you should consult the book's errata page at
  23. <ulink url="http://linuxfromscratch.org/lfs/print"/> or try
  24. the alternative means of download listed at
  25. <ulink url="http://linuxfromscratch.org/lfs/packages.html"/></para>
  26. <para>You'll need to store all the downloaded packages and patches somewhere
  27. that is conveniently available throughout the entire build. You'll also need a
  28. working directory in which to unpack the sources and build them. A scheme that
  29. works well is to use $LFS/tools/src/packages for all the downloaded files and
  30. $LFS/tools/src for the working directory. In this way, everything will be on the
  31. LFS partition and always available. Normally, you should delete the source and
  32. build directories after each package installation, unless instructed to do
  33. otherwise.</para>
  34. <!--
  35. <para>For your convenience the top of the list contains a link to a file
  36. you can use with the <ulink url="http://wget.sunsite.dk">wget</ulink>
  37. program. Using this file and the <userinput>wget</userinput> program will
  38. make it easy to download all the files at once, rather than downloading each
  39. and every individual file manually.</para>
  40. -->
  41. </sect1>
  42. <sect1 id="ch04-packages">
  43. <title>All the packages</title>
  44. <?dbhtml filename="packages.html" dir="chapter04"?>
  45. <para>Download or otherwise obtain the following packages:</para>
  46. <literallayout>
  47. Autoconf (&autoconf-version;) - &autoconf-size;:
  48. <ulink url="http://freshmeat.net/projects/autoconf/"/>
  49. Automake (&automake-version;) - &automake-size;:
  50. <ulink url="http://freshmeat.net/projects/automake/"/>
  51. Bash (&bash-version;) - &bash-size;:
  52. <ulink url="http://freshmeat.net/projects/gnubash/"/>
  53. Binutils (&binutils-version;) - &binutils-size;:
  54. <ulink url="http://freshmeat.net/projects/binutils/"/>
  55. Bison (&bison-version;) - &bison-size;:
  56. <ulink url="http://freshmeat.net/projects/bison/"/>
  57. Bzip2 (&bzip2-version;) - &bzip2-size;:
  58. <ulink url="http://freshmeat.net/projects/bzip2/"/>
  59. Coreutils (&coreutils-version;) - &coreutils-size;:
  60. <ulink url="http://freshmeat.net/projects/coreutils/"/>
  61. DejaGnu (&dejagnu-version;) - &dejagnu-size;:
  62. <ulink url="http://freshmeat.net/projects/dejagnu/"/>
  63. Diffutils (&diffutils-version;) - &diffutils-size;:
  64. <ulink url="http://freshmeat.net/projects/diffutils/"/>
  65. E2fsprogs (&e2fsprogs-version;) - &e2fsprogs-size;:
  66. <ulink url="http://freshmeat.net/projects/e2fsprogs/"/>
  67. Ed (&ed-version;) - &ed-size;:
  68. <ulink url="http://freshmeat.net/projects/ed/"/>
  69. Expect (&expect-version;) - &expect-size;:
  70. <ulink url="http://freshmeat.net/projects/expect/"/>
  71. File (&file-version;) - &file-size;:
  72. <ulink url="http://freshmeat.net/projects/file/"/>
  73. Findutils (&findutils-version;) - &findutils-size;:
  74. <ulink url="http://freshmeat.net/projects/findutils/"/>
  75. Flex (&flex-version;) - &flex-size;:
  76. <ulink url="ftp://ftp.gnu.org/gnu/non-gnu/flex/"/>
  77. Gawk (&gawk-version;) - &gawk-size;:
  78. <ulink url="http://freshmeat.net/projects/gnuawk/"/>
  79. GCC (&gcc-2953-version;) - &gcc-2953-size;:
  80. <ulink url="http://freshmeat.net/projects/gcc/"/>
  81. GCC-core (&gcc-version;) - &gcc-core-size;:
  82. <ulink url="http://freshmeat.net/projects/gcc/"/>
  83. GCC-g++ (&gcc-version;) - &gcc-gpp-size;:
  84. <ulink url="http://freshmeat.net/projects/gcc/"/>
  85. GCC-testsuite (&gcc-version;) - &gcc-testsuite-size;:
  86. <ulink url="http://freshmeat.net/projects/gcc/"/>
  87. Gettext (&gettext-version;) - &gettext-size;:
  88. <ulink url="http://freshmeat.net/projects/gettext/"/>
  89. Glibc (&glibc-version;) - &glibc-size;:
  90. <ulink url="http://freshmeat.net/projects/glibc/"/>
  91. Glibc-linuxthreads (&glibc-version;) - &glibc-threads-size;:
  92. <ulink url="http://freshmeat.net/projects/glibc/"/>
  93. Grep (&grep-version;) - &grep-size;:
  94. <ulink url="http://freshmeat.net/projects/grep/"/>
  95. Groff (&groff-version;) - &groff-size;:
  96. <ulink url="http://freshmeat.net/projects/groff/"/>
  97. Grub (&grub-version;) - &grub-size;:
  98. <ulink url="ftp://alpha.gnu.org/pub/gnu/grub/"/>
  99. Gzip (&gzip-version;) - &gzip-size;:
  100. <ulink url="ftp://alpha.gnu.org/gnu/gzip/"/>
  101. Inetutils (&inetutils-version;) - &inetutils-size;:
  102. <ulink url="http://freshmeat.net/projects/inetutils/"/>
  103. Kbd (&kbd-version;) - &kbd-size;:
  104. <ulink url="http://freshmeat.net/projects/kbd/"/>
  105. Less (&less-version;) - &less-size;:
  106. <ulink url="http://freshmeat.net/projects/less/"/>
  107. LFS-Bootscripts (&bootscripts-version;) - &bootscripts-size;:
  108. <ulink url="&http;/lfs-bootscripts-&bootscripts-version;.tar.bz2"/>
  109. Lfs-Utils (&lfs-utils-version;) - &lfs-utils-size;:
  110. <ulink url="http://www.linuxfromscratch.org/~winkie/downloads/lfs-utils/"/>
  111. Libtool (&libtool-version;) - &libtool-size;:
  112. <ulink url="http://freshmeat.net/projects/libtool/"/>
  113. Linux (&kernel-version;) - &kernel-size;:
  114. <ulink url="http://freshmeat.net/projects/linux/"/>
  115. M4 (&m4-version;) - &m4-size;:
  116. <ulink url="http://freshmeat.net/projects/gnum4/"/>
  117. Make (&make-version;) - &make-size;:
  118. <ulink url="http://freshmeat.net/projects/gnumake"/>
  119. MAKEDEV (&makedev-version;) - &makedev-size;:
  120. <ulink url="&http;/MAKEDEV-&makedev-version;.bz2"/>
  121. Man (&man-version;) - &man-size;:
  122. <ulink url="http://freshmeat.net/projects/man/"/>
  123. Man-pages (&man-pages-version;) - &man-pages-size;:
  124. <ulink url="http://freshmeat.net/projects/man-pages/"/>
  125. Modutils (&modutils-version;) - &modutils-size;:
  126. <ulink url="http://freshmeat.net/projects/modutils/"/>
  127. Ncurses (&ncurses-version;) - &ncurses-size;:
  128. <ulink url="http://freshmeat.net/projects/ncurses/"/>
  129. Net-tools (&net-tools-version;) - &net-tools-size;:
  130. <ulink url="http://freshmeat.net/projects/net-tools/"/>
  131. Patch (&patch-version;) - &patch-size;:
  132. <ulink url="http://freshmeat.net/projects/patch/"/>
  133. Perl (&perl-version;) - &perl-size;:
  134. <ulink url="http://freshmeat.net/projects/perl/"/>
  135. Procinfo (&procinfo-version;) - &procinfo-size;:
  136. <ulink url="http://freshmeat.net/projects/procinfo/"/>
  137. Procps (&procps-version;) - &procps-size;:
  138. <ulink url="http://freshmeat.net/projects/procps/"/>
  139. Psmisc (&psmisc-version;) - &psmisc-size;:
  140. <ulink url="http://freshmeat.net/projects/psmisc/"/>
  141. Sed (&sed-version;) - &sed-size;:
  142. <ulink url="http://freshmeat.net/projects/sed/"/>
  143. Shadow (&shadow-version;) - &shadow-size;:
  144. <ulink url="http://freshmeat.net/projects/shadow/"/>
  145. Sysklogd (&sysklogd-version;) - &sysklogd-size;:
  146. <ulink url="http://freshmeat.net/projects/sysklogd/"/>
  147. Sysvinit (&sysvinit-version;) - &sysvinit-size;:
  148. <ulink url="http://freshmeat.net/projects/sysvinit/"/>
  149. Tar (&tar-version;) - &tar-size;:
  150. <ulink url="ftp://alpha.gnu.org/gnu/tar/"/>
  151. Tcl (&tcl-version;) - &tcl-size;:
  152. <ulink url="http://freshmeat.net/projects/tcltk/"/>
  153. Texinfo (&texinfo-version;) - &texinfo-size;:
  154. <ulink url="http://freshmeat.net/projects/texinfo/"/>
  155. Util-linux (&util-linux-version;) - &util-linux-size;:
  156. <ulink url="http://freshmeat.net/projects/util-linux/"/>
  157. Vim (&vim-version;) - &vim-size;:
  158. <ulink url="http://freshmeat.net/projects/vim/"/>
  159. Zlib (&zlib-version;) - &zlib-size;:
  160. <ulink url="http://freshmeat.net/projects/zlib/"/>
  161. Total size of these packages: &all-size-mb;
  162. </literallayout>
  163. </sect1>
  164. <sect1 id="ch04-patches">
  165. <title>Needed patches</title>
  166. <?dbhtml filename="patches.html" dir="chapter04"?>
  167. <para>Besides all those packages, you'll also need several patches. These
  168. correct tiny mistakes in the packages that should be fixed by the maintainer,
  169. or just make some small modifications to bend things our way. You'll need the
  170. following:</para>
  171. <literallayout>
  172. Bash Patch (&bash-patch-version;) - &bash-patch-size;:
  173. <ulink url="&patches-root;bash-&bash-patch-version;.patch"/>
  174. Bison Attribute Patch (&bison-patch-version;) - &bison-patch-size;:
  175. <ulink url="&patches-root;bison-&bison-patch-version;.patch"/>
  176. Coreutils Hostname Patch (&coreutils-hostname-patch-version;) - &coreutils-hostname-patch-size;:
  177. <ulink url="&patches-root;coreutils-&coreutils-hostname-patch-version;.patch"/>
  178. Coreutils Uname Patch (&coreutils-uname-patch-version;) - &coreutils-uname-patch-size;:
  179. <ulink url="&patches-root;coreutils-&coreutils-uname-patch-version;.patch"/>
  180. Ed Patch (&ed-patch-version;) - &ed-patch-size;:
  181. <ulink url="&patches-root;ed-&ed-patch-version;.patch"/>
  182. Expect Patch (&expect-patch-version;) - &expect-patch-size;:
  183. <ulink url="&patches-root;expect-&expect-patch-version;.patch"/>
  184. Gawk Patch (&gawk-patch-version;) - &gawk-patch-size;:
  185. <ulink url="&patches-root;gawk-&gawk-patch-version;.patch"/>
  186. GCC No Fixincludes Patch: (&gcc-nofixincludes-patch-version;) - &gcc-nofixincludes-patch-size;:
  187. <ulink url="&patches-root;gcc-&gcc-nofixincludes-patch-version;.patch"/>
  188. GCC Specs Patch: (&gcc-specs-patch-version;) - &gcc-specs-patch-size;:
  189. <ulink url="&patches-root;gcc-&gcc-specs-patch-version;.patch"/>
  190. GCC Suppress Libiberty Patch: (&gcc-suppress-libiberty-patch-version;) - &gcc-suppress-libiberty-patch-size;:
  191. <ulink url="&patches-root;gcc-&gcc-suppress-libiberty-patch-version;.patch"/>
  192. GCC-2 Patch (&gcc-2953-patch-version;) - &gcc-2953-patch-size;:
  193. <ulink url="&patches-root;gcc-&gcc-2953-patch-version;.patch"/>
  194. GCC-2 No Fixincludes Patch (&gcc-2953-no-fixinc-patch-version;) - &gcc-2953-no-fixinc-patch-size;:
  195. <ulink url="&patches-root;gcc-&gcc-2953-no-fixinc-patch-version;.patch"/>
  196. GCC-2 Return Type Patch (&gcc-2953-returntype-fix-patch-version;) - &gcc-2953-returntype-fix-patch-size;:
  197. <ulink url="&patches-root;gcc-&gcc-2953-returntype-fix-patch-version;.patch"/>
  198. Glibc Sscanf Patch: (&glibc-sscanf-patch-version;) - &glibc-sscanf-patch-size;:
  199. <ulink url="&patches-root;glibc-&glibc-sscanf-patch-version;.patch"/>
  200. Grub Gcc33 Patch (&grub-patch-version;) - &grub-patch-size;:
  201. <ulink url="&patches-root;grub-&grub-patch-version;.patch"/>
  202. Kbd Patch (&kbd-patch-version;) - &kbd-patch-size;:
  203. <ulink url="&patches-root;kbd-&kbd-patch-version;.patch"/>
  204. Man 80Cols Patch (&man-80cols-patch-version;) - &man-80cols-patch-size;:
  205. <ulink url="&patches-root;man-&man-80cols-patch-version;.patch"/>
  206. Man Manpath Patch (&man-manpath-patch-version;) - &man-manpath-patch-size;:
  207. <ulink url="&patches-root;man-&man-manpath-patch-version;.patch"/>
  208. Man Pager Patch (&man-pager-patch-version;) - &man-pager-patch-size;:
  209. <ulink url="&patches-root;man-&man-pager-patch-version;.patch"/>
  210. Ncurses Etip Patch (&ncurses-etip-patch-version;) - &ncurses-etip-patch-size;:
  211. <ulink url="&patches-root;ncurses-&ncurses-etip-patch-version;.patch"/>
  212. Ncurses Vsscanf Patch (&ncurses-vsscanf-patch-version;) - &ncurses-vsscanf-patch-size;:
  213. <ulink url="&patches-root;ncurses-&ncurses-vsscanf-patch-version;.patch"/>
  214. Net-tools Mii-Tool Gcc33 Patch (&net-tools-mii-patch-version;) - &net-tools-mii-patch-size;:
  215. <ulink url="&patches-root;net-tools-&net-tools-mii-patch-version;.patch"/>
  216. Perl Libc Patch (&perl-libc-patch-version;) - &perl-libc-patch-size;:
  217. <ulink url="&patches-root;perl-&perl-libc-patch-version;.patch"/>
  218. Procps Patch (&procps-patch-version;) - &procps-patch-size;:
  219. <ulink url="&patches-root;procps-&procps-patch-version;.patch"/>
  220. Shadow Newgrp Patch (&shadow-patch-version;) - &shadow-patch-size;:
  221. <ulink url="&patches-root;shadow-&shadow-patch-version;.patch"/>
  222. Zlib Vsnprintf Patch (&zlib-patch-version;) - &zlib-patch-size;:
  223. <ulink url="&patches-root;zlib-&zlib-patch-version;.patch"/>
  224. </literallayout>
  225. <para>In addition, there are a number of optional patches that have been
  226. created by the LFS community. Most of these solve slight problems, or enable
  227. some functionality that's not enabled by default. Please feel free to examine
  228. the patches database, located at <ulink url="http://www.linuxfromscratch.org/patches"/>, and choose any additional patches you might wish to use.</para>
  229. </sect1>
  230. </chapter>