diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-03-11 04:03:48 -0500 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-03-11 04:03:48 -0500 |
| commit | b3903b9e70d2341397bb02d45e6a01cc65942710 (patch) | |
| tree | c5408477663d625e2194baf8f185421f664d4da2 /docker/build-inner.sh | |
| parent | eb8c20695643923598d0516e86b1fcef144f65fa (diff) | |
Fix RPATH patching for .so.* files (libproxy.so.1, libpxbackend)
The find glob only matched *.so, missing versioned shared libraries
like libproxy.so.1 which retained hardcoded Docker build paths.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'docker/build-inner.sh')
| -rwxr-xr-x | docker/build-inner.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/build-inner.sh b/docker/build-inner.sh index e9add61..93ee6ba 100755 --- a/docker/build-inner.sh +++ b/docker/build-inner.sh @@ -299,7 +299,7 @@ patchelf --force-rpath --set-rpath '$ORIGIN/lib:$ORIGIN/python/lib' "${OUT_DIR}/ [ -f "${OUT_DIR}/lootcli" ] && patchelf --force-rpath --set-rpath '$ORIGIN/lib' "${OUT_DIR}/lootcli" find "${OUT_DIR}/plugins" -name "*.so" -exec patchelf --force-rpath --set-rpath '$ORIGIN/../lib:$ORIGIN/../python/lib' {} \; 2>/dev/null || true # Libraries in lib/ (e.g. librunner.so) need to find sibling libs and python/lib. -find "${OUT_DIR}/lib" -name "*.so" -exec patchelf --force-rpath --set-rpath '$ORIGIN:$ORIGIN/../python/lib' {} \; 2>/dev/null || true +find "${OUT_DIR}/lib" \( -name "*.so" -o -name "*.so.*" \) -exec patchelf --force-rpath --set-rpath '$ORIGIN:$ORIGIN/../python/lib' {} \; 2>/dev/null || true # ── Validate embedded Python runtime ── if ! PYTHONHOME="${OUT_DIR}/python" \ |
