Ports: Add build completion sanity check to .port_include.sh

Simply by checking whether a built libc.so exists, we should be able to
avoid strange build errors where that's not the case and just tell the
user upfront.

Fixes #7309.
This commit is contained in:
Linus Groh 2021-05-20 19:41:45 +01:00
parent 98468ae2d2
commit 068ddf4513
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00

View file

@ -50,6 +50,15 @@ host_env() {
enable_ccache
}
# Sanity check.
if [ ! -f "${DESTDIR}/usr/lib/libc.so" ]; then
echo "libc.so could not be found. This likely means that SerenityOS:"
echo "- has not been built and/or installed yet"
echo "- has been installed in an unexpected location"
echo "The currently configured build directory is ${SERENITY_BUILD_DIR}. Resolve this issue and try again."
exit 1
fi
packagesdb="${DESTDIR}/usr/Ports/packages.db"
. "$@"