Ticket #34742 (closed defect: fixed)
py27-sip fails to build after Lion upgrade
| Reported by: | andrew.long@… | Owned by: | phw@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.1.1 |
| Keywords: | lion mountainlion haspatch | Cc: | michaelld@…, russell.jones@… |
| Port: | py-sip |
Description
Following an upgrade to Lion, using the 'restore-ports' script fails at installing py27-sip.
Extract from configure log follows:-
:debug:configure Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-sip/py27-sip/work/sip-4.13.2" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 configure.py -d /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 -e /opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -v /opt/local/share/sip -p macx-g++ --bindir=/opt/local/bin --destdir=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages --incdir=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 --sipdir=/opt/local/share/py27-sip --arch=x86_64 --arch=i386 --sdk=/Applications/Xcode.app/Contents/Developer/SDKs/MacOSX10.7.sdk LFLAGS="-F/opt/local/Library/Frameworks -L/opt/local/lib -arch x86_64 -arch i386" CFLAGS="-arch x86_64 -arch i386" CXXFLAGS="-arch x86_64 -arch i386" :info:configure Error: Unable to find the SDK directory :info:configure /Applications/Xcode.app/Contents/Developer/SDKs/MacOSX10.7.sdk. Use the --sdk :info:configure flag to specify the name of the SDK or its full path. :info:configure This is SIP 4.13.2 for Python 2.7.3 on darwin. :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-sip/py27-sip/work/sip-4.13.2" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 configure.py -d /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 -e /opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -v /opt/local/share/sip -p macx-g++ --bindir=/opt/local/bin --destdir=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages --incdir=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 --sipdir=/opt/local/share/py27-sip --arch=x86_64 --arch=i386 --sdk=/Applications/Xcode.app/Contents/Developer/SDKs/MacOSX10.7.sdk LFLAGS="-F/opt/local/Library/Frameworks -L/opt/local/lib -arch x86_64 -arch i386" CFLAGS="-arch x86_64 -arch i386" CXXFLAGS="-arch x86_64 -arch i386" :info:configure Exit code: 1
Submitting a ticket as requested.
Regards, Andy
Attachments
Change History
comment:1 Changed 12 months ago by ryandesign@…
- Owner changed from macports-tickets@… to phw@…
- Port set to py-sip
Changed 11 months ago by deric@…
- Attachment py-sip-Portfile.diff added
sets sdks_dir depending on xcode version
comment:2 Changed 10 months ago by russell.jones@…
On a fresh install of OS X 10.7, Xcode + CLI utils and Macports 2.1.1, I get this error. The SDKs are actually in /Applications/Xcode.app/Content/Developer/Platforms/MacOSX.platform/Developer/SDKs. The directory in the build/configure log (which is as above) does not exist. This is without an upgrade. It's all installed from scratch (starting with cmd-R).
comment:3 Changed 9 months ago by michaelld@…
py-sip, for the same reason (XCode 4.3 and newer changed where SDKs are located), fails to configure on 10.8. I've attached a Portfile patch that extends the current one to include 10.8; it works for me & looks backward compatible. Given that py-sip is broken under 10.8, I would like to commit this change. PHW: What do you say?
Changed 9 months ago by michaelld@…
- Attachment py-sip-Portfile-ML.diff added
py-sip Portfile change for XCode 4.3+ and 10.8

