[MacPorts] #30328: Enable variants for specific ports in variants.conf
MacPorts
noreply at macports.org
Mon Jun 1 18:07:26 UTC 2020
#30328: Enable variants for specific ports in variants.conf
--------------------------+--------------------------------
Reporter: Ionic | Owner: macports-tickets@â¦
Type: enhancement | Status: new
Priority: Low | Milestone:
Component: base | Version:
Resolution: | Keywords:
Port: |
--------------------------+--------------------------------
Comment (by ryandesign):
Replying to [comment:6 webmaster@â¦]:
> Actually, there is a very good reason for this:
> If a package requires a dependency to be built with a certain variant,
this package will always fail when using port upgrade outdated and require
the dependency to be installed manually with the variant again before
calling upgraded outdated again.
>
> For example: pymol requires tk to be installed with - quartz. Now if I
run upgrade outdated and both pymol and tk are upgraded, pymol will fail
and require me to install tk manually with -quartz. Then I need to run
upgrade outdated again which is very annoying. Actually I believe this is
the reason why gentoo introduced the per package configuration in the
first place.
I don't understand these remarks. MacPorts preserves your variant
selections across upgrades. pymol does require that tk is installed
without the quartz variant, so to fix that, you run `sudo port install tk
-quartz` * once and you're done. MacPorts will remember that for any
future upgrades of tk.
(*When this ticket was filed, +quartz was a default variant of tk. That
was [changeset:0363e864258a06b1ad878885dc8bf792083b7599/macports-ports
changed] a few years ago and now +x11 is a default variant of tk.)
MacPorts didn't used to preserve ''deselected'' variants across upgrades
but that was [ticket:2377 fixed] in MacPorts 1.9.0 which had already been
out for over a year when this ticket was filed.
For this specific case, it would be a better investment of time to fix
pymol so that it does not have the tk/tcl variant restrictions that it
has.
--
Ticket URL: <https://trac.macports.org/ticket/30328#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list