mirror of
https://github.com/troglobit/finit.git
synced 2026-10-24 11:54:36 +00:00
test: debug sysroot setup
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+19
-1
+19
-1
@@ -2,6 +2,17 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
# Log setup output for debugging
|
||||||
|
SETUP_LOG="${SYSROOT:-./sysroot}/setup-sysroot.log"
|
||||||
|
exec > >(tee "$SETUP_LOG") 2>&1
|
||||||
|
echo "=== Finit Test Sysroot Setup ==="
|
||||||
|
echo "Date: $(date)"
|
||||||
|
echo "SYSROOT: $SYSROOT"
|
||||||
|
echo "top_builddir: $top_builddir"
|
||||||
|
echo "srcdir: $srcdir"
|
||||||
|
echo "================================"
|
||||||
|
echo
|
||||||
|
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
make -C "$top_builddir" DESTDIR="$SYSROOT" install
|
make -C "$top_builddir" DESTDIR="$SYSROOT" install
|
||||||
|
|
||||||
@@ -23,4 +34,11 @@ for conf in 10-hotplug.conf; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Update dynamic linker cache for /usr/local/lib libraries
|
# Update dynamic linker cache for /usr/local/lib libraries
|
||||||
ldconfig -r "$SYSROOT"
|
echo "Running ldconfig in sysroot: $SYSROOT"
|
||||||
|
echo "Contents of $SYSROOT/etc/ld.so.conf:"
|
||||||
|
cat "$SYSROOT/etc/ld.so.conf" || echo "Warning: ld.so.conf not found"
|
||||||
|
echo "Libraries in $SYSROOT/usr/local/lib:"
|
||||||
|
ls -la "$SYSROOT/usr/local/lib/" 2>/dev/null || echo "Warning: /usr/local/lib not found in sysroot"
|
||||||
|
ldconfig -v -r "$SYSROOT" || echo "Warning: ldconfig failed with exit code $?"
|
||||||
|
echo "Verifying ldconfig cache was created:"
|
||||||
|
ls -la "$SYSROOT/etc/ld.so.cache" || echo "Warning: ld.so.cache not created"
|
||||||
Reference in new issue
Block a user