When I submitted a port a few months ago, I was told that `platforms
darwin` is implicit in MacPorts now [1], so newer ports shouldn't include
the field unless the port doesn't build on certain macOS versions (e.g, a
port that doesn't build on anything lower than macOS Catalina, `darwin >=
19`).

Older ports might still have this field, hence the warning. I think it's
trivial put that's where the warning comes from.

[1]:
https://github.com/macports/macports-ports/pull/20062#issuecomment-1700057721

On Fri, Sep 20, 2024 at 2:07 PM Mark E Anderson <m...@macports.org> wrote:

> I've been getting this error, in files that don't have a platform line. I
> assume this error is in a port group? My question is, is it the lint that's
> wrong or the portgroups?
>
> Warning: Unnecessary platforms line as darwin is the default
>
>
> Thanks,
> Mark
>

Reply via email to