After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757357 - Fix cerbero config for running on 10.10 using Xcode 7
Fix cerbero config for running on 10.10 using Xcode 7
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: cerbero
git master
Other Mac OS
: Normal normal
: 1.6.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-30 11:53 UTC by Heinrich Fink
Modified: 2015-10-30 15:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
OSX: Use 10.11 SDK path on 10.10, if 10.10 not available (1.30 KB, patch)
2015-10-30 11:53 UTC, Heinrich Fink
none Details | Review
Use xcodebuild to get 'latest' SDK path on OSX (3.01 KB, patch)
2015-10-30 14:55 UTC, Heinrich Fink
committed Details | Review

Description Heinrich Fink 2015-10-30 11:53:20 UTC
Created attachment 314463 [details] [review]
OSX: Use 10.11 SDK path on 10.10, if 10.10 not available

Xcode 7 only ships with the 10.11 SDK, and removed the 10.10 SDK. That is also the case when running Xcode on 10.10. Hence cerbero config fails, as it assume to have an SDK for the current OS version available. While one could set osx_target_sdk_version explicitly, I couldn't make this work during the build-tools bootstrap phase, and instead added a workaround to darwin.config itself. Please see patch attached.
Comment 1 Sebastian Dröge (slomo) 2015-10-30 11:54:48 UTC
Review of attachment 314463 [details] [review]:

::: config/darwin.config
@@ +39,3 @@
+# For Xcode >= 7 on OS X 10.10, only the 10.11 SDK is available, try falling back
+if not os.path.exists(sdk_root) and distro_version == DistroVersion.OS_X_YOSEMITE:
+    sdk_root = '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX%s.sdk' % SDK_VERSION[DistroVersion.OS_X_EL_CAPITAN]

Would be good to add another check to error out if the directory was not found after all
Comment 2 Sebastian Dröge (slomo) 2015-10-30 11:56:01 UTC
Maybe this should also be just a loop like in ios.config... over all possible SDK versions we would like to have, and we take the first that we find then.
Comment 3 Heinrich Fink 2015-10-30 14:55:46 UTC
Created attachment 314492 [details] [review]
Use xcodebuild to get 'latest' SDK path on OSX

Now using the xcodebuild command line utility, which is installed with the Xcode command line tools.
Comment 4 Sebastian Dröge (slomo) 2015-10-30 15:32:32 UTC
Attachment 314492 [details] pushed as c5020a5 - Use xcodebuild to get 'latest' SDK path on OSX