LFS Book: 6.15.Coreutils-5.2.1~6.33.Perl-5.8.7
これ以降は残り45個あまりのパッケージをひたすらインストールしていきます。
・Coreutils-5.2.1
# cd /sources/coreutils-5.2.1
# patch -Np1 -i ../coreutils-5.2.1-uname-2.patch
# patch -Np1 -i ../coreutils-5.2.1-suppress_uptime_kill_su-1.patch
# DEFAULT_POSIX2_VERSION=199209 ./configure --prefix=/usr
# make
# echo "dummy1:x:1000:" >> /etc/group
# echo "dummy2:x:1001:dummy" >> /etc/group
# echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd
# make NON_ROOT_USERNAME=dummy check-root
# src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"
# sed -i '/dummy/d' /etc/passwd /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,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} /bin
・Zlib-1.2.3
# cd /sources/zlib-1.2.3
# ./configure --prefix=/usr --shared --libdir=/lib
# make
# make install
# rm -v /lib/libz.so
# ln -sfv ../../lib/libz.so.1.2.3 /usr/lib/libz.so
# make clean
# ./configure --prefix=/usr
# make
# make install
# chmod -v 644 /usr/lib/libz.a
・Mktemp-1.5
# cd /sources/mktemp-1.5
# patch -Np1 -i ../mktemp-1.5-add_tempfile-2.patch
# ./configure --prefix=/usr --with-libc
# make
# make install
# make install-tempfile
・Iana-Etc-1.04
# cd /sources/iana-etc-1.0.4
# make
# make install
・Findutils-4.2.23
# cd /sources/findutils-4.2.23
# ./configure --prefix=/usr \
# --libexecdir=/usr/lib/locate \
# --localstatedir=/var/lib/locate
# make
# make install
・Gawk-3.1.4
# cd /sources/gawk-3.1.4
# ./configure --prefix=/usr --libexecdir=/usr/lib
# make
# make install
・Ncurses-5.4
# cd /sources/ncurses-5.4
# ./configure --prefix=/usr --with-shared --without-debug
# make
# make install
# chmod -v 755 /usr/lib/*.5.4
# chmod -v 644 /usr/lib/libncurses++.a
# mv -v /usr/lib/libncurses.so.5* /lib
# ln -sfv ../../lib/libncurses.so.5 /usr/lib/libncurses.so
# ln -sfv libncurses.so /usr/lib/libncurses.so
・Readline-5.0
# cd /sources/readline-5.0
# patch -Np1 -i ../readline-5.0-fixes-1.patch
# ./configure --prefix=/usr --libdir=/lib
# make SHLIB_XLDFLAGS=-lncurses
# make install
# chmod -v 755 /lib/lib{readline,history}.so*
# mv -v /lib/lib{readline,history}.a /usr/lib
# rm -v /lib/lib{readline,history}.so
# ln -sfv ../../lib/libreadline.so.5 /usr/lib/libreadline.so
# ln -sfv ../../lib/libhistory.so.5 /usr/lib/libhistory.so
・Vim-6.3
# cd /sources/vim63
# echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
# patch -Np1 -i ../vim-6.3-security_fix-2.patch
# ./configure --prefix=/usr --enable-multibyte
# make
# make install
# ln -sv vim /usr/bin/vi
#
# cat > /etc/vimrc << "EOF"
>set nocompatible
>set backspace=2
>syntax on
>if (&term == "iterm") || (&term == "putty")
> set background=dark
>endif
>EOF
・M4-1.4.3
# cd /sources/m4-1.4.3
# ./configure --prefix=/usr
# make
# make install
・Bison-2.0
# cd /sources/bison-2.0
# ./configure --prefix=/usr
# make
# make install
・Less-382
# cd /sources/less-382
# ./configure --prefix=usr --bindir=/bin --sysconfdir=/etc
# make
# make install
・Groff-1.19.1
# cd /sources/groff-1.19.1
# PAGE=a4 ./configure --prefix=/usr
# make
# make install
# ln -sfv soelim /usr/bin/zsoelim
# ln -sfv eqn /usr/bin/geqn
# ln -sfv tbl /usr/bin/gtbl
・Sed-4.1.4
# cd /sources/sed-4.1.4
# sed -i 's@/doc@&/sed-4.1.4@' doc/Makefile.in
# ./configure --prefix=/usr --bindir=/bin
# make
# make install
・Flex-2.5.31
# cd /sources/flex-2.5.31
# patch -Np1 -i ../flex-2.5.31-debian_fixes-3.patch
# touch doc/flex.1
# ./configure --prefix=/usr
# make
# make install
# ln -sv libfl.a /usr/lib/libl.a
#
# cat > /usr/bin/lex << "EOF"
>#!/bin/sh
>exec /usr/bin/flex -l "$@"
>EOF
# chmod -v 755 /usr/bin/lex
・Gettext-0.14.3
# cd /sources/gettext-0.14.3
# ./configure --prefix=/usr
# make
# make install
・Inetutils-1.4.2
# cd /sources/inetutils-1.4.2
# patch -Np1 -i ../inetutils-1.4.2-kernel_headers-1.patch
# patch -Np1 -i ../inetutils-1.4.2-no_server_man_pages-1.patch
# ./configure \
>--prefix=/usr \
>--libexecdir=/usr/sbin \
>--sysconfdir=/etc \
>--localstatedir=/var \
>--disable-logger \
>--disable-syslogd \
>--disable-whois \
>--disable-servers
# make
# make install
#mv -v /usr/bin/ping /bin
・IP Route2-2.6.11-050330
# cd /sources/iproute2-2.6.11
# sed -i '/^TARGETS/s@arpd@@g' misc/Makefile
# ./configure
# make SBINDIR=/sbin
# make SBINDIR=/sbin install
・Perl-5.8.7
# cd /sources/perl-5.8.7
# patch -Np1 -i ../perl-5.8.7-sprintf_vulnerability-1.patch
# ./configure.gnu --prefix=/usr -Dpager="/bin/less -isR"
# make
# echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
# make test
# make install
今日はここまで。流石に疲れた。
コメントする