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.

50 lines
1.4 KiB

#!/usr/bin/env bash
mkdir -v build
cd build || return 1
../configure --prefix=/usr \
--sysconfdir=/etc \
--enable-elf-shlibs \
--disable-libblkid \
--disable-libuuid \
--disable-uuidd \
--disable-fsck
make
[ -e /tmp/e2fsprogs_make_check.log ] && rm /tmp/e2fsprogs_make_check.log
if ! make check | tee /tmp/e2fsprogs_make_check.log
then
grep ': failed' /tmp/e2fsprogs_make_check.log | cut --delimiter=':' --fields=1 | while IFS= read -r failure
do
echo "--- Check ${failure}"
case ${failure} in
# m_assume_storage_prezeroed: test prezeroed storage metadata allocation: failed
m_assume_storage_prezeroed)
echo "test named m_assume_storage_prezeroed is known to fail"
continue
;;
*)
echo "Failed on ${failure}"
exit 1
;;
esac
done
fi
make install
rm -fv /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a
gunzip -v /usr/share/info/libext2fs.info.gz
install-info --dir-file=/usr/share/info/dir /usr/share/info/libext2fs.info
makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo
install -v -m644 doc/com_err.info /usr/share/info
install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info
# sed 's/metadata_csum_seed,//' -i /etc/mke2fs.conf