mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
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:
parent
98468ae2d2
commit
068ddf4513
1 changed files with 9 additions and 0 deletions
|
@ -50,6 +50,15 @@ host_env() {
|
||||||
enable_ccache
|
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"
|
packagesdb="${DESTDIR}/usr/Ports/packages.db"
|
||||||
|
|
||||||
. "$@"
|
. "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue