Bug 279269 - emulators/wine: winecfg doesn't run when called directly
Summary: emulators/wine: winecfg doesn't run when called directly
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-24 10:05 UTC by Anton Saietskii
Modified: 2024-06-30 21:19 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.)
Comment 2 Gerald Pfeifer freebsd_committer freebsd_triage 2024-06-30 21:19:37 UTC
Based on Alex' response I am closing this, though if anyone has an
idea on where/how to improve documentation or the script I'd be happy 
to consider that and update the port.