pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/platform mk/platform: Use string comparison for Dar...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/644231be9a1a
branches:  trunk
changeset: 441265:644231be9a1a
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Oct 30 17:28:25 2020 +0000

description:
mk/platform: Use string comparison for Darwin version.

Fixes SDK detection on 11.0.1, where 11 = 11.0 when compared numerically,
leading to the SDK path for "macos11.0.1" not being found.

diffstat:

 mk/platform/Darwin.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2da6cd68e1c1 -r 644231be9a1a mk/platform/Darwin.mk
--- a/mk/platform/Darwin.mk     Fri Oct 30 16:15:38 2020 +0000
+++ b/mk/platform/Darwin.mk     Fri Oct 30 17:28:25 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.100 2020/10/09 17:43:48 jperkin Exp $
+# $NetBSD: Darwin.mk,v 1.101 2020/10/30 17:28:25 jperkin Exp $
 #
 # Variable definitions for the Darwin operating system.
 
@@ -88,7 +88,7 @@
 
 .if !defined(OSX_VERSION)
 OSX_VERSION!=          sw_vers -productVersion
-.  if ${OSX_VERSION:R:R} != ${OSX_VERSION:R}
+.  if "${OSX_VERSION:R:R}" != "${OSX_VERSION:R}"
 OSX_VERSION:=          ${OSX_VERSION:R}
 .  endif
 MAKEFLAGS+=            OSX_VERSION=${OSX_VERSION:Q}



Home | Main Index | Thread Index | Old Index