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.
This commit is contained in:
Bartosz Taudul
2026-07-24 20:30:31 +02:00
parent bcddc1d9f1
commit ac159d6127
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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" \