mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
1 changed files with 9 additions and 0 deletions
|
@ -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"
|
||||
|
||||
. "$@"
|
||||
|
|
Loading…
Reference in a new issue