setup: check 32-bit glibc and FreeType before making the prefix, unless Wine is new WoW64 #654
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!654
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-654"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@El-Biiscuit on GitHub · 2026-12-06 00:51 UTC · original
El-Biiscuit:setup-32bit-prefix→main· +42 −1 · 1 files · 1 commits · openWhat this does
setup.sh prefixnow stops before making the prefix when the Wine that will make it is old WoW64 and the host lacks 32-bit glibc or 32-bit FreeType. It prints the packages to install for Fedora/Nobara, Debian/Ubuntu and Arch/CachyOS.Without these libraries:
winebootstops at/lib/ld-linux.so.2;winebootwrites broken window metrics into the prefix (CaptionHeight=5434094, see #268). The game then shows a black band, with no error.Both stay in the prefix once it is made, which is why the check runs before.
The check only runs for old WoW64 runtimes, as asked in #515. They are detected by a 32-bit
ntdll.sounder the runtime'swine/i386-unix. Examples:files/lib/wine/i386-unix);i386-unixand need no 32-bit host libraries, such as Fedora'swine-wow64(11.22); a 64-bit-only Wine is skipped too.It is also skipped when
prefixisn't requested or the prefix already exists.Refs #515, #268.
Tests
step_toolsfrom the patchedsetup.shwas run in podman containers (Fedora 43, Debian trixie, Arch) and on a Fedora 45 host. The containers used fake runtimes; the host used the real GE-Proton11-16 and the real system Wine. 22/22 cases behave as expected:/usr/libis 64-bit there)wine-wow6411.22prefixstep, or prefix already thereTwo control cases confirm the tests catch mistakes:
setup.shon a bare Fedora with old WoW64: passes when it should stop. The F1 case catches it.bash -nis clean, and shellcheck reports nothing on the added lines.Not run:
setup.shthat actually makes the prefix with this change;🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.