[112183] trunk/base/src/macports1.0/macports.tcl
Ryan Schmidt
ryandesign at macports.org
Mon Oct 14 12:26:49 PDT 2013
On Oct 14, 2013, at 14:22, jeremyhu at macports.org wrote:
> Revision: 112183
> https://trac.macports.org/changeset/112183
> Author: jeremyhu at macports.org
> Date: 2013-10-14 12:22:30 -0700 (Mon, 14 Oct 2013)
> Log Message:
> -----------
> Determine macosx_version consistently (and correctly) with other parts of base
>
> Modified Paths:
> --------------
> trunk/base/src/macports1.0/macports.tcl
>
> Modified: trunk/base/src/macports1.0/macports.tcl
> ===================================================================
> --- trunk/base/src/macports1.0/macports.tcl 2013-10-14 19:00:23 UTC (rev 112182)
> +++ trunk/base/src/macports1.0/macports.tcl 2013-10-14 19:22:30 UTC (rev 112183)
> @@ -597,8 +597,7 @@
> set os_endian [string range $tcl_platform(byteOrder) 0 end-6]
> set macosx_version {}
> if {$os_platform eq {darwin}} {
> - # This will probably break when Apple changes versioning
> - set macosx_version 10.[expr {$os_major - 4}]
> + set macosx_version [exec sw_vers -productVersion]
> }
That changes macosx_version from e.g. "10.8" before to e.g. "10.8.5" now. That might cause problems.
More information about the macports-dev
mailing list