All pastes #19206 Raw Edit

lfs-livecd

public text v1 · immutable
#19206 ·published 2005-08-03 17:42 UTC
rendered paste body
cat > ~/.bash_profile << "EOF"
cat > ~/.bash_profile << "EOF"
cat .bash_profile 
cat > ~/.bashrc << "EOF"
pwd
source ~/.bash_profile
pwd
cd /mnt/lfs/
ls -al
mkdir binutils-build
cd /
ls -al
file LFS
less LFS
ls -al
cd mnt
ls -al
cd lfs
ls -al
cd ..
chown lfs lfs/
exit
source ~/.bash_profile 
cd /mnt/lfs
mkdir binutils-build
cd binutils-build/
exit
source ~/.bash_profile 
source ~/.bash_profile
mkdir /tools/etc
touch /tools/etc/ld.so.conf
exit
cd /mnt/lfs/sources/
ls -al
mkdir ../binutils-build
mkdir binutils-build
cd binutils-build
cd ..
bunzip2 binutils-2.15.94.0.2.2.tar.bz2 
tar xvf binutils-2.15.94.0.2.2.tar 
cd binutils-build/
../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls
make
 make install
make -C ld clean
make -C ld LIB_PATH=/tools/lib
mkdir ../gcc-build
cd ../gcc-build/
cd ..
bunzip gcc-3.4.3.tar.bz2 
bunzip2 gcc-3.4.3.tar.bz2 
tar xvf gcc-3.4.3.tar 
cd gcc-build/
../gcc-3.4.3/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
make bootstrap
make install
ln -s gcc /tools/bin/cc
cd ..
ls -al
ls -al lin*
bunzip2 linux-libc-headers-2.6.11.2.tar.bz2 
tar xvf linux-libc-headers-2.6.11.2.tar 
cd linux-libc-headers-2.6.11.2
cp -R include/asm-i386/ /tools/include/asm
cp -R include/linux/ /tools/include/
cd ..
ls -al glib*
path -Npl -i glibc-2.3.4-fix_test-1.patch 
patch -Npl -i glibc-2.3.4-fix_test-1.patch 
patch -Np1 -i glibc-2.3.4-fix_test-1.patch 
bunzip glibc-2.3.4.tar.bz2 
bunzip2 glibc-2.3.4.tar.bz2 
tar xvf glibc-2.3.4.tar 
mkdir glibc-build
cd glibc-build/
../glibc-2.3.4/configure --prefix=/tools --disable-provile --enable-add-ons --enable-kernel=2.6.0 --with-binutils=/tools/bin --without-gd --with-headers=/tools/include --without-selinux
make
make check
make install
make localedata/install-locales
make -C ld install
cd ../binutils-build/
make -C ld install
cd ..
ls -al
ls -al|less
rm -rf binutils-build/ binutils-2.15.94.0.2.2
cd gcc-3.4.3
ls -al
cd gcc/
ls -al
grep SPECFILE *
cd ../../gcc-build/
ls -al
cd gcc
ls -al
less specs
grep SPECFILE *
grep ld-linux *
sed
cd ..
cd ..
SPECFILE=`gcc --print-file specs` && sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' $SPECFILE > tempspecfile && mv -f tempspecfile $SPECFILE && unset SPECFILE
echo $SPECFILE
cd gcc
ls -al
cd gcc-3.4.3/gcc/
ls -al
rm -f /tools/lib/gcc/*/*/include/{pthread.h,bits/sigthread.h}
echo 'main(){}' > dummy.c
cc dummy.c
readelf -l a.out | grep ': /tools
readelf -l a.out | grep ': /tools'
cd ../..
bunzip2 tcl8.4.9-src.tar.bz2 
tar xvf tcl8.4.9-src.tar 
cd tcl8.4.9/unix/
./configure --prefix=/tools
make
make install
cd ..
export TCLPATH=`pwd`
ln -s tclsh8.4 /tools/bin/tclsh
cd ..
bunzip2 expect-5.43.0.tar.bz2 
tar xvf expect-5.43.0.tar 
cd expect-5.43
patch -Np1 -i ../expect-5.43.0-spawn-1.patch 
./configure --prefix=/tools --with-tcl=/tools/lib --with-tclinclude=$TCLPATH --with-x=no
make
make SCRIPTS="" install
unset TCLPATH
cd ..
bunzip dejagnu-1.4.4.tar.bz2 
bunzip2 dejagnu-1.4.4.tar.bz2 
tar xvf dejagnu-1.4.4.tar 
cd dejagnu-1.4.4
./configure --prefix=/tools
make install
cd ..
expect -c "spawn ls"
cd gcc-3.4.3
patch -Np1 -i ../gcc-3.4.3-no_fixincludes-1.patch 
patch -Np1 -i ../gcc-3.4.3-specs-2.patch 
mkdir ../gcc-build
cd ../gcc-build/
ls -al
../gcc-3.4.3/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
make
make -k check
../gcc-3.4.3/contrib/test_summary 
make install
cd ..
mkdir binutils-build
cd binutils-build/
cd ..
ls -al bin*
tar xvf binutils-2.15.94.0.2.2.tar 
cd binutils-build/
../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls --enable-shared --with-lib-path=/tools/lib
make
make check
make install
make -C ld clean
make -C ld LIB_PATH=/usr/lib:/lib
cd ..
ls -al gaw*
bunzip gawk-3.1.4.tar.bz2 
bunzip2 gawk-3.1.4.tar.bz2 
tar xvf gawk-3.1.4.tar 
cd gawk-3.1.4
./configure --prefix=/tools
make
make install
cd ..
ls -al core*
bunzip2 coreutils-5.2.1.tar.bz2 
tar xvf coreutils-5.2.1.tar 
cd coreutils-5.2.1
patch -Np1 ../coreutils-5.2.1-suppress_uptime_kill_su-1.patch 
patch -Np1 -i ../coreutils-5.2.1-suppress_uptime_kill_su-1.patch 
patch -Np1 -i ../coreutils-5.2.1-uname-2.patch 
DEFAULT_POSIX2_VERSION=199209 ./configure --prefix=/tools
make
make install
cd ..
ls -al bz*
bunzip2 bzip2-1.0.3.tar.bz2 
tar xvf bzip2-1.0.3.tar 
cd bzip2-1.0.3
make
make PREFIX=/tools install
cd ..
bunzip2 gzip-1.3.5.tar.bz2 
tar xvf gzip-1.3.5.tar 
cd gzip-1.3.5
patch -Np1 -i ../gzip-1.3.5-security_fixes-1.patch 
./configure --prefix=/tools
make
make install
cd ..
bunzip2 diffutils-2.8.1.tar.bz2 
tar xvf diffutils-2.8.1.tar 
cd diffutils-2.8.1
./configure --prefix=/tools
make
make install
cd ..
bunzip2 findutils-4.2.23.tar.bz2 
tar xvf findutils-4.2.23.tar 
cd findutils-4.2.23
./configure --prefix=/tools
make
make install
cd ..
bunzip2 make-3.80.tar.bz2 
tar xvf make-3.80.tar 
cd make-3.80
./configure --prefix=/tools
make
make install
cd ..
bunzip2 grep-2.5.1a.tar.bz2 
tar xvf grep-2.5.1a.tar 
cd grep-2.5.1a
./configure --prefix=/tools --disable-perl-regexp
make
make install
cd ..
bunzip2 sed-4.1.4.tar.bz2 
tar xvf sed-4.1.4.tar 
cd sed
cd sed-4.1.4
./configure --prefix=/tools
make
make install
cd ..
bunzip2 gettext-0.14.3.tar.bz2 
tar xvf gettext-0.14.3.tar 
cd gettext-0.14.3
./configure --prefix=/tools --disable-libasprintf --without-csharp
make
make install
cd ..
bunzip2 ncurses-5.4.tar.bz2 
tar xvf ncurses-5.4.tar 
cd ncurses-5.4
./configure --prefix=/tools --with-shared --without-debug --without-ada --enable-overwrite
make
make install
cd ..
bunzip2 patch-2.5.4.tar.bz2 
tar xvf patch-2.5.4.tar 
cd patch-2.5.4
CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/tools
make
make install
cd ..
bunzip2 tar-1.15.1.tar.bz2 
tar xvf tar-1.15.1.tar 
cd tar-1.15.1
patch -Np1 -i ../tar-1.15.1-sparse_fix-1.patch 
./configure --prefix=/tools
make
make install
cd ../
bunzip2 texinfo-4.8.tar.bz2 
tar xvf texinfo-4.8.tar 
cd texinfo-4.8
./configure --prefix=/tools
make
make install
cd ..
bunzip2 bash-3.0.tar.bz2 
tar xvf bash-3.0.tar 
cd bash-3.0
patch -Np1 -i ../bash-3.0-avoid_WCONTINUED-1.patch 
patch -Np1 -i ../bash-3.0-fixes-3.patch 
./configure --prefix=/tools --without-bash-malloc
make
make install
ln -s bash /tools/bin/sh
cd ..
bunzip2 m4-1.4.3.tar.bz2 
tar xvf m4-1.4.3.tar 
cd m4-1.4.3
./configure --prefix=/tools
make
make install
cd ..
bunzip2 bison-2.0.tar.bz2 
tar xvf bison-2.0.tar 
cd bison-2.0
./configure --prefix=/tools
make
make install
cd ..
bunzip2 flex-2.5.31.tar.bz2 
tar xvf flex-2.5.31.tar 
cd flex-2.5.31
patch -Np1 -i ../flex-2.5.31-debian_fixes-3.patch 
touch doc/flex.1
./configure --prefix=/tools
make
make install
cd ..
bunzip2 util-linux-2.12q.tar.bz2 
tar xvf util-linux-2.12q.tar 
cd util-linux-2.12q
patch -Np1 -i ../util-linux-2.12q-cramfs-1.patch 
sed -i 's@/usr/include@/tools/include@g' confgiure
sed -i 's@/usr/include@/tools/include@g' configure
./configure
make -C lib
make -C mount mount umount
make -C text-utils more
cp mount/{,u}mount text-utils/more /tools/bin
cd ..
bunzip2 perl-5.8.6.tar.bz2 
tar xvf perl-5.8.6.tar 
cd perl-5.8.6
patch -Np1 -i ../perl-5.8.6-libc-1.patch 
./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl POSIX'
make perl utilities
cp perl pod/pod2man /tools/bin
mkdir -p /tools/lib/perl5/5.8.6
cp -R lib/* /tools/lib/perl5/5.8.6/
strip --strip-debug /tools/lib/*
strip --strip-unneeded /tools/{,s}bin/*
exit