how to stop variants from propagating down to dependencies
Daniel J. Luke
dluke at geeklair.net
Tue Dec 31 03:31:34 UTC 2019
On Dec 30, 2019, at 4:41 PM, Ken Cunningham <ken.cunningham.webuse at gmail.com> wrote:
>
> I thought I would install the new openal-soft with the gui with the tests as well.
>
> sudo port -v install openal-soft +gui +tests
>
> I did not already have cmake or qt5 installed on the 10.7 system I was using.
>
> Running the above command installed cmake from source with the +gui option, as no binary exists for that, and then started to install qt5-qtbase with the +tests variant until I aborted that.
>
> I installed qt5-qtbase separately, without +tests, using the buildbot binary, and then when I installed openal-soft +gui +tests I got what I wanted.
>
> So — I guess there is no way around this automatically?
you could probably do something like port install rdepof:openal-soft && port install openal-soft +gui +tests
In general, though, it's an intentional feature that variants propagate down like that. It's one of the reasons why it's best to have as few variants as possible in a port.
--
Daniel J. Luke
More information about the macports-users
mailing list