# 3.3\. 需要的补丁
除了下载软件包之外,还有一些补丁需要下载。这些补丁修正了本该由软件包开发者修正的错误;另外也做了一些小的修改,使得软件包之间可以更好的协同工作。构建 LFS 系统需要下列补丁:
Bash Upstream Fixes Patch - 23 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/bash-3.1-fixes-8.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/bash-3.1-fixes-8.patch)
MD5和:`bc337045fa4c5839babf0306cc9df6d0`
Bzip2 Bzgrep Security Fixes Patch - 1.2 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/bzip2-1.0.3-bzgrep_security-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/bzip2-1.0.3-bzgrep_security-1.patch)
MD5和:`4eae50e4fd690498f23d3057dfad7066`
Bzip2 Documentation Patch - 1.6 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/bzip2-1.0.3-install_docs-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/bzip2-1.0.3-install_docs-1.patch)
MD5和:`9e5dfbf4814b71ef986b872c9af84488`
Coreutils Internationalization Fixes Patch - 101 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/coreutils-5.96-i18n-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/coreutils-5.96-i18n-1.patch)
MD5和:`3df2e6fdb1b5a5c13afedd3d3e05600f`
Coreutils Suppress Uptime, Kill, Su Patch - 13 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/coreutils-5.96-suppress_uptime_kill_su-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/coreutils-5.96-suppress_uptime_kill_su-1.patch)
MD5和:`227d41a6d0f13c31375153eae91e913d`
Coreutils Uname Patch - 4.6 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/coreutils-5.96-uname-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/coreutils-5.96-uname-1.patch)
MD5和:`c05b735710fbd62239588c07084852a0`
Database (Berkeley) Upstream Fixes Patch - 3.8 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/db-4.4.20-fixes-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/db-4.4.20-fixes-1.patch)
MD5和:`32b28d1d1108dfcd837fe10c4eb0fbad`
Diffutils Internationalization Fixes Patch - 18 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/diffutils-2.8.1-i18n-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/diffutils-2.8.1-i18n-1.patch)
MD5和:`c8d481223db274a33b121fb8c25af9f7`
Expect Spawn Patch - 6.8 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/expect-5.43.0-spawn-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/expect-5.43.0-spawn-1.patch)
MD5和:`ef6d0d0221c571fb420afb7033b3bbba`
Gawk Segfault Patch - 1.3 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/gawk-3.1.5-segfault_fix-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/gawk-3.1.5-segfault_fix-1.patch)
MD5和:`7679530d88bf3eb56c42eb6aba342ddb`
GCC Specs Patch - 15 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/gcc-4.0.3-specs-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/gcc-4.0.3-specs-1.patch)
MD5和:`0aa7d4c6be50c3855fe812f6faabc306`
Glibc Linux Types Patch - 1.1 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/glibc-2.3.6-linux_types-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/glibc-2.3.6-linux_types-1.patch)
MD5和:`30ea59ae747478aa9315455543b5bb43`
Glibc Inotify Syscall Functions Patch - 1.4 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/glibc-2.3.6-inotify-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/glibc-2.3.6-inotify-1.patch)
MD5和:`94f6d26ae50a0fe6285530fdbae90bbf`
Grep RedHat Fixes Patch - 55 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/grep-2.5.1a-redhat_fixes-2.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/grep-2.5.1a-redhat_fixes-2.patch)
MD5和:`2c67910be2d0a54714f63ce350e6d8a6`
Groff Debian Patch - 360 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/groff-1.18.1.1-debian_fixes-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/groff-1.18.1.1-debian_fixes-1.patch)
MD5和:`a47c281afdda457ba4033498f973400d`
GRUB Disk Geometry Patch - 28 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/grub-0.97-disk_geometry-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/grub-0.97-disk_geometry-1.patch)
MD5和:`bf1594e82940e25d089feca74c6f1879`
Gzip Security Patch - 2 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/gzip-1.3.5-security_fixes-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/gzip-1.3.5-security_fixes-1.patch)
MD5和:`f107844f01fc49446654ae4a8f8a0728`
Inetutils GCC-4.x Fix Patch - 1.3 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/inetutils-1.4.2-gcc4_fixes-3.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/inetutils-1.4.2-gcc4_fixes-3.patch)
MD5和:`5204fbc503c9fb6a8e353583818db6b9`
Inetutils No-Server-Man-Pages Patch - 4.1 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/inetutils-1.4.2-no_server_man_pages-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/inetutils-1.4.2-no_server_man_pages-1.patch)
MD5和:`eb477f532bc6d26e7025fcfc4452511d`
Kbd Backspace/Delete Fix Patch - 11 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/kbd-1.12-backspace-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/kbd-1.12-backspace-1.patch)
MD5和:`692c88bb76906d99cc20446fadfb6499`
Kbd GCC-4.x Fix Patch - 1.4 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/kbd-1.12-gcc4_fixes-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/kbd-1.12-gcc4_fixes-1.patch)
MD5和:`615bc1e381ab646f04d8045751ed1f69`
Linux kernel UTF-8 Composing Patch - 11 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/linux-2.6.16.27-utf8_input-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/linux-2.6.16.27-utf8_input-1.patch)
MD5和:`d67b53e1e99c782bd28d879e11ee16c3`
Linux Libc Headers Inotify Patch - 4.7 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/linux-libc-headers-2.6.12.0-inotify-3.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/linux-libc-headers-2.6.12.0-inotify-3.patch)
MD5和:`8fd71a4bd3344380bd16caf2c430fa9b`
Mktemp Tempfile Patch - 3.5 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/mktemp-1.5-add_tempfile-3.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/mktemp-1.5-add_tempfile-3.patch)
MD5和:`65d73faabe3f637ad79853b460d30a19`
Module-init-tools Patch - 1.2 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/module-init-tools-3.2.2-modprobe-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/module-init-tools-3.2.2-modprobe-1.patch)
MD5和:`f1e452fdf3b8d7ef60148125e390c3e8`
Ncurses Fixes Patch - 8.2 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/ncurses-5.5-fixes-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/ncurses-5.5-fixes-1.patch)
MD5和:`0e033185008f21578c6e4c7249f92cbb`
Perl Libc Patch - 1.1 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/perl-5.8.8-libc-2.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/perl-5.8.8-libc-2.patch)
MD5和:`3bf8aef1fb6eb6110405e699e4141f99`
Readline Upstream Fixes Patch - 3.8 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/readline-5.1-fixes-3.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/readline-5.1-fixes-3.patch)
MD5和:`e30963cd5c6f6a11a23344af36cfa38c`
Sysklogd 8-Bit Cleanness Patch - 0.9 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/sysklogd-1.4.1-8bit-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/sysklogd-1.4.1-8bit-1.patch)
MD5和:`cc0d9c3bd67a6b6357e42807cf06073e`
Sysklogd Fixes Patch - 27 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/sysklogd-1.4.1-fixes-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/sysklogd-1.4.1-fixes-1.patch)
MD5和:`508104f058d1aef26b3bc8059821935f`
Tar GCC-4.x Fix Patch - 1.2 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/tar-1.15.1-gcc4_fix_tests-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/tar-1.15.1-gcc4_fix_tests-1.patch)
MD5和:`8e286a1394e6bcf2907f13801770a72a`
Tar Security Fixes Patch - 3.9 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/tar-1.15.1-security_fixes-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/tar-1.15.1-security_fixes-1.patch)
MD5和:`19876e726d9cec9ce1508e3af74dc22e`
Tar Sparse Fix Patch - 0.9 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/tar-1.15.1-sparse_fix-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/tar-1.15.1-sparse_fix-1.patch)
MD5和:`9e3623f7c88d8766878ecb27c980d86a`
Texinfo Multibyte Fixes Patch - 1.5 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/texinfo-4.8-multibyte-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/texinfo-4.8-multibyte-1.patch)
MD5和:`6cb5b760cfdd2dd53a0430eb572a8aaa`
Texinfo Tempfile Fix Patch - 2.2 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/texinfo-4.8-tempfile_fix-2.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/texinfo-4.8-tempfile_fix-2.patch)
MD5和:`559bda136a2ac7777ecb67511227af85`
Util-linux Cramfs Patch - 2.8 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/util-linux-2.12r-cramfs-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/util-linux-2.12r-cramfs-1.patch)
MD5和:`1c3f40b30e12738eb7b66a35b7374572`
Vim Upstream Fixes Patch - 42 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/vim-7.0-fixes-7.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/vim-7.0-fixes-7.patch)
MD5和:`d274219566702b0bafcb83ab4685bbde`
Vim Man Directories Patch - 4.2 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/vim-7.0-mandir-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/vim-7.0-mandir-1.patch)
MD5和:`b6426eb4192faba1e867ddd502323f5b`
Vim Spellfile Patch - 1.2 KB:
下载:[_http://www.linuxfromscratch.org/patches/lfs/6.2/vim-7.0-spellfile-1.patch_](http://www.linuxfromscratch.org/patches/lfs/6.2/vim-7.0-spellfile-1.patch)
MD5和:`98e59e34cb6e16a8d4671247cebd64ee`
所有补丁总计约 773.8 KB
除了上面列出的必需补丁外,LFS 社区还创建了许多可选的补丁。这些可选补丁修正了某些不重要的问题,或者是开启了某些默认没有开启的功能。请仔细阅读位于 [_http://www.linuxfromscratch.org/patches/_](http://www.linuxfromscratch.org/patches/) 的补丁数据库,选择任何符合您需要的额外补丁。
- Linux From Scratch
- 序言
- i. 前言
- ii. 目标读者
- iii. 先决条件
- iv. 对宿主系统的要求
- v. 排版约定
- vi. 本书的组织结构
- vii. 勘误表
- I. 简介
- 1. 简介
- 1.1. 如何构建一个 LFS 系统?
- 1.2. 与上一版本有何不同?
- 1.3. 更新日志
- 1.4. 资源
- 1.5. 帮助
- 2. 准备一个新分区
- 2.1. 简介
- 2.2. 创建一个新分区
- 2.3. 在新分区上创建文件系统
- 2.4. 挂载新分区
- 3. 软件包和补丁
- 3.1. 简介
- 3.2. 全部软件包
- 3.3. 需要的补丁
- 4. 最后的准备工作
- 4.1. 关于环境变量 $LFS
- 4.2. 创建 $LFS/tools 目录
- 4.3. 添加 LFS 用户
- 4.4. 设置工作环境
- 4.5. 关于 SBU
- 4.6. 关于软件包测试套件
- 5. 构建临时编译环境
- 5.1. 简介
- 5.2. 工具链技术说明
- 5.3. Binutils-2.16.1 - 第一遍
- 5.4. GCC-4.0.3 - 第一遍
- 5.5. Linux-Libc-Headers-2.6.12.0
- 5.6. Glibc-2.3.6
- 5.7. 调整工具链
- 5.8. Tcl-8.4.13
- 5.9. Expect-5.43.0
- 5.10. DejaGNU-1.4.4
- 5.11. GCC-4.0.3 - 第二遍
- 5.12. Binutils-2.16.1 - 第二遍
- 5.13. Ncurses-5.5
- 5.14. Bash-3.1
- 5.15. Bzip2-1.0.3
- 5.16. Coreutils-5.96
- 5.17. Diffutils-2.8.1
- 5.18. Findutils-4.2.27
- 5.19. Gawk-3.1.5
- 5.20. Gettext-0.14.5
- 5.21. Grep-2.5.1a
- 5.22. Gzip-1.3.5
- 5.23. M4-1.4.4
- 5.24. Make-3.80
- 5.25. Patch-2.5.4
- 5.26. Perl-5.8.8
- 5.27. Sed-4.1.5
- 5.28. Tar-1.15.1
- 5.29. Texinfo-4.8
- 5.30. Util-linux-2.12r
- 5.31. 清理系统
- 5.32. 改变所有者
- III. 构建 LFS 系统
- 第六章 安装系统基础软件
- 6.1. 简介
- 6.2. 挂载虚拟内核文件系统
- 6.3. 包管理
- 6.4. 进入 Chroot 环境
- 6.5. 创建系统目录结构
- 6.6. 创建必需的文件与符号连接
- 6.7. Linux-Libc-Headers-2.6.12.0
- 6.8. Man-pages-2.34
- 6.9. Glibc-2.3.6
- 6.10. 再次调整工具链
- 6.11. Binutils-2.16.1
- 6.12. GCC-4.0.3
- 6.13. Berkeley DB-4.4.20
- 6.14. Coreutils-5.96
- 6.15. Iana-Etc-2.10
- 6.16. M4-1.4.4
- 6.17. Bison-2.2
- 6.18. Ncurses-5.5
- 6.19. Procps-3.2.6
- 6.20. Sed-4.1.5
- 6.21. Libtool-1.5.22
- 6.22. Perl-5.8.8
- 6.23. Readline-5.1
- 6.24. Zlib-1.2.3
- 6.25. Autoconf-2.59
- 6.26. Automake-1.9.6
- 6.27. Bash-3.1
- 6.28. Bzip2-1.0.3
- 6.29. Diffutils-2.8.1
- 6.30. E2fsprogs-1.39
- 6.31. File-4.17
- 6.32. Findutils-4.2.27
- 6.33. Flex-2.5.33
- 6.34. GRUB-0.97
- 6.35. Gawk-3.1.5
- 6.36. Gettext-0.14.5
- 6.37. Grep-2.5.1a
- 6.38. Groff-1.18.1.1
- 6.39. Gzip-1.3.5
- 6.40. Inetutils-1.4.2
- 6.41. IPRoute2-2.6.16-060323
- 6.42. Kbd-1.12
- 6.43. Less-394
- 6.44. Make-3.80
- 6.45. Man-DB-2.4.3
- 6.46. Mktemp-1.5
- 6.47. Module-Init-Tools-3.2.2
- 6.48. Patch-2.5.4
- 6.49. Psmisc-22.2
- 6.50. Shadow-4.0.15
- 6.51. Sysklogd-1.4.1
- 6.52. Sysvinit-2.86
- 6.53. Tar-1.15.1
- 6.54. Texinfo-4.8
- 6.55. Udev-096
- 6.56. Util-linux-2.12r
- 6.57. Vim-7.0
- 6.58. 关于调试符号
- 6.59. 再次清理系统
- 6.60. 最终的清理
- 7. 配置系统启动脚本
- 7.1. 简介
- 7.2. LFS-Bootscripts-6.2
- 7.3. 启动脚本是如何工作的?
- 7.4. LFS 系统的设备和模块处理
- 7.5. 配置 setclock 脚本
- 7.6. 配置 Linux 控制台
- 7.7. 配置 sysklogd 脚本
- 7.8. 创建 /etc/inputrc 文件
- 7.9. Bash Shell 启动文件
- 7.10. 配置 localnet 脚本
- 7.11. 定制 /etc/hosts 文件
- 7.12. 为设备创建惯用符号连接
- 7.13. 配置网络脚本
- 8. 使 LFS 系统能够启动
- 8.1. 简介
- 8.2. 创建 /etc/fstab 文件
- 8.3. Linux-2.6.16.27
- 8.4. 使 LFS 系统能够启动
- 9. 结束
- 9.1. 结束
- 9.3. 重启系统
- 9.4. 现在做什么?
- IV. 附录
- A. 缩写和名词
- B. 致谢
- C. 依赖关系
- 长索引