You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
winetricks fails to identify that the wine build is WoW64-enabled and tries to run wine64, which doesn't exist on WoW64 builds. The detection mechanism works by examining the architecture of the wine and wineserver binaries. This fails on NixOS because the real binaries are renamed to .wine and .wineserver. winetricks tries to examine the environment wrapper scripts instead, which obviously doesn't work.
The detection mechanism is implemented in the winetricks_get_file_arch procedure in winetricks, which is called from winetricks_set_wineprefix.
winetricks should show its GUI and log this warning message to stderr:
You apppear to be using Wine's new wow64 mode. Note that this is EXPERIMENTAL and not yet fully supported. If reporting an issue, be sure to mention this.
Workaround
Create a link from wine64 to wine somewhere in your PATH.
Upstream issue Winetricks/winetricks#2183 has been open for 7 months. The issue is difficult to solve for all distributions. Can we make a patch for nix in the meantime?
Create a link from wine64 to wine somewhere in your PATH.
Looking at the original diff of the relevant change I was not sold on this workaround (since not only we'll be pretending to be a wine64 build, but also what about old-/new-style wow?), but looking at the follow-up, it looks like they made provisions for this case, and if debian is depending on this behavior, then they'll probably not change it overnight ...
Would we also need to do the same for wineserver64?
Can we make a patch for nix in the meantime?
I'm certainly willing to review, if one gets made :-)
Describe the bug
winetricks doesn't work with
wineWow64Packages
.winetricks fails to identify that the wine build is WoW64-enabled and tries to run
wine64
, which doesn't exist on WoW64 builds. The detection mechanism works by examining the architecture of the wine and wineserver binaries. This fails on NixOS because the real binaries are renamed to .wine and .wineserver. winetricks tries to examine the environment wrapper scripts instead, which obviously doesn't work.The detection mechanism is implemented in the
winetricks_get_file_arch
procedure in winetricks, which is called fromwinetricks_set_wineprefix
.Steps To Reproduce
Steps to reproduce the behavior:
$ nix shell nixpkgs#wineWow64Packages.minimal nixpkgs#winetricks
$ winetricks
Expected behavior
winetricks should show its GUI and log this warning message to stderr:
Workaround
Create a link from
wine64
towine
somewhere in your PATH.Notify maintainers
winetricks blame (unmaintained): @vs49688
wine maintainers: @avnik @7c6f434c @bendlas @jmc-figueira @reckenrode
Metadata
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: