pkgsrc-Users archive

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

Re: Darwin/macOS: Xcode upgrades vs. pkgsrc

On 3/18/22 13:32, Greg A. Woods wrote:
A recent Xcode upgraded forced me to make the following change.

However as my comment suggests I think this whole OSX_SDK_MAP mess is
fundamentally the wrong approach:

---	2022-02-25 13:29:47.931821426 -0800
+++	2022-03-18 11:28:21.527119242 -0700
@@ -111,11 +111,21 @@
  # Apple do not always keep the SDK version in step with the OS version.  When
  # that happens add a mapping below, but only within the same OS release major.
+# XXX this is the wrong approach -- the best default is to use the default!
+# (I.e. OSX_TOLERATE_SDK_SKEW should effectively always default to "yes" given
+# the existing logic.)
+# Xcode does not easily allow installation of different version-specific SDKs,
+# and the default SDK can radically change with any Xcode upgrade, HOWEVER, the
+# default installed SDK will, or at least should, always work for the host
+# platform.
  OSX_SDK_MAP.11.2=	11.1
  OSX_SDK_MAP.11.4=	11.3
  OSX_SDK_MAP.11.5=	11.3
  OSX_SDK_MAP.11.6=	11.3
  OSX_SDK_MAP.12.2=	12.1
+OSX_SDK_MAP.12.1=	12.3
  OSX_SDK_PATH!=	/usr/bin/xcrun \
  		    --sdk macosx${OSX_SDK_MAP.${OSX_VERSION}:U${OSX_VERSION}} \

					Greg A. Woods <>

Kelowna, BC     +1 250 762-7675           RoboHack <>
Planix, Inc. <>     Avoncote Farms <>

Yes, we need a smarter system to prevent breakage by macOS updates and
Xcode version skew.  We should aim to try out alternatives shortly after
the branch so we have most of the next quarter to fully test.

Home | Main Index | Thread Index | Old Index