Bug 279269

Summary: emulators/wine: winecfg doesn't run when called directly
Product: Ports & Packages Reporter: Anton Saietskii <vsasjason>
Component: Individual Port(s)Assignee: Gerald Pfeifer <gerald>
Status: New ---    
Severity: Affects Only Me CC: iwtcex
Priority: --- Flags: bugzilla: maintainer-feedback? (gerald)
Version: Latest   
Hardware: Any   
OS: Any   

Description Anton Saietskii 2024-05-24 10:05:22 UTC
jason@jnb: [?:0] ~ $ pkg info | grep wine
wine-9.0_2,1                   Microsoft Windows compatibility environment
wine-mono-8.1.0                Mono .NET implementation for Wine
jason@jnb: [?:0] ~ $ winecfg
/home/jason/.i386-wine-pkg//usr/local/bin/wine doesn't exist!

Try installing 32-bit Wine with
        /usr/local/share/wine/pkg32.sh install wine mesa-dri

If using Poudriere, please make sure your repo is setup to use FreeBSD:13:i386
and create symlinks for
  FreeBSD:13:amd64 and
  FreeBSD:13:i386
to the relevant output directories. See pkg.conf(5) for more info.
jason@jnb: [?:1] ~ $ grep -n wine64 `which winecfg`
47:if [ -x "$appdir/wine64" ]; then exec "$appdir/wine64" "$appname" "$@"; fi
56:  if [ -x "$d/wine64" ]; then exec "$d/wine64" "$appname" "$@"; fi
61:if [ -x "/usr/local/bin/wine64" ]; then exec "/usr/local/bin/wine64" "$appname" "$@"; fi
jason@jnb: [?:0] ~ $

Reason of this is that we also have %%PREFIX%%/bin/wine, which is wrapper for 32-bit wine.
Comment 1 Alex S 2024-05-24 17:21:25 UTC
That part is intentionally left alone — barely anyone wants pure 64-bit Wine and those people that really do are smart enough to work around minor issues like, say, dealing with the 32-bit installer executables. So, considering that we can't provide default options accommodating both, I'd rather inconvenience the latter crowd. (I submitted that wrapper script.)