summaryrefslogtreecommitdiffstats
path: root/test-build
diff options
context:
space:
mode:
Diffstat (limited to 'test-build')
-rwxr-xr-xtest-build19
1 files changed, 17 insertions, 2 deletions
diff --git a/test-build b/test-build
index ff71e81..0db4aab 100755
--- a/test-build
+++ b/test-build
@@ -23,7 +23,7 @@
#
# No em dashes in prose by author convention.
-PROJECT_VERSION="1.1.0" # bump via sed across all scripts; see CLAUDE.md Releases
+PROJECT_VERSION="1.1.1" # bump via sed across all scripts; see CLAUDE.md Releases
# =============================================================================
# CONFIG (do not edit here; real values live in the external config file)
@@ -535,6 +535,17 @@ build_one() {
local statf="$BUILD_OUT/$prog.status"
rm -f "$statf"
+ # Warn about symlinks in the SlackBuild dir (typically a host-side sbodl source
+ # cache: <src> -> ~/sbodl-cache/...). They are not copied into the container
+ # (rsync --no-links below), so the build re-downloads the source. Surfaced on
+ # the host so it is visible, not just in the per-package log.
+ local l
+ for l in "$dir"/*; do
+ if [[ -L "$l" ]]; then
+ echo " ${C_YEL}WARN${C_RST}: symlink not copied to container (source re-downloaded): $(basename "$l") -> $(readlink "$l")" >&2
+ fi
+ done
+
# fetch deps (removed from -current tree): let the container's sbopkg build
# them first. FETCH_DEPS is the set collected during resolution.
local fetch_list=""
@@ -568,7 +579,11 @@ for f in $FETCH_LIST; do
done
# copy the SlackBuild out of the read-only mount so it can write there.
-cp -a /sbo/pkg /sbo/build
+# --no-links skips symlinks (e.g. a host-side sbodl source cache: <src> ->
+# ~/sbodl-cache/... absent here), so the build downloads the source fresh
+# instead of choking on a dangling link or reusing a cached one.
+mkdir -p /sbo/build
+rsync -a --no-links /sbo/pkg/ /sbo/build/
cd /sbo/build || { echo BUILD-FAILED > "$statf"; exit 1; }
. ./"$prog".info