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.

49 lines
1.3 KiB

#!/usr/bin/env bash
patch -Np1 -i ../Python-3.14.5-openssl_4-1.patch
patch -Np1 -i ../Python-3.14.5-security_fixes-1.patch
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
--enable-optimizations \
--without-static-libpython
make
:>/tmp/python_make_test.log
if ! make test TESTOPTS="--timeout 120" | tee /tmp/python_make_test.log
then
grep ^FAIL: /tmp/python_make_test.log | cut -d' ' -f 2 | while IFS= read -r failure
do
echo "${failure}"
case ${failure} in
test_ftp_error)
echo "dns resolver is not yet configured in chroot. so it's ok."
echo "and be online is not a requirement"
continue
;;
*)
echo "Critical error in tests : ${failure}"
exit 1
;;
esac
done
fi
make install
cat > /etc/pip.conf << EOF
[global]
root-user-action = ignore
disable-pip-version-check = true
EOF
install -v -dm755 /usr/share/doc/python-3.14.5/html
tar --strip-components=1 \
--no-same-owner \
--no-same-permissions \
-C /usr/share/doc/python-3.14.5/html \
-xvf ../python-3.14.5-docs-html.tar.bz2