chapter04.xml 11 KB

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