Chinaunix首页 | 论坛 | 博客
  • 博客访问: 212750
  • 博文数量: 67
  • 博客积分: 1237
  • 博客等级: 中尉
  • 技术积分: 630
  • 用 户 组: 普通用户
  • 注册时间: 2011-07-01 23:24
文章存档

2012年(8)

2011年(59)

分类: LINUX

2011-08-15 23:14:12

Berkeley DB-4.5.20

代码:

tar xvf $LFS/db-4.5.20.tar.gz

cd db-4.5.20

patch -Np1 -i $LFS/db-4.5.20-fixes-1.patch

cd build_unix

../dist/configure --prefix=/usr --enable-compat185 --enable-cxx

make

make docdir=/usr/share/doc/db-4.5.20 install

chown -Rv root:root /usr/share/doc/db-4.5.20

cd /sources

rm -rf db-4.5.20

 

Sed-4.1.5

代码:

tar xvf $LFS/sed-4.1.5.tar.gz

cd sed-4.1.5

./configure --prefix=/usr --bindir=/bin --enable-html

make

make check

make install

cd ..

rm -rf sed-4.1.5

 

E2fsprogs-1.40.2

代码:

tar xvf $LFS/e2fsprogs-1.40.2.tar.gz

cd e2fsprogs-1.40.2

sed -i -e 's@/bin/rm@/tools&@' lib/blkid/test_probe.in

mkdir -v build

cd build

../configure --prefix=/usr --with-root-prefix="" \

--enable-elf-shlibs

make

make check

make install

make install-libs

cd ../..

rm -rf e2fsprogs-1.40.2

 

Coreutils-6.9

代码:

tar xvf $LFS/coreutils-6.9.tar.bz2

cd coreutils-6.9

patch -Np1 -i $LFS/coreutils-6.9-uname-1.patch

patch -Np1 -i $LFS/coreutils-6.9-suppress_uptime_kill_su-1.patch

patch -Np1 -i $LFS/coreutils-6.9-i18n-1.patch

chmod +x tests/sort/sort-mb-tests

./configure --prefix=/usr

make

make NON_ROOT_USERNAME=nobody check-root

echo "dummy:x:1000:nobody" >> /etc/group

su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"

sed -i '/dummy/d' /etc/group

make install

mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin

mv -v /usr/bin/{false,hostname,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} /bin

mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin

mv -v /usr/bin/chroot /usr/sbin

mv -v /usr/bin/{head,sleep,nice} /bin

cd ..

rm -rf coreutils-6.9

阅读(1700) | 评论(0) | 转发(0) |
0

上一篇:LFS第十三课笔记

下一篇:悼念乔布斯

给主人留下些什么吧!~~