pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/platform



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Fri Oct 30 17:28:25 UTC 2020

Modified Files:
        pkgsrc/mk/platform: Darwin.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 pkgsrc/mk/platform/Darwin.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/platform/Darwin.mk
diff -u pkgsrc/mk/platform/Darwin.mk:1.100 pkgsrc/mk/platform/Darwin.mk:1.101
--- pkgsrc/mk/platform/Darwin.mk:1.100  Fri Oct  9 17:43:48 2020
+++ pkgsrc/mk/platform/Darwin.mk        Fri Oct 30 17:28:25 2020
@@ -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 @@ _OPSYS_SYSTEM_RPATH?= /usr/lib
 
 .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