[Bug 286078] emulators/wine-devel 10.2,1: can't run Total Commander 64-bit

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 30 Apr 2025 00:51:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286078

--- Comment #8 from Sean Farley <scf@FreeBSD.org> ---
Created attachment 260009
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=260009&action=edit
Fix wine-wow64.sh to run wine tools

(In reply to Gerald Pfeifer from comment #7)
It is a change upstream, but we need to change to handle it. 
"tools/winewrapper" was removed from upstream and wine now detects the link to
determine what to run.  

See
https://gitlab.winehq.org/wine/wine/-/commit/cb87d40cd4a8837826ea76efc91371ab09eb9d63
for the change that removes the wrapper.
See https://bugs.winehq.org/show_bug.cgi?id=57847 for an issue mentioning it as
well as something about configuring with "--enable-tools", which I have not
researched.

The fix has two parts:
- Our script needs to call the link directly instead of the binary for the
amd64 build.
- The tools link directly to the wine binary for the i386 build.

Hopefully, someone can verify that the changes do not break anything as WoW64
support is still magical to me.  I did not run into any issues when not using
files/wine.sh unless I ran ~/.i386-wine-pkg/usr/local/bin/winecfg directly.

I only ran into the script problem while trying to debug this issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.