2010年10月12日 星期一
/LFS-BOOK-6.6-HTML/chapter06/texinfo.html
6.57. Texinfo-4.13a
time { ./configure --prefix=/usr && make; } 2>&1 | tee /backup/installlogs/6texinfo.make.log
real 0m27.761s
user 0m16.221s
sys 0m24.962s
time { make check; } 2>&1 | tee /backup/installlogs/6texinfo.check.log
real 0m3.718s
user 0m1.652s
sys 0m2.892s
time { make install; } 2>&1 | tee /backup/installlogs/6texinfo.install.log
real 0m1.781s
user 0m0.884s
sys 0m1.804s
/LFS-BOOK-6.6-HTML/chapter06/udev.html
6.58. Udev-151
time { ./configure --prefix=/usr \
--sysconfdir=/etc --sbindir=/sbin \
--with-rootlibdir=/lib --libexecdir=/lib/udev \
--docdir=/usr/share/doc/udev-151 \
--disable-extras --disable-introspection && make; } 2>&1 | tee /backup/installlogs/6udev.make.log
real 0m12.486s
user 0m10.861s
sys 0m11.745s
time { make install; } 2>&1 | tee /backup/installlogs/6udev.install.log
real 0m1.196s
user 0m0.592s
sys 0m1.368s
todo: 理解 udev 工作原理及过程,理解 LFS 的 Udev 配置脚本,会手工配置 Udev 在定制系统中使用。
/LFS-BOOK-6.6-HTML/chapter06/vim.html
6.59. Vim-7.2
bug: "inital" should be "initial" in "Apply a patch which fixes various issues already found and fixed by the upstream maintainers since the inital release of Vim-7.2:".
翻译bug:
By default, vim runs in vi-incompatible mode.
在默认情况下,vim是以与 vi 不兼容的模式运行。
The set nocompatible setting makes vim behave in a more useful way (the default) than the vi-compatible manner. Remove the “no” to keep the old vi behavior.
set nocompatible将使 vim 默认以比 vi 兼容模式功能更强的方式运行。你可以去掉“no” 来保持旧的 vi 模式 。
question: 什么是vim 的 ex 模式? ex 模式的作用?
time { ./configure --prefix=/usr --enable-multibyte && make; } 2>&1 | tee /backup/installlogs/6vim.make.log
real 0m49.789s
user 1m0.280s
sys 0m24.290s
time { make test; } 2>&1 | tee /backup/installlogs/6vim.check.log
MAKEFLAGS='-j 2' 的环境变量会引起测试失败,故 unset MAKEFLAGS 后重新进行测试成功。
real 0m44.573s
user 0m9.377s
sys 0m12.445s
下面恢复 export MAKEFLAGS='-j 2'
time { make install; } 2>&1 | tee /backup/installlogs/6vim.install.log
real 0m2.132s
user 0m1.520s
sys 0m2.224s
在 /etc/vimrc 后面加入
set spelllang=en
set spell
启用英语的拼写检查,默认已经安装了英语的拼写检查文件
2010年10月12日 星期二
/LFS-BOOK-6.6-HTML/chapter06/aboutdebug.html+
6.60. About Debugging Symbols
/LFS-BOOK-6.6-HTML/chapter06/strippingagain.html
6.61. Stripping Again
chroot $LFS /tools/bin/env -i \
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/tools/bin/bash --login
与 /LFS-BOOK-6.6-HTML/chapter06/chroot.html 中的区别是:
去掉了 PATH 中的 /tools/bin 和 --login 后面的 +h 参数
todo: /tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
-exec /tools/bin/strip --strip-debug '{}' ';'
熟练掌握 find 的 -exec 等用法
/LFS-BOOK-6.6-HTML/chapter06/revisedchroot.html
6.62. Cleaning Up
根据书中的指令,把 chlfsroot 脚本的内容变为如下:
#!/bin/bash
chroot "$LFS" /usr/bin/env -i MAKEFLAGS='-j 2' \
HOME=/root TERM="$TERM" PS1='(\#@\t)\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login
exit 0