[131261] trunk/dports/lang/ghc/Portfile

cal at macports.org cal at macports.org
Wed Jan 7 13:39:36 PST 2015


Revision: 131261
          https://trac.macports.org/changeset/131261
Author:   cal at macports.org
Date:     2015-01-07 13:39:36 -0800 (Wed, 07 Jan 2015)
Log Message:
-----------
ghc: Change the --with-gcc=${configure.cc} argument by moving the compiler blacklist spec

Normally I'd revbump for a change like this because it changes installed files;
however, GHC failed to build on all platforms that do not use the default
compiler /usr/bin/clang, so all platforms that have a working GHC are not
changed by this commit.

Modified Paths:
--------------
    trunk/dports/lang/ghc/Portfile

Modified: trunk/dports/lang/ghc/Portfile
===================================================================
--- trunk/dports/lang/ghc/Portfile	2015-01-07 21:32:56 UTC (rev 131260)
+++ trunk/dports/lang/ghc/Portfile	2015-01-07 21:39:36 UTC (rev 131261)
@@ -59,6 +59,21 @@
 livecheck.type  none
 test.run        yes
 
+# Compilation fails with older versions of clang. clang-4.1 from Xcode 4.5 is
+# too old, clang-5.1 from from Xcode 5.1 works. I do not have any data points in
+# between, so I'm blacklisting everything lower than 5.1. If you want to test
+# the versions in between, be my guest.
+# Also avoid LLVM GCC 4.2 and GCC 4.2, which are before MacPorts' clang 3.4 in
+# the fallback list on some systems.
+# NOTE that it is actually the C compiler used in ghc-bootstrap that is
+# relevant here. This code block is duplicated in this port to avoid
+# inconsistencies.
+compiler.blacklist-append \
+                llvm-gcc-4.2 \
+                gcc-4.2 \
+                {clang < 503.0.38} \
+                macports-clang-3.3
+
 set bootstraproot ${prefix}/share/ghc-bootstrap
 set llvmPrefix  ${prefix}/libexec/llvm-3.5
 configure.args  --with-ghc=${bootstraproot}/bin/ghc     \
@@ -78,21 +93,6 @@
 compiler.cpath /usr/include
 compiler.library_path /usr/lib
 
-# Compilation fails with older versions of clang. clang-4.1 from Xcode 4.5 is
-# too old, clang-5.1 from from Xcode 5.1 works. I do not have any data points in
-# between, so I'm blacklisting everything lower than 5.1. If you want to test
-# the versions in between, be my guest.
-# Also avoid LLVM GCC 4.2 and GCC 4.2, which are before MacPorts' clang 3.4 in
-# the fallback list on some systems.
-# NOTE that it is actually the C compiler used in ghc-bootstrap that is
-# relevant here. This code block is duplicated in this port to avoid
-# inconsistencies.
-compiler.blacklist-append \
-                llvm-gcc-4.2 \
-                gcc-4.2 \
-                {clang < 503.0.38} \
-                macports-clang-3.3
-
 build.args      VERBOSE=1
 destroot.args   VERBOSE=1
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150107/90d396eb/attachment.html>


More information about the macports-changes mailing list