[100629] trunk/dports/science/mpich/Portfile
eborisch at macports.org
eborisch at macports.org
Mon Dec 17 20:16:29 PST 2012
Revision: 100629
https://trac.macports.org/changeset/100629
Author: eborisch at macports.org
Date: 2012-12-17 20:16:28 -0800 (Mon, 17 Dec 2012)
Log Message:
-----------
mpich[-devel]: Update to use compiler_blacklist_versions. Only create clang variant when compatible.
Modified Paths:
--------------
trunk/dports/science/mpich/Portfile
Modified: trunk/dports/science/mpich/Portfile
===================================================================
--- trunk/dports/science/mpich/Portfile 2012-12-18 00:57:35 UTC (rev 100628)
+++ trunk/dports/science/mpich/Portfile 2012-12-18 04:16:28 UTC (rev 100629)
@@ -2,6 +2,7 @@
# $Id$
PortSystem 1.0
+PortGroup compiler_blacklist_versions 1.0
name mpich
set pkgname mpich2
@@ -84,6 +85,9 @@
depends_lib-append port:libxml2
+# Linker for Apple clang version 431.11.66 currently segfaults
+# See https://trac.macports.org/ticket/36654#comment:9
+compiler.blacklist-append {clang >= 421.11.66}
platform darwin {
configure.args-append --enable-timer-type=mach_absolute_time
@@ -102,35 +106,35 @@
variant gcc47 description {
Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc47 port
-} conflicts gcc43 gcc44 gcc45 gcc46 llvm clang clang31 {
+} conflicts gcc43 gcc44 gcc45 gcc46 llvm clang31 {
depends_lib-append port:gcc47
configure.compiler macports-gcc-4.7
}
variant gcc46 description {
Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc46 port
-} conflicts gcc43 gcc44 gcc45 gcc47 llvm clang clang31 {
+} conflicts gcc43 gcc44 gcc45 gcc47 llvm clang31 {
depends_lib-append port:gcc46
configure.compiler macports-gcc-4.6
}
variant gcc45 description {
Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc45 port
-} conflicts gcc43 gcc44 gcc46 gcc47 llvm clang clang31 {
+} conflicts gcc43 gcc44 gcc46 gcc47 llvm clang31 {
depends_lib-append port:gcc45
configure.compiler macports-gcc-4.5
}
variant gcc44 description {
Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc44 port
-} conflicts gcc43 gcc45 gcc46 gcc47 llvm clang clang31 {
+} conflicts gcc43 gcc45 gcc46 gcc47 llvm clang31 {
depends_lib-append port:gcc44
configure.compiler macports-gcc-4.4
}
variant gcc43 description {
Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc43 port
-} conflicts gcc44 gcc45 gcc46 gcc47 llvm clang clang31 {
+} conflicts gcc44 gcc45 gcc46 gcc47 llvm clang31 {
depends_lib-append port:gcc43
configure.compiler macports-gcc-4.3
}
@@ -146,25 +150,13 @@
variant llvm description {
Use Apple-supplied llvm-gcc
-} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 clang clang31 {
+} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 clang31 {
configure.compiler llvm-gcc-4.2
}
-# Apple clang version 4.1 currently segfaults (Xcode 4.5.1)
-# See https://trac.macports.org/ticket/36654#comment:9
-if {[vercmp ${xcodeversion} 4.5.1] >= 0} {
- compiler.blacklist clang
- # Keeping variant so all the conflict lines don't balk and so upgrades
- # of +clang are not moved to llvm without warning.
+if {[regexp -all -- {\yclang\y} ${compiler.blacklist}] == 0} {
+ # Only expose clang variant if not blacklisted
variant clang description {
- !!THIS CLANG VERSION BREAKS. UNUSABLE VARIANT HERE AS PLACEHOLDER ONLY!!
- } conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang31 {
- ui_error \
- "This version of clang segfaults. Please select a different compiler."
- return -code error "Unsupported clang version. Try +clang31 or +llvm ?"
- }
-} else {
- variant clang description {
Use Apple-supplied clang
} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang31 {
configure.compiler clang
@@ -173,7 +165,7 @@
variant clang31 description {
Use clang 3.1 from MacPorts
-} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang {
+} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm {
depends_lib-append port:clang-3.1
configure.compiler macports-clang-3.1
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121217/35cd17ad/attachment.html>
More information about the macports-changes
mailing list