pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/platform If an SDK matching our OS X version isn't ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f1db3071f6ba
branches:  trunk
changeset: 387033:f1db3071f6ba
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Wed Nov 07 16:50:27 2018 +0000

description:
If an SDK matching our OS X version isn't found -- for instance, because
OS X has been upgraded and Xcode hasn't been -- try again without
specifying the version. This (1) works better and (2) gives a better
error message when it doesn't. From Markus Mayer in PR pkg/50317.

diffstat:

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

diffs (19 lines):

diff -r dce21ffae930 -r f1db3071f6ba mk/platform/Darwin.mk
--- a/mk/platform/Darwin.mk     Wed Nov 07 13:10:01 2018 +0000
+++ b/mk/platform/Darwin.mk     Wed Nov 07 16:50:27 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.88 2017/10/10 13:57:23 jperkin Exp $
+# $NetBSD: Darwin.mk,v 1.89 2018/11/07 16:50:27 schmonz Exp $
 #
 # Variable definitions for the Darwin operating system.
 
@@ -101,6 +101,9 @@
 .elif exists(/usr/bin/xcrun)
 .  if !defined(OSX_SDK_PATH)
 OSX_SDK_PATH!= /usr/bin/xcrun --sdk macosx${OSX_VERSION} --show-sdk-path 2>/dev/null || echo /nonexistent
+.    if ${OSX_SDK_PATH} == "/nonexistent"
+OSX_SDK_PATH!= /usr/bin/xcrun --sdk macosx --show-sdk-path 2>/dev/null || echo /nonexistent
+.    endif
 MAKEFLAGS+=    OSX_SDK_PATH=${OSX_SDK_PATH:Q}
 .  endif
 .  if exists(${OSX_SDK_PATH}/usr/include/stdio.h)



Home | Main Index | Thread Index | Old Index