From de200a5bb610adef98d2331ab9724d70d2115eb1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 29 Jun 2025 21:39:23 +1200 Subject: [PATCH] Modify getpkg/build.sh --- getpkg/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/getpkg/build.sh b/getpkg/build.sh index aed1d58..313b02f 100755 --- a/getpkg/build.sh +++ b/getpkg/build.sh @@ -15,22 +15,27 @@ PROJECT="getpkg" echo "Build script running from: ${SCRIPT_DIR}" echo "Current directory: $(pwd)" echo "CMakeLists.txt exists: $([ -f "${SCRIPT_DIR}/CMakeLists.txt" ] && echo "yes" || echo "no")" +echo "Contents of script directory:" +ls -la "${SCRIPT_DIR}" # Create persistent build directory mkdir -p "${SCRIPT_DIR}/build" mkdir -p "${SCRIPT_DIR}/output" # Run build in container with mounted directories +# Note: We mount the directory without :ro first to check if that's the issue docker run --rm \ --user "$(id -u):$(id -g)" \ - -v "${SCRIPT_DIR}:/src:ro" \ + -v "${SCRIPT_DIR}:/src" \ -v "${SCRIPT_DIR}/build:/build" \ -v "${SCRIPT_DIR}/output:/output" \ -e CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Debug}" \ gitea.jde.nz/public/dropshell-build-base:latest \ bash -c " + echo 'Host script dir contains:' && \ echo 'Contents of /src:' && ls -la /src && \ echo 'Looking for CMakeLists.txt:' && find /src -name 'CMakeLists.txt' && \ + echo 'Source files in /src:' && ls -la /src/src 2>/dev/null || echo 'No src directory found' && \ cd /build && \ cmake -G Ninja -S /src -B . \ -DCMAKE_BUILD_TYPE=\${CMAKE_BUILD_TYPE} \