Opened 12 years ago
Closed 12 years ago
#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 (Michael Dickens), Russell-Jones-OxPhys (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 (2)
Change History (8)
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to phw@… |
---|---|
Port: | py-sip added |
Changed 12 years ago by deric@…
Attachment: | py-sip-Portfile.diff added |
---|
comment:2 Changed 12 years ago by Russell-Jones-OxPhys (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 12 years ago by michaelld (Michael Dickens)
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 12 years ago by michaelld (Michael Dickens)
Attachment: | py-sip-Portfile-ML.diff added |
---|
py-sip Portfile change for XCode 4.3+ and 10.8
comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | russell.jones@… added |
---|---|
Keywords: | lion mountainlion haspatch added |
Has duplicate #35681.
comment:6 Changed 12 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Committed in r96667.
sets sdks_dir depending on xcode version