setup.sh: check for 32-bit glibc and FreeType before making the prefix (black band, #268) #515
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#515
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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-04 20:46 UTC · original
Problem
setup.shmakes the Wine prefix without checking for the 32-bit libraries thatwinebootneeds.winebootstops at/lib/ld-linux.so.2: could not open.CaptionHeight=5434094into the prefix. The game then shows a black horizontal band instead of a picture (#268), with no error anywhere. The bad values stay in the prefix after the package is installed, so installing it afterwards does not fix anything until the prefix is made again.This happened to me on Fedora (RX 6700 XT) and in #268. The 32-bit packages also came up in #292.
step_toolschecks about 25 tools and the Mesa libraries, but nothing 32-bit.Suggested check
In
step_tools, only when theprefixstep is asked for and the prefix does not exist yet, look for a 32-bitlibc.so.6andlibfreetype.so.6in/usr/lib,/usr/lib32and/usr/lib/i386-linux-gnu. A file only counts if its ELF class byte says 32-bit, because/usr/libholds 64-bit libraries on Arch. When something is missing, it printsinstall firstin the same form as the Mesa check, with the package names, and exits:Hosts that already have a prefix are not affected.
Tested
The check was taken out of
setup.shand run withprefixasked for and no prefix:Steps without
prefix, and an existing prefix: the check is skipped. Not run: a fullsetup.shfrom scratch with the change, Ubuntu, CachyOS, Nobara.I can open this as a PR if you want it.
The change, against
b581f7e(+25 −1 in setup.sh)@tommiehansen on GitHub · 2026-12-05 20:07 UTC · original
This looks useful, especially given the prefix issue in #268. Would be great if you opened the PR with those tests and accounted for newer WoW64 setups that don't require 32-bit host libraries. :)