Skip to content

Commit 2da20d2

Browse files
authored
fix(appimage): always replace bundled ld-linux from host system to prevent glibc mismatch crash (tinyhumansai#3645)
Co-authored-by: 0xhis <0xhis@users.noreply.github.com>
1 parent fb951b5 commit 2da20d2

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

scripts/release/strip-appimage-graphics-libs.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,11 @@ ensure_sharun_interpreter() {
265265
fi
266266

267267
local target="$appdir/lib/$loader_name"
268-
if [ -e "$target" ]; then
269-
return 1
270-
fi
268+
# Always replace — lib4bin may bundle an ld-linux from the CI runner
269+
# that is incompatible with newer host glibc (#3224, #3099).
270+
# The host_dynamic_loader source is the CI runner's own system ld-linux,
271+
# which is guaranteed compatible with the binary compiled on the same runner.
272+
rm -f "$target"
271273

272274
local source
273275
if ! source="$(host_dynamic_loader "$loader_name")"; then

0 commit comments

Comments
 (0)