Bash script to build LFS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
753 B

#!/usr/bin/env bash
FORCE_UNSAFE_CONFIGURE=1 \
./configure --prefix=/usr
make
[ -e /tmp/tar_make_check.log ] && rm /tmp/tar_make_check.log
if ! make check | tee /tmp/tar_make_check.log
then
grep FAILED /tmp/tar_make_check.log | cut -d' ' -f 2-4 | while IFS= read -r failure
do
echo "${failure}"
case ${failure} in
capabilities*restore)
echo "One test, capabilities: binary store/restore, is known to fail if it is run because LFS lacks selinux."
continue
;;
*)
echo "Critical error in tests : ${failure}"
exit 1
;;
esac
done
fi
make install
make -C doc install-html docdir=/usr/share/doc/tar-1.35