[MacPorts] #65100: weechat @3.5_0+ruby: error: invalid arch name '-arch -lx86_64'
MacPorts
noreply at macports.org
Mon May 2 20:07:29 UTC 2022
#65100: weechat @3.5_0+ruby: error: invalid arch name '-arch -lx86_64'
---------------------------+----------------------
Reporter: hexadecagram | Owner: cardi
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords:
Port: weechat |
---------------------------+----------------------
Comment (by cardi):
Apologies in advance for my lack of Ruby knowledge: I don't use the Ruby
plugin in WeeChat, but I will help to try to resolve this.
It looks like WeeChat does automatic detection of the Ruby version
[https://github.com/weechat/weechat/commit/fe9768f484304c28cf4e6d6eb980613b00ca6904
(1)] but, AFAIK, the Portfile won't allow us to specify "any installed
version of Ruby is fine" as a dependency.
To partially resolve this, I think the following needs to be added to the
Portfile:
* add variants for each Ruby version (like [https://github.com/macports
/macports-
ports/blob/8888b38c6b866336b94b3956c24a08ea9a008e73/irc/weechat/Portfile#L78-L98
`python`, `python37`, `python38`, ...])
* force WeeChat to detect and use the Ruby version the user selects by
patching `FindRuby.cmake`
[https://github.com/weechat/weechat/blob/3e8580b5e554b06c6754dfedee933494d6af0c08/cmake/FindRuby.cmake
(2)] in a similar way to [https://github.com/macports/macports-
ports/blob/8888b38c6b866336b94b3956c24a08ea9a008e73/irc/weechat/Portfile#L100-L112
Python]
Re: the other issues (`-lx86_64` and `-L/usr/local/opt/ruby/lib`), I'll
have to debug the build to see if I have these issues on my side as well.
--
Ticket URL: <https://trac.macports.org/ticket/65100#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list