Opened 13 years ago
Closed 13 years ago
#32890 closed defect (fixed)
port fails to parse Portfile (and completely loses that port) if xcrun not available
Reported by: | yaseppochi (Stephen J. Turnbull) | Owned by: | jberry@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.0.99 |
Keywords: | Cc: | ||
Port: |
Description
Eg,
Failed to parse file x11/wine-devel/Portfile: can't read "configure.compiler": Failed to locate 'xcrun' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it? Total number of ports parsed: 398 Ports successfully parsed: 356 Ports failed: 42 Up-to-date ports skipped: 12965 The following installed ports are outdated: clang-3.1 3.1-r146339_1 < 3.1-r147925_1 coreutils 8.14_0 < 8.15_0 ImageMagick 6.7.4-0_0 < 6.7.4-6_0 llvm-3.1 3.1-r146339_1 < 3.1-r147925_1 py25-crypto 2.4.1_0 < 2.5_0 py25-wxpython 2.8.9.1_0 < 2.8.12.1_0 py26-crypto 2.4.1_0 < 2.5_0 py27-crypto 2.4.1_0 < 2.5_0 wideload:src/MacPorts 0:31$ which xcrun xcrun not found wideload:src/MacPorts 0:32$ man xcrun No manual entry for xcrun wideload:src/MacPorts 0:47$ port cat wine-devel Error: Port wine-devel not found wideload:src/MacPorts 0:48$
MacPorts (including base) at r88965, Mac OS X 10.5.8, Xcode 3.1.2.
Note that this affects more than 10% of ports updated in svn for me.
Change History (6)
comment:1 Changed 13 years ago by yaseppochi (Stephen J. Turnbull)
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to jberry@… |
---|
comment:3 Changed 13 years ago by pixilla (Bradley Giesbrecht)
MacPorts trunk r89102, Mac OS X 10.5.8 PPC, Xcode 3.1.2.
$ sudo port configure mmencode ---> Configuring mmencode Error: Target org.macports.configure returned: can't read "configure.compiler": Failed to locate 'xcrun' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
comment:4 follow-up: 5 Changed 13 years ago by pixilla (Bradley Giesbrecht)
Looks like xcrun was introduced in Xcode 3.1.3. After upgrading to Xcode 3.1.4 I now have /usr/bin/xcrun.
comment:5 Changed 13 years ago by yaseppochi (Stephen J. Turnbull)
Replying to pixilla@…:
Looks like xcrun was introduced in Xcode 3.1.3. After upgrading to Xcode 3.1.4 I now have /usr/bin/xcrun.
Thank you very much for the hint!
In the spirit of paying forward, I learned that Apple hides their old dev tools, but doesn't make them completely inaccessible. A post on the web pointed me to
http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wo/5.1.17.2.1.3.3.1.0.1.1.0.3.1.3.3.1
You will need to log in as an ADC member (AFAIK you can sign up for free at http://developer.apple.com/). You may need to change the section of that page from Applications to Developer Tools in the right-hand "Dowloads" sidebar. The XCode 3.1.4 download link is way down the page, approximately bottom of the middle third.
comment:6 Changed 13 years ago by jberry@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Resolved in r89359. The check for xcrun is now guarded inside the catch clause. If xcrun is not present, then the conventional compiler search will still find it.
Replying to stephen@…:
Oops, no, it's worse than that. I can't upgrade any of the ports listed as outdated, either, without xcrun.