From d7bb0f6dd2f12199bb4fa5ab089eb37672abe482 Mon Sep 17 00:00:00 2001 From: The412Banner <205237651+The412Banner@users.noreply.github.com> Date: Tue, 17 Nov 2026 00:09:56 -0500 Subject: [PATCH] fix(bionic): put the tool's own FEX back at launch DroidDeck's component check re-applied a game's per-game FEX choice into DroidDeck-Bionic (fixed in the app by 4453a463, but older builds still do it). Those packages carry glibc unix libraries bionic Wine cannot load, so FEX ran without its unix side. The tool now keeps a spare copy of its FEX in files/runtime/fex, and launch.sh puts any changed FEX file back before starting Wine (DXVK and VKD3D-Proton swaps are left alone). --- tools/bionic-runtime/build.sh | 5 +++++ tools/bionic-runtime/tool/launch.sh | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/tools/bionic-runtime/build.sh b/tools/bionic-runtime/build.sh index 575a472a53..ce961d2977 100755 --- a/tools/bionic-runtime/build.sh +++ b/tools/bionic-runtime/build.sh @@ -181,6 +181,11 @@ cp "$WORK/FEX/aarch64-unix/"*.so "$T/files/lib/wine/aarch64-unix/" cp "$WORK/FEX/system32/"*.dll "$T/files/lib/wine/aarch64-windows/" cp -r "$WORK/DXVK/files/lib/wine/dxvk" "$WORK/VKD3D/files/lib/wine/vkd3d-proton" "$T/files/lib/wine/" cp -a "$PACK" "$T/files/runtime" +# a spare copy of the tool's FEX for launch.sh, which puts it back if DroidDeck's component check swapped in its +# own FEX (glibc unix libraries) for a game with a per-game FEX choice +mkdir -p "$T/files/runtime/fex/aarch64-unix" "$T/files/runtime/fex/aarch64-windows" +cp "$WORK/FEX/aarch64-unix/"*.so "$T/files/runtime/fex/aarch64-unix/" +cp "$WORK/FEX/system32/"*.dll "$T/files/runtime/fex/aarch64-windows/" install -m 755 "$HERE/tool/proton" "$T/proton" install -m 755 "$HERE/tool/launch.sh" "$T/bionic/launch.sh" cp "$HERE/tool/desktop.reg" "$T/bionic/" diff --git a/tools/bionic-runtime/tool/launch.sh b/tools/bionic-runtime/tool/launch.sh index 7dfa6b3d35..35b6116f71 100644 --- a/tools/bionic-runtime/tool/launch.sh +++ b/tools/bionic-runtime/tool/launch.sh @@ -161,6 +161,13 @@ stop_wine() { # wineserver -k, then whatever of this prefix is left (e.g. a game done } +# DroidDeck's component check (before a fix in the app) put its own FEX into this tool for games with a per-game +# FEX choice; its unix libraries are glibc builds bionic Wine cannot load. Put the tool's FEX back. +for f in aarch64-unix/libwow64fex.so aarch64-unix/libarm64ecfex.so aarch64-windows/libwow64fex.dll aarch64-windows/libarm64ecfex.dll; do + [ -f "$PACK/fex/$f" ] || continue + cmp -s "$PACK/fex/$f" "$F/lib/wine/$f" || { cat "$PACK/fex/$f" > "$F/lib/wine/$f" && echo "$(date +%H:%M:%S) restored the tool's FEX $f"; } +done + prepare_prefix cd "$(dirname "$EXE")" || exit 1