> Le 11 févr. 2016 à 16:19, Ryan Schmidt <ryandes...@macports.org> a écrit :
> 
> On Feb 11, 2016, at 2:00 AM, Sébastien Maret wrote:
>> 
>>> Le 10 févr. 2016 à 16:23, Ryan Schmidt <ryandes...@macports.org> a écrit :
>>> 
>>> On Feb 10, 2016, at 8:52 AM, Sébastien Maret wrote:
>>> 
>>>> I am maintaining the Gildas port which depends on the CFITSIO library. 
>>>> CFITSIO has a Fortran interface but it is not built by default: one need 
>>>> to select a specific variant (e.g. +gcc 5) for this. This is a problem for 
>>>> the Gildas because the compilation fails without the Fortran interface:
>>>> https://trac.macports.org/ticket/50543
>>>> 
>>>> Is there a way for a port to depend on a specific variant of another port? 
>>>> If not then how can I solve this?
>>> 
>>> The require_active_variants procedure in the active_variants 1.1 port group.
>> 
>> Thanks. I’ve added the cfitsio +gcc5 in require_active_variants and this 
>> solves the problem on Yosemite:
>> https://trac.macports.org/changeset/145605
>> 
>> However the compilation fails on older MacOS versions because the +gcc5 
>> variant is not available.
> 
> Why isn't the gcc5 variant available on older Mac OS versions?

I don’t know. The build bot log for Mountain Lion says:

DEBUG: cfitsio is installed with the following variants: 
DEBUG:   required: gcc5, forbidden: 
DEBUG:   rejected, because required variant gcc5 is missing
Error: org.macports.configure for port gildas returned: cfitsio must be 
installed with +gcc5.

https://build.macports.org/builders/buildports-mtln-x86_64/builds/27804/steps/compile/logs/stdio/text

so I thought that the cfitsio +gcc5 variant was missing on that platform. But 
perhaps I misunderstand the build bot log?

Sébastien
_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to