From ac159d61275f47854cb5aa53c93941cb6c4057cc Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 24 Jul 2026 20:30:31 +0200 Subject: [PATCH] Fix RUNPATH in tracy-profiler AppImage patchelf the stripped binary to /../lib, collapsing the RUNPATH to the single intended entry. The wayland .pc files baked an absolute build-host path and a trailing empty component into RUNPATH; the former leaks the build environment and could shadow bundled libs on the target, the latter can cause cwd library searches on older glibc. Add patchelf to the appimage workflow's apt install list. --- .github/workflows/appimage.yml | 2 +- profiler/appimage/build.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/appimage.yml b/.github/workflows/appimage.yml index 6e7266cd..6e1288ad 100644 --- a/.github/workflows/appimage.yml +++ b/.github/workflows/appimage.yml @@ -21,7 +21,7 @@ jobs: apt-get update DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ build-essential cmake ninja-build meson pkg-config git ca-certificates \ - curl file desktop-file-utils nodejs \ + curl file desktop-file-utils nodejs patchelf \ libegl-dev libxkbcommon-dev libdbus-1-dev libssl-dev \ libffi-dev libexpat1-dev - name: Trust git repo diff --git a/profiler/appimage/build.sh b/profiler/appimage/build.sh index f438c1cc..ba83bc79 100755 --- a/profiler/appimage/build.sh +++ b/profiler/appimage/build.sh @@ -48,6 +48,7 @@ mkdir -p "$APPDIR/usr/bin" "$APPDIR/usr/lib" \ cp "$BUILD/profiler/tracy-profiler" "$APPDIR/usr/bin/" strip "$APPDIR/usr/bin/tracy-profiler" +patchelf --set-rpath '$ORIGIN/../lib' "$APPDIR/usr/bin/tracy-profiler" cp "$PREFIX/lib/libwayland-client.so.0" \ "$PREFIX/lib/libwayland-cursor.so.0" \ "$PREFIX/lib/libwayland-egl.so.1" \