Linux From Scratch (LFS) --- Step by Step with VirtualBox

(V054a-20210617). Linux From Scratch (LFS) --- Step by Step with VirtualBox. This site is managed by VauLSMorg (vlsm.org) since 2020. May the fork() be with Jolan Tru! --- operatingsystems (@T) vlsm dot org.

View on GitHub

HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT


LFS: Chapter 7 part 7 - 14

Virtual Box Guest LFS-07-7



Enter CHROOT

cd /sources/


Libstdc++ from GCC-10.2.0, Pass 2

tar xvf gcc-10.2.0.tar.xz
cd gcc-10.2.0/

ln -s gthr-posix.h libgcc/gthr-default.h

mkdir -v build
cd       build

../libstdc++-v3/configure            \
    CXXFLAGS="-g -O2 -D_GNU_SOURCE"  \
    --prefix=/usr                    \
    --disable-multilib               \
    --disable-nls                    \
    --host=$(uname -m)-lfs-linux-gnu \
    --disable-libstdcxx-pch

time make

make install

cd ../../
rm -rfv gcc-10.2.0/


Gettext-0.21

tar xfv gettext-0.21.tar.xz
cd gettext-0.21/

./configure --disable-shared

time make

cp -v gettext-tools/src/{msgfmt,msgmerge,xgettext} /usr/bin

cd ../
rm -rfv gettext-0.21/


Bison-3.7.5

tar xfv bison-3.7.5.tar.xz
cd bison-3.7.5/

./configure --prefix=/usr \
            --docdir=/usr/share/doc/bison-3.7.5

time make

make install

cd ../
rm -rvf bison-3.7.5/


Perl-5.32.1

tar xfv perl-5.32.1.tar.xz
cd perl-5.32.1/

sh Configure -des                                        \
             -Dprefix=/usr                               \
             -Dvendorprefix=/usr                         \
             -Dprivlib=/usr/lib/perl5/5.32/core_perl     \
             -Darchlib=/usr/lib/perl5/5.32/core_perl     \
             -Dsitelib=/usr/lib/perl5/5.32/site_perl     \
             -Dsitearch=/usr/lib/perl5/5.32/site_perl    \
             -Dvendorlib=/usr/lib/perl5/5.32/vendor_perl \
             -Dvendorarch=/usr/lib/perl5/5.32/vendor_perl

time make

make install

cd ../
rm -rvf perl-5.32.1/


Python-3.9.2

tar xfv Python-3.9.2.tar.xz
cd Python-3.9.2/

./configure --prefix=/usr   \
            --enable-shared \
            --without-ensurepip

time make

make install

cd ../
rm -rfv Python-3.9.2/


Texinfo-6.7

tar xvf texinfo-6.7.tar.xz
cd texinfo-6.7/

./configure --prefix=/usr

time make

make install

cd ../
rm -rfv texinfo-6.7/


Util-linux-2.36.2

tar xvf util-linux-2.36.2.tar.xz
cd util-linux-2.36.2/

mkdir -pv /var/lib/hwclock

./configure ADJTIME_PATH=/var/lib/hwclock/adjtime    \
            --docdir=/usr/share/doc/util-linux-2.36.2 \
            --disable-chfn-chsh  \
            --disable-login      \
            --disable-nologin    \
            --disable-su         \
            --disable-setpriv    \
            --disable-runuser    \
            --disable-pylibmount \
            --disable-static     \
            --without-python     \
            runstatedir=/run

time make

make install

cd ../
rm -rfv util-linux-2.36.2/


Cleaning up and Saving the Temporary System

find /usr/{lib,libexec} -name \*.la -delete

rm -rvf /usr/share/{info,man,doc}/*


Exit CHROOT

exit

echo $LFS

umount $LFS/dev{/pts,}
umount $LFS/{sys,proc,run}

strip --strip-debug $LFS/usr/lib/*
strip --strip-unneeded $LFS/usr/{,s}bin/*
strip --strip-unneeded $LFS/tools/bin/*

VERSION 1: EXTREME

cd $LFS
time tar -cpv . | xz -zve9T6 > $HOME/lfs-temp-tools-10.1.tar.xz 

VERSION 2: PAHE

cd $LFS
time tar -cpv . | xz -zv > $HOME/lfs-temp-tools-10.1.tar.xz 

FILE="/tmp/WEEK09-REPORT-CH07_TOOLS.txt"
tar tf   $HOME/lfs-temp-tools-10.1.tar.xz           > $FILE
echo -n  "ZCZC FILES "                             >> $FILE
tar tf   $HOME/lfs-temp-tools-10.1.tar.xz | wc -l  >> $FILE
echo -n  "ZCZC TOOLS "                             >> $FILE
du -s -h $HOME/lfs-temp-tools-10.1.tar.xz          >> $FILE
chown    cbkadal:cbkadal                              $FILE


Done

poweroff


ENDOFPAGE

HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT