Add 6.8 - Build findutils

This commit is contained in:
Aditya 2023-01-09 11:50:53 +05:30
parent e9e05b2324
commit d17076689b
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,28 @@
#!/bin/bash
cd $LFS/sources
tar xf findutils-4.9.0.tar.xz
cd findutils-4.9.0
./configure --prefix=/usr \
--localstatedir=/var/lib/locate \
--host=$LFS_TGT \
--build=$(build-aux/config.guess)
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make DESTDIR=$LFS install
cd $LFS/sources
rm -rf findutils-4.9.0

View file

@ -263,3 +263,15 @@ then
stop_script "chapter6/6.7-file.sh"
fi
# Chapter 6.8
# ===========
echo "Building findutils"
su - lfs -c "bash $PWD/chapter6/6.8-findutils.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter6/6.8-findutils.sh"
fi