Opened 7 weeks ago
Last modified 7 weeks ago
#70997 new defect
Warning: Unnecessary platforms line as darwin is the default
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.10.1 |
Keywords: | Cc: | markemer (Mark Anderson), pguyot (Paul Guyot) | |
Port: |
Description
port lint
complains about an unnecessary platforms darwin
line in Portfiles that do not have that line:
% port lint pg16-postgis3 ---> Verifying Portfile for pg16-postgis3 Warning: Unnecessary platforms line as darwin is the default ---> 0 errors and 1 warnings found. % grep platforms $(port file pg16-postgis3) platforms any
This was also reported on the mailing list.
Note: See
TracTickets for help on using
tickets.
The warning is triggered if there is a
platforms
line anywhere in the Portfile, and theplatforms
option is set todarwin
after the Portfile has been executed. This is a false positive in the case that some subports setplatforms
but to some other value, and other subports leave it at the default value.