[MacPorts] #70464: claws-mail, nmap, and ncarg have bad OS version conditionals

MacPorts noreply at macports.org
Tue Jul 30 04:22:31 UTC 2024


#70464: claws-mail, nmap, and ncarg have bad OS version conditionals
-----------------------+-------------------------------------
 Reporter:  fhgwright  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.9.3
 Keywords:             |       Port:  claws-mail, nmap, ncarg
-----------------------+-------------------------------------
 I stumbled across this:
 {{{
 MacPro:macports-ports fw$ git grep -n '${os.version} *[<>=]'
 mail/claws-mail/Portfile:58:if {${os.platform} eq "darwin" &&
 ${os.version} < 12} {
 net/nmap/Portfile:58:if {${os.platform} eq "darwin" && ${os.version} < 13}
 {
 science/ncarg/Portfile:171:        if {${os.version}>=12} {
 }}}

 In each case, `${os.version}` should almost certainly be `${os.major}`.
 As it is, 10.4 and 10.5 (darwin 8 and 9) are treated as the most recent
 systems.

-- 
Ticket URL: <https://trac.macports.org/ticket/70464>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list