[MacPorts] #15712: Add versions to platforms

MacPorts noreply at macports.org
Fri Dec 15 05:28:53 UTC 2017


#15712: Add versions to platforms
--------------------------+-----------------------------
  Reporter:  raimue       |      Owner:  larryv
      Type:  enhancement  |     Status:  assigned
  Priority:  Normal       |  Milestone:  MacPorts Future
 Component:  base         |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+-----------------------------

Comment (by ryandesign):

 Replying to [comment:1 afb@…]:
 > Replying to [ticket:15712 raimue at macports.org]:
 > > {{{
 > > platforms    {macosx >=9.3}          # Mac OS X 10.5.3 or higher
 > > }}}
 > Shouldn't that be `{macosx >= 10.5.3}`

 No. We're proposing that the `platforms` variable should be able to check
 `os.major`, which will be `9` on Darwin 9, regardless of whether it's a
 mythical open-source-only Darwin 9 or the full Mac OS X Leopard.

 If you want to query the Mac OS X version, and not the Darwin version, you
 can do so using the `macosx_version` variable and the `vercmp` procedure,
 but I don't think we're considering doing that as part of the `platforms`
 variable changes proposed in this ticket.

 > (or `{darwin >= 9.3}` perhaps) ?

 Just as it has always been, you would use `darwin` in the `platforms`
 statement if your software does not need the proprietary Apple frameworks
 that are part of macOS, or `macosx` if the software does need those
 frameworks.

 Replying to [comment:2 ryandesign]:
 > It doesn't let you specify a range... like "darwin 8 through 10".

 It does if we do it the way we already do it in the
 compiler_blacklist_versions portgroup. In that case, it would be `{darwin
 >= 8 <= 10}`.

--
Ticket URL: <https://trac.macports.org/ticket/15712#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list