CFITSIO's Fortran interface
Sébastien Maret
sebastien.maret at icloud.com
Tue Feb 16 01:09:39 PST 2016
> Le 15 févr. 2016 à 19:24, Ryan Schmidt <ryandesign at macports.org> a écrit :
>
>>
>> On Feb 15, 2016, at 2:07 AM, Sébastien Maret <sebastien.maret at icloud.com> wrote:
>>
>>>
>>> Le 11 févr. 2016 à 16:19, Ryan Schmidt <ryandesign at 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 <ryandesign at 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?
>
> I think you misunderstand. This message is generated by the active_variants 1.1 portgroup. It means that gildas requires the cfitsio port to be installed with the +gcc5 variant, but the user (in this case, the buildbot) did not do that (in this case, because it is not a default variant, and the buildbot only builds default variants). So, nothing about this situation should really be OS X-version-specific.
OK, thanks for the clarifications.
Sébastien
More information about the macports-dev
mailing list