[MacPorts] #61712: mpstats should use OS version "11" for Big Sur (not 11.0, 11.1, etc.)
MacPorts
noreply at macports.org
Tue Dec 1 00:48:04 UTC 2020
#61712: mpstats should use OS version "11" for Big Sur (not 11.0, 11.1, etc.)
-------------------------+------------------------
Reporter: ryandesign | Owner: neverpanic
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: mpstats |
-------------------------+------------------------
Comment (by ryandesign):
Josh didn't want to change `macosx_version` because that would be a
backward-incompatible change. Instead he introduced `macos_version` and
`macos_version_major`, the latter of which is what we want here, but they
are not yet in a released version. See
[1916d6f553cde96dd98c720e3b78a8f9bf29ca85/macports-base].
Until that's released, the mpstats client could use maybe:
{{{
# TODO: Just use $macos_version_major after MacPorts 2.7.0 is released
if {[vercmp $macosx_version 11] >= 0} {
dict set os osx_version [lindex [split $macosx_version .] 0]
} else {
dict set os osx_version [join [lrange [split $macosx_version .] 0
1] .]
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61712#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list