chapter04.xml 11 KB

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