From 2da20d25780354b3c19b4b5fbb9744f9f98003b0 Mon Sep 17 00:00:00 2001 From: 0xhis <125838106+0xhis@users.noreply.github.com> Date: Fri, 19 Jun 2026 01:07:51 -0700 Subject: [PATCH] fix(appimage): always replace bundled ld-linux from host system to prevent glibc mismatch crash (#3645) Co-authored-by: 0xhis <0xhis@users.noreply.github.com> --- scripts/release/strip-appimage-graphics-libs.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/release/strip-appimage-graphics-libs.sh b/scripts/release/strip-appimage-graphics-libs.sh index e105582d2..8c90b6e02 100755 --- a/scripts/release/strip-appimage-graphics-libs.sh +++ b/scripts/release/strip-appimage-graphics-libs.sh @@ -265,9 +265,11 @@ ensure_sharun_interpreter() { fi local target="$appdir/lib/$loader_name" - if [ -e "$target" ]; then - return 1 - fi + # Always replace — lib4bin may bundle an ld-linux from the CI runner + # that is incompatible with newer host glibc (#3224, #3099). + # The host_dynamic_loader source is the CI runner's own system ld-linux, + # which is guaranteed compatible with the binary compiled on the same runner. + rm -f "$target" local source if ! source="$(host_dynamic_loader "$loader_name")"; then