[MacPorts] #30342: Update ARB for Lion (OS X 10.7) and Xcode 4
MacPorts
noreply at macports.org
Tue Jul 26 14:03:44 PDT 2011
#30342: Update ARB for Lion (OS X 10.7) and Xcode 4
--------------------------------------+-------------------------------------
Reporter: matt.cottrell@… | Owner: macports-tickets@…
Type: update | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.0
Keywords: lion haspatch maintainer | Port: arb
--------------------------------------+-------------------------------------
Comment(by ryandesign@…):
The compiler selection block seems very confused. What you've written is:
{{{
if {${configure.compiler} == "clang" ||
${configure.compiler} == "llvm-gcc-4.2"} {
configure.compiler clang
if {![file executable ${configure.cc}]} {
depends_build-append port:apple-gcc42
configure.compiler apple-gcc-4.2
}
}
}}}
What this is saying is: If the compiler is clang or llvm-gcc-4.2, set the
compiler to clang, and if that does not exist, then use the apple-gcc-4.2
port.
I think what you did was take a block that was meant to ensure the use of
gcc-4.2 on systems that would otherwise use llvm-gcc-4.2 or clang, and
modified it. As written, the [comment:4 original block] made sense:
{{{
if {${configure.compiler} == "clang" ||
${configure.compiler} == "llvm-gcc-4.2"} {
configure.compiler gcc-4.2
if {![file executable ${configure.cc}]} {
depends_build-append port:apple-gcc42
configure.compiler apple-gcc-4.2
}
}
}}}
This says: If the compiler is clang or llvm-gcc-4.2, set the compiler to
gcc-4.2, and if that does not exist, then use the apple-gcc-4.2 port.
For arb, I think what you want to write is quite simply:
{{{
if {${configure.compiler} == "llvm-gcc-4.2"} {
configure.compiler clang
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/30342#comment:8>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list