[MacPorts] #61060: unison @2.51.2_3 is actually version 2.31
MacPorts
noreply at macports.org
Thu Aug 27 17:47:52 UTC 2020
#61060: unison @2.51.2_3 is actually version 2.31
---------------------------+--------------------
Reporter: ShadSterling | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Resolution: | Keywords:
Port: unison |
---------------------------+--------------------
Comment (by ryandesign):
Aha! You are using the +aqua variant. I was using the +gtk variant.
With the +gtk variant, the port installs only a single file:
/opt/local/bin/unison, the real unison program. Running it works normally.
But with the +aqua variant, it installs a macOS application bundle. That
app bundle also contains a command line utility called cltool, and the
port symlinks it to /opt/local/bin/unison. It turns out that tool attempts
to find the real unison program by using the macOS launch services
database, looking up the app by its bundle identifier, but if you've
installed multiple apps with that identifier (one with MacPorts, one
outside of MacPorts), who knows which one it will pick.
https://github.com/bcpierce00/unison/blob/master/src/uimac/cltool.c
We could patch that to refer directly to the copy of Unison that MacPorts
installed, since we know where that is.
--
Ticket URL: <https://trac.macports.org/ticket/61060#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list