chapter04.xml 11 KB

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