diff options
| author | Danilo M. <danix@danix.xyz> | 2026-07-16 12:49:08 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-07-16 12:49:08 +0200 |
| commit | 64b849ba8b0aa20b128ae317d35e27e0a71f9e16 (patch) | |
| tree | ade412f447297c39ab03a7e62bacc7eb515021fb /CLAUDE.md | |
| parent | 0b9bbe2e5aafb69ddb069fed1819bee5eb0571bf (diff) | |
| download | sbo-dockerbuild-64b849ba8b0aa20b128ae317d35e27e0a71f9e16.tar.gz sbo-dockerbuild-64b849ba8b0aa20b128ae317d35e27e0a71f9e16.zip | |
test-build: exclude symlinks when copying into the container
A host-side sbodl source cache leaves a symlink (<src> -> ~/sbodl-cache/...)
in the SlackBuild dir. Copied into the container it dangled (the cache path
does not exist there), and wget -c choked on it, reporting DOWNLOAD-FAILED.
Copy the dir with rsync -a --no-links instead of cp -a, excluding all
symlinks so the build downloads the source fresh. A host-side WARN names each
ignored symlink.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -93,6 +93,13 @@ SlackBuild, `installpkg`s it, and runs `sbopkglint` **in-container** (it shells out to sudo, which only works as root here; never lint on the host). The host reads a `LINT-CLEAN`/`LINT-FINDINGS` marker from the log. +The SlackBuild dir is copied from the read-only mount into `/sbo/build` with +`rsync -a --no-links`, which **excludes symlinks**. A host-side `sbodl` source +cache leaves a symlink (`<src> -> ~/sbodl-cache/...`) that is absent in the +container; copying it in (dangling, or dereferenced to the cached file) would +make `wget -c` fail or skip the download. Excluding it lets the build download +the source fresh; the host prints a `WARN` naming each ignored symlink. + ### Dep cache Host dir (`PKG_CACHE`), namespaced `<variant>-<image-digest>/`. An image rebuild |
