pkgsrc-Users archive

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

Re: XCode 11.1 + Mac OS X 10.14.6 + pkgsrc 2019Q3



Yes, Setting OSX_TOLERATE_SDK_SKEW to 'yes' in '~/pkgsrc/mk/platform/Darwin.mk' fixed my problem.

I am now happily compiling a couple of utilities through pkgsrc.

Thanks to Jonathan Perkins and Michael-John Turner for their help!

Le jeu. 10 oct. 2019 à 10:25, Michael-John Turner <mj%mjturner.net@localhost> a écrit :
On Tue, Oct 08, 2019 at 11:15:33PM +0200, Noryungi wrote:
>Any ideas? It seems it has also hit other projects, such as Brew.

I saw the same issue, also with 10.14.6 and XCode 11.1.

Checking mk/platform/Darwin.mk, I can see the following two checks:
.  if !defined(OSX_SDK_PATH)
OSX_SDK_PATH!=  /usr/bin/xcrun --sdk macosx${OSX_VERSION} --show-sdk-path 2>/dev/null || echo /nonexistent
OSX_TOLERATE_SDK_SKEW?= no
.    if ${OSX_SDK_PATH} == "/nonexistent" && !empty(OSX_TOLERATE_SDK_SKEW:M[Yy][Ee][Ss])
OSX_SDK_PATH!=  /usr/bin/xcrun --sdk macosx --show-sdk-path 2>/dev/null || echo /nonexistent
.    endif

The first xcrun check will naturally fail as XCode 11.1 installs the 10.15 SDK. The
second xcrun check is not called by default as OSX_TOLERATE_SDK_SKEW is not set
to "yes" by default. Setting that variable in /usr/pkg/etc/mk.conf resolved the
issue for me.

I'm guessing a permanent fix in Darwin.mk may be a better option otherwise lots
of people are going to run into this one...

Cheers, MJ
--
Michael-John Turner * mj%mjturner.net@localhost * http://mjturner.net/



Home | Main Index | Thread Index | Old Index