<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/c96e3131b854e3c6deb38699715bbe9c0d10b01b">https://github.com/macports/macports-ports/commit/c96e3131b854e3c6deb38699715bbe9c0d10b01b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit c96e3131b854e3c6deb38699715bbe9c0d10b01b
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Wed May 8 10:52:05 2019 +0100
<span style='display:block; white-space:pre;color:#404040;'> gcc10,libgcc-devel: Update to 10-2019050 snapshot. Add test to make sure cctools llvm variant check succeeded.
</span>---
lang/gcc10/Portfile | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc10/Portfile b/lang/gcc10/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index cbb3748..7278918 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc10/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc10/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,7 +8,7 @@ PortGroup conflicts_build 1.0
</span>
epoch 3
name gcc10
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 9-20190504
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 10-20190505
</span> revision 0
subport libgcc-devel { revision 0 }
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,9 +29,9 @@ master_sites ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/sn
</span> distname gcc-${version}
use_xz yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 091e9ac80610138f75c5babb317f2ca82632fea7 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 0eaefe63cf2f9fc9f34a313fe23b95c199fdebca2577e0cd6931ae30a75ba570 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 68751664
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 08c507e6d6b888a47f0e998f35c3a43269630c67 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 5ef4500a9e440fd9469dabd0a7d2ece133932c199573a70eae38af09b0940a3e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 68789736
</span>
depends_lib port:cctools \
port:gmp \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -102,13 +102,23 @@ if { ${os.major} > 10 } {
</span> if {![catch {set installed [lindex [registry_active cctools] 0]}]} {
# cctools already installed, so figure out from registry what variant to use
# list here must have all possible variants from cctools in it
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set llvm_variant_found "no"
</span> 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} {
if {[active_variants cctools llvm${llvm_v_nodot} ""]} {
depends_build-append port:clang-${llvm_v}
configure.compiler macports-clang-${llvm_v}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ set llvm_variant_found "yes"
</span> break
}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If we failed to find the active variant, error out as it could mean
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # above variant list is out of date.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${llvm_variant_found} eq "no" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "Failed to determine active llvm variant for cctools. Please check variant list."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "configuration error"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "${subport}: cctools has llvm variant ${llvm_v} active"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> } else {
# cctools is not yet installed, so have to play 'guess the default variant' :(
# Logic here needs to match that used in cctools port.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -121,6 +131,7 @@ if { ${os.major} > 10 } {
</span> }
depends_build-append port:clang-${llvm_v}
configure.compiler macports-clang-${llvm_v}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "${subport}: cctools not active. Will assume default llvm variant is ${llvm_v}"
</span> }
}
</pre><pre style='margin:0'>
</pre>