[131258] trunk/dports/lang

cal at macports.org cal at macports.org
Wed Jan 7 12:02:00 PST 2015


Revision: 131258
          https://trac.macports.org/changeset/131258
Author:   cal at macports.org
Date:     2015-01-07 12:02:00 -0800 (Wed, 07 Jan 2015)
Log Message:
-----------
ghc-bootstrap: Blacklist older clang in order to fix ghc on older systems

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

Modified: trunk/dports/lang/ghc/Portfile
===================================================================
--- trunk/dports/lang/ghc/Portfile	2015-01-07 19:35:21 UTC (rev 131257)
+++ trunk/dports/lang/ghc/Portfile	2015-01-07 20:02:00 UTC (rev 131258)
@@ -84,6 +84,9 @@
 # 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 \

Modified: trunk/dports/lang/ghc-bootstrap/Portfile
===================================================================
--- trunk/dports/lang/ghc-bootstrap/Portfile	2015-01-07 19:35:21 UTC (rev 131257)
+++ trunk/dports/lang/ghc-bootstrap/Portfile	2015-01-07 20:02:00 UTC (rev 131258)
@@ -2,11 +2,13 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           compiler_blacklist_versions 1.0
 
 name                ghc-bootstrap
 set canonicalname   ghc
 # Note: 7.6.3 doesn't have a i386 darwin version at http://www.haskell.org/ghc/dist/7.6.3
 version             7.6.2
+revision            1
 categories          lang haskell
 maintainers         gmail.com:kitchen.andy cal openmaintainer
 license             BSD
@@ -38,6 +40,19 @@
     xinstall -m 644 ${filespath}/clang-wrapper ${workpath}/clang-wrapper
 }
 
+# Compilation (of the final non-bootstrap GHC, which uses the C compiler
+# configured in this port) 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.
+compiler.blacklist-append \
+                    llvm-gcc-4.2 \
+                    gcc-4.2 \
+                    {clang < 503.0.38} \
+                    macports-clang-3.3
+
 configure.pre_args  --prefix=${prefix}/share/ghc-bootstrap
 configure.args      --with-gcc=${configure.cc}
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150107/0c149c02/attachment.html>


More information about the macports-changes mailing list