<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/91899df355a45ab60f3589a4aec08d90143b6c49">https://github.com/macports/macports-ports/commit/91899df355a45ab60f3589a4aec08d90143b6c49</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 91899df355a45ab60f3589a4aec08d90143b6c49
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Sat May 25 22:02:19 2019 +0100
<span style='display:block; white-space:pre;color:#404040;'> gcc9: replace cctools variant logic with compiler blacklist, following cctools update
</span>---
lang/gcc9/Portfile | 62 ++++++++++--------------------------------------------
1 file changed, 11 insertions(+), 51 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc9/Portfile b/lang/gcc9/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 31cd77b..b69d534 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc9/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc9/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,16 +1,16 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup select 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup active_variants 1.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup conflicts_build 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup select 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup compiler_blacklist_versions 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup active_variants 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup conflicts_build 1.0
</span>
epoch 2
name gcc9
version 9.1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-subport libgcc9 { revision 1 }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport libgcc9 { revision 2 }
</span> platforms darwin
categories lang
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -101,50 +101,6 @@ configure.env-append \
</span> OTOOL=${prefix}/bin/otool \
OTOOL64=${prefix}/bin/otool
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Make sure the MP clang version used by cctool's 'as' is available at build time and used.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ${os.major} > 10 } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![catch {set installed [lindex [registry_active cctools] 0]}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # cctools already installed, so figure out from registry what variant to use
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # First, is xcode variant in use ?
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[active_variants cctools xcode ""]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # xcode variant is in use. Warn (as no longer the default) but accept as should still work.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_warn "cctools has (non default) xcode variant active. Consider reinstalling cctools using default variants."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # llvm variant list here must have all possible variants from cctools in it
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set llvm_variant_found "no"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach {llvm_v llvm_v_nodot} {3.4 34 3.7 37 3.9 39 4.0 40 5.0 50 6.0 60 7.0 70 8.0 80 devel dev} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[active_variants cctools llvm${llvm_v_nodot} ""]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:clang-${llvm_v}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.compiler macports-clang-${llvm_v}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set llvm_variant_found "yes"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- break
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # If we failed to find the active variant, error out as it could mean
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # above variant list is out of date.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { ${llvm_variant_found} eq "no" } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "Failed to determine active llvm variant for cctools. Please check variant list."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "configuration error"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "${subport}: cctools has llvm variant ${llvm_v} active"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # cctools is not yet installed, so have to play 'guess the default variant' :(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Logic here needs to match that used in cctools port.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { ${os.major} <= 11 } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set llvm_v 3.4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif { ${os.major} <= 13 } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set llvm_v 3.7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set llvm_v 7.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_build-append port:clang-${llvm_v}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.compiler macports-clang-${llvm_v}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "${subport}: cctools not active. Will assume default llvm variant is ${llvm_v}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> pre-configure {
# Set package info
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -179,6 +135,10 @@ compiler.blacklist-append {llvm-gcc-4.2 < 2336.1}
</span> # https://trac.macports.org/ticket/47996
compiler.blacklist-append {clang < 300}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://trac.macports.org/ticket/58493
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist-append {clang < 800}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.whitelist clang macports-clang-7.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # "-stdlib" would be passed on to the bootstrap compiler if present
configure.cxx_stdlib
</pre><pre style='margin:0'>
</pre>