pkgsrc-Users archive

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

Darwin bootstrap failure




Looks like we need to add the following to mk/platform/Darwin.mk for
macOS 13.4:

OSX_SDK_MAP.13.4=       13.3

Does anyone recall why we have these hard-coded mappings in Darwin.mk,
as opposed to just using the "MacOSX.sdk" link, or using the latest?

Darwin tarpon.local  bacon ~ 1022: ls -l
/Library/Developer/CommandLineTools/SDKs/
total 0
lrwxr-xr-x  1 root  wheel   14 May 16 17:16 MacOSX.sdk@ -> MacOSX13.3.sdk
drwxr-xr-x  7 root  wheel  224 May 16 17:16 MacOSX12.3.sdk/
lrwxr-xr-x  1 root  wheel   14 May 16 17:15 MacOSX12.sdk@ -> MacOSX12.3.sdk
drwxr-xr-x  7 root  wheel  224 Nov 12  2022 MacOSX13.1.sdk/
drwxr-xr-x  7 root  wheel  224 Mar  9 18:58 MacOSX13.3.sdk/
lrwxr-xr-x  1 root  wheel   14 May 16 17:15 MacOSX13.sdk@ -> MacOSX13.3.sdk

These hard coded mappings potentially causes breakage every time a new
macOS version is released.

If there's a reason not to use the link (e.g. fear of the XDK version
changing after bootstrap due to routine software updates), maybe we
could dynamically identify the latest of *[0-9]*.sdk, e.g.

#!/bin/sh -e



cd /Library/Developer/CommandLineTools/SDKs

ls -d *[0-9].*.sdk | sed -e 's|MacOSX||' -e 's|.sdk||' | sort -g | tail -1

We had this conversation before, but I don't think it was ever resolved.


Home | Main Index | Thread Index | Old Index