<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/4a77429710f11c4d0d0857faf49caa985ae0632c">https://github.com/macports/macports-ports/commit/4a77429710f11c4d0d0857faf49caa985ae0632c</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 4a77429710f11c4d0d0857faf49caa985ae0632c
</span>Author: Gleb Mazovetskiy <glex.spb@gmail.com>
AuthorDate: Sun Nov 17 12:32:18 2024 +0000

<span style='display:block; white-space:pre;color:#404040;'>    R: use gcc14 on os.major < 10
</span>---
 _resources/port1.0/group/R-1.0.tcl | 15 +++++----------
 math/R/Portfile                    | 16 ++++++----------
 2 files changed, 11 insertions(+), 20 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/R-1.0.tcl b/_resources/port1.0/group/R-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index a1e4343ac40..c74ee65ad94 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/R-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/R-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -112,7 +112,7 @@ if { ${os.major} > 23 } {
</span> # Similarly, for gcc select the gcc13 variant of the compilers PG.
 # This setting should also be kept in sync with that in the R Port.
 # Updates should be coordinated with the R maintainers.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ${os.major} > 23 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.major} < 10 || ${os.major} > 23 } {
</span>     # https://trac.macports.org/ticket/70799
     compiler.blacklist-append   {macports-gcc-1[5-9]}
 } else {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -120,16 +120,11 @@ if { ${os.major} > 23 } {
</span> }
 # NOTE: upon the update to gcc14, please update the blacklist accordingly,
 # like it is done for clangs. We would prefer using the same version of gcc and gfortran.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.platform} eq "darwin" && ${os.major} < 10} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # Until old platforms are switched to the new libgcc.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    default_variants-append +gcc7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.major} < 10 || ${os.major} > 23 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # https://trac.macports.org/ticket/70799
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    default_variants-append +gcc14
</span> } else {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    if { ${os.major} > 23 } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        # https://trac.macports.org/ticket/70799
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        default_variants-append +gcc14
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        default_variants-append +gcc13
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    default_variants-append +gcc13
</span> }
 
 # R bakes in the compiler, so if it is built with ccache,
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/R/Portfile b/math/R/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1ce13ccc8b0..59e8ad0ee8f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/R/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/R/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,7 +53,7 @@ if { ${os.major} > 23 } {
</span> # Similarly, for gcc select the gcc13 variant of the compilers PG.
 # This setting should also be kept in sync with that in the R Portgroup.
 # Updates should be coordinated with the R maintainers.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ${os.major} > 23 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.major} < 10 || ${os.major} > 23 } {
</span>     # https://trac.macports.org/ticket/70799
     compiler.blacklist-append   {macports-gcc-1[5-9]}
 } else {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -61,17 +61,13 @@ if { ${os.major} > 23 } {
</span> }
 # NOTE: upon the update to gcc14, please update the blacklist accordingly,
 # like it is done for clangs. We would prefer using the same version of gcc and gfortran.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.platform} eq "darwin" && ${os.major} < 10} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # Until old platforms are switched to the new libgcc.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    default_variants-append +gcc7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.major} < 10 || ${os.major} > 23 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # https://trac.macports.org/ticket/70799
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    default_variants-append +gcc14
</span> } else {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    if { ${os.major} > 23 } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        # https://trac.macports.org/ticket/70799
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        default_variants-append +gcc14
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        default_variants-append +gcc13
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    default_variants-append +gcc13
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # When switching to gcc14, make sure to add this flag when gcc is used
 # as the primary compiler: -Wno-error=incompatible-pointer-types
 # devQuartz.c:3049:35: error: passing argument 2 of 'CGContextSetFont'
</pre><pre style='margin:0'>

</pre>