warnings if dependencies don't have the correct variants ?

Chris Jones jonesc at hep.phy.cam.ac.uk
Fri Dec 9 15:12:37 PST 2011

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 .. ;))


> vq
> On Dec 9, 2011, at 5:34 p.m., Bradley Giesbrecht wrote:
>> On Dec 9, 2011, at 2:23 PM, Chris Jones wrote:
>>> Hi,
>>> 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.
>> Regards,
>> Bradley Giesbrecht (pixilla)
>> _______________________________________________
>> macports-users mailing list
>> macports-users at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2966 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20111209/991b0c70/attachment.bin>

More information about the macports-users mailing list