variants the second ...

Ryan Schmidt ryandesign at macports.org
Thu Oct 3 11:39:17 PDT 2013


On Oct 3, 2013, at 13:22, Peter Danecek wrote:

> I have one variant (+gsi for GSI authentication) I do not want to make default. However, if this is activated, I would like to an other variant to come with it, ( i.e. +ca-bundle, a bundle with CA certificates), so that the user would get a working environment. To achieve this I could use the requires option. 
> 
> Now I could imagine, however that user would like manage his CAs in an individual way (using a different set of certificates, allow only a small subset, etc.) so it should be possible to disable the ca-bundle. 
> 
> I see no way to achieve this. Something like +gsi -ca-bundle would still yield +gsi +ca-bundle (due to the requires option). And updating default_variants would not work either, as this needs to be evaluated in and earlier stage, right?

First: the "-" character cannot be used in a variant name. You can only use letters, numbers, and "_". So let's say you call it "ca_bundle".

If +gsi requires +ca_bundle, then indicate that with "requires". If it doesn't, then don't.

I'm not sure how common the desire is to manage one's own certificates. 




More information about the macports-dev mailing list