warnings if dependencies don't have the correct variants ?
jonesc at hep.phy.cam.ac.uk
Fri Dec 9 15:44:34 PST 2011
On 9 Dec 2011, at 11:12pm, Chris Jones wrote:
> On 9 Dec 2011, at 10:50pm, Lawrence Velázquez wrote:
>> See also: https://trac.macports.org/wiki/FAQ#dependonvariant
> Yes, I know about that. I just hoped there was some way to check if a certain variant of a port was installed or not.
> In this case it seems, looking at the mesa variants, to be a one or other choice. No way to have both.
> mesa has the variants:
> iglx: Install a libGL that uses your X11 server's indirect GLX path for rendering (the default is off which allows libGL to
> accelerate rendering using OpenGL.framework)
> python26: Use python 2.6
> * conflicts with python27
> [+]python27: Use python 2.7
> * conflicts with python26
> universal: Build for multiple architectures
> So its X11 or OpenGl.framework, not both.
> Not sure I understand the logic of a port under x11/mesa not building by default with X11 support, but I'm sure there's a good reason (Seeing who the author of the Port is, I'm sure there is .. ;))
Turns out its the x11 variant of flew I need, not iglx in mesa. Same deal though, one or the other.
glew has the variants:
universal: Build for multiple architectures
x11: Build libGLEW for GLX rather than OpenGL.framework
>> On Dec 9, 2011, at 5:34 p.m., Bradley Giesbrecht wrote:
>>> On Dec 9, 2011, at 2:23 PM, Chris Jones wrote:
>>>> Is it possible for a port to check if one of its dependencies is installed with a required variant, and warn if not ?
>>>> I ask since the opengl variant of the root port requires mesa to be installed with the x11 variant, which is not the default. The build fails if this isn't the case.
>>>> The the last update to root I have disabled the opengl variant by default (previously enabled) because of this, but people upgrading are still running into problems.
>>> If the dependent port/variant combination installs different files you could check for their existence/non-existence.
>>> Bradley Giesbrecht (pixilla)
>>> macports-users mailing list
>>> macports-users at lists.macosforge.org
> macports-users mailing list
> macports-users at lists.macosforge.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2966 bytes
Desc: not available
More information about the macports-users