-
-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wine/wineserver bitness detection fails for wrapped Wine binaries #2183
Comments
Unfortunately there are a lot of wrappers out there, and each does things differently. E.g., #2035 has a patch for debian, but I suspect that would break things on macOS and possibly other platforms/wrappers. I'd be happy to review a PR that can fix things in a generic way.
I'm not aware of any command that can determine that, but I'd be happy to be proven wrong. |
@jre-wine The current implementation in #2189 doesn't work with Protontricks, and the "halt upon unknown arch" error now makes Winetricks halt as opposed to bugging the user with a few errors before continuing on. That seemed like a happy accident rather than intended behavior, though. Proton (Valve's fork of Wine) does not ship Protontricks sets An example of how Protontricks works: The shared libraries ( For every executable in The wrapper scripts do one of two things:
That said, if #2191 ends up working as well the bitness checking might not be needed. I admit I'm not familiar with how Wine is packaged or whether there is a telltale "we're running new WoW64 mode" sign somewhere else that can be used, rather than deducing things based on which executables exist. |
Hm, couldn't protontricks set WINESERVER_BIN and WINE_BIN then? Otherwise if we have to deal with scripts (and can't just completely get rid of the whole logic in favor of #2191), I suggest to just add all workarounds that might work, instead of trying to find one that works for all cases. I might come up with some workaround using WINEDLLPATH, but I'd like to hear first if this is needed at all. Anyway, I changed #2189 again to only warn, but not exit. However there's an explicit warning now, that the WoW64 type could not be detected. |
Yes, Protontricks could set |
What am I supposed to do about this until this update is in a version of Winetricks I can download? |
What OS/distro/wine version are you using? A fix was merged for Debian; for protontricks/nix, I'd suggest filing a bug with their bug reporting trackers. If they are not using standard wine paths/binaries, they should either adapt their wrappers, or submit patches upstream to account for that. |
In some environments such as Protontricks, Wine binaries are not directly available on $PATH. Instead, a Bash script is created for each Wine binary that takes care of setting up and running the underlying binary. These scripts are then made available through $PATH.
This breaks the "new WoW mode" detection introduced in bcd7a18 that checks the architecture for
wine
andwineserver
. This fails because the executables are no longer binaries as Winetricks expects, causing "Unknown file arch: 65" or other similar warnings.This happens on Protontricks, Wine packaged on Nix/Nixpkgs and potentially other environments in which
wine
and/orwineserver
uses a wrapper script.Ideally, we should probably run a Wine command instead that we can use to determine whether
wine
has been compiled using new WoW mode. Or maybe there's some other way?The text was updated successfully, but these errors were encountered: