xcode 4.3 breaks macports
James Gregurich
bayoubengal at mac.com
Fri Jan 27 15:18:03 PST 2012
I'm not sure if this is known or not, but Xcode 4.3 breaks macports. I'll report what I have learned in hacking my macports install into working. Note that /Developer has been moved inside the Xcode.app package and the internal structure of Developer has changed.
In xcode 4.3, "/Applications/Xcode.app/Contents/Developer/usr/bin" does not contain clang and clang++.
Also, the sdkroot calculation is also now wrong as the macosx sdk is now in the platforms folder. To illustrate, the path to the 10.6 sdk is now:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
Here is the line I corrected to make the change in portconfigure….although I'm sure you'll need more logic to make this change only for Xcode 4.3.
set sdk "${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${macosx_deployment_target}.sdk"
-James
More information about the macports-dev
mailing list