From 1a32fc8cb914050ed9417b5c4c1c30d8b2778d8a Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Thu, 12 Mar 2026 10:37:48 -0500 Subject: Fix mobase RPATH: plugins/libs/ needs $ORIGIN/../../lib not $ORIGIN/../lib mobase.so in plugins/libs/ couldn't find bundled Qt/uibase because the RPATH was only one level up (plugins/lib/) instead of two (lib/). This caused "initialization failed" on NixOS and potentially other distros. Co-Authored-By: Claude Opus 4.6 --- docker/build-inner.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docker/build-inner.sh') diff --git a/docker/build-inner.sh b/docker/build-inner.sh index a1d3e20..42cb45d 100755 --- a/docker/build-inner.sh +++ b/docker/build-inner.sh @@ -216,7 +216,8 @@ done echo "Patching RPATH..." patchelf --force-rpath --set-rpath '$ORIGIN/lib' "${OUT_DIR}/ModOrganizer-core" [ -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' {} \; 2>/dev/null || true +find "${OUT_DIR}/plugins" -maxdepth 1 -name "*.so" -exec patchelf --force-rpath --set-rpath '$ORIGIN/../lib' {} \; 2>/dev/null || true +find "${OUT_DIR}/plugins/libs" -name "*.so" -exec patchelf --force-rpath --set-rpath '$ORIGIN/../../lib' {} \; 2>/dev/null || true find "${OUT_DIR}/lib" \( -name "*.so" -o -name "*.so.*" \) -exec patchelf --force-rpath --set-rpath '$ORIGIN' {} \; 2>/dev/null || true # ── Launcher script ── -- cgit v1.3.1