question about overriding the platforms statement in subports

Ken Cunningham ken.cunningham.webuse at gmail.com
Sun Dec 8 15:52:08 UTC 2024



> On Dec 7, 2024, at 22:25, Joshua Root <jmr at macports.org> wrote:
> 
> On 8/12/2024 05:55, Ken Cunningham wrote:
>> The gcc8 portfile, for example, contains this at the top:
>> platforms           {darwin >= 10 < 15}
>> and then this lower down, near the libgcc8 stub port:
>> platforms {darwin < 15}
> 
> Make sure you're setting platforms at most once for any given subport.
> 
> - Josh

I’ll find a way to rewrite things in the gcc portfiles to allow this, thanks.

As a feature request for the future, for ease of writing portfiles it might be helpful I think if a second platforms statement would replace a previous one. 

K


More information about the macports-dev mailing list