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

cal at macports.org cal at macports.org
Wed Jan 7 11:27:08 PST 2015


Revision: 131256
          https://trac.macports.org/changeset/131256
Author:   cal at macports.org
Date:     2015-01-07 11:27:08 -0800 (Wed, 07 Jan 2015)
Log Message:
-----------
ghc: attempt to fix build on ML and below

Error is:
	libraries/Cabal/Cabal/Distribution/Version.hs:700:19:
		Parse error in pattern: Parse.skipSpaces
	make[1]: *** [utils/ghc-cabal/dist/build/tmp/ghc-cabal] Error 1
which is caused by GHC's uncommon requirements towards the C preprocessor. Only
recent clang versions are compatible with GHC.

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

Modified: trunk/dports/lang/ghc/Portfile
===================================================================
--- trunk/dports/lang/ghc/Portfile	2015-01-07 19:22:53 UTC (rev 131255)
+++ trunk/dports/lang/ghc/Portfile	2015-01-07 19:27:08 UTC (rev 131256)
@@ -2,7 +2,7 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           active_variants 1.1
+PortGroup           compiler_blacklist_versions 1.0
 
 name                ghc
 # Do not update GHC separate from Haskell Platform.
@@ -78,6 +78,14 @@
 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.
+compiler.blacklist-append \
+                {clang < 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/1f9baa5c/attachment.html>


More information about the macports-changes mailing list