Add 6.15 - Build tar

This commit is contained in:
Aditya 2023-01-09 15:25:42 +05:30
parent 46b76d8559
commit ad4fa0892c
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,27 @@
#!/bin/bash
cd $LFS/sources
tar xf tar-1.34.tar.xz
cd tar-1.34
./configure --prefix=/usr \
--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 tar-1.34

View file

@ -347,3 +347,15 @@ then
stop_script "chapter6/6.14-sed.sh"
fi
# Chapter 6.15
# ============
echo "Building tar"
su - lfs -c "bash $PWD/chapter6/6.15-tar.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter6/6.15-tar.sh"
fi