<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/48f30ded111c465364f30a85c57876b447529fdb">https://github.com/macports/macports-ports/commit/48f30ded111c465364f30a85c57876b447529fdb</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 48f30ded111 gcc{11,12,13}: Retain SDK major version when cleaning SDKROOT
</span>48f30ded111 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 48f30ded111c465364f30a85c57876b447529fdb
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Sat Jul 6 14:52:36 2024 +0100
<span style='display:block; white-space:pre;color:#404040;'> gcc{11,12,13}: Retain SDK major version when cleaning SDKROOT
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/70328
</span>---
lang/gcc12/Portfile | 17 ++++++++++++++---
lang/gcc13/Portfile | 17 ++++++++++++++---
lang/gcc14/Portfile | 17 ++++++++++++++---
3 files changed, 42 insertions(+), 9 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc12/Portfile b/lang/gcc12/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index cd6559acb2c..4808bf19395 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc12/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc12/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -81,9 +81,20 @@ if {${subport} eq ${name} && ${build_arch} ne "i386"} {
</span> }
proc get_clean_sysroot {} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- global configure.sdkroot
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # if the sdkroot is one of the current, rapidly changing SDKS, use the generic one
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return [regsub {MacOSX1[1-9]\.[0-9]+\.sdk} ${configure.sdkroot} {MacOSX.sdk}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global configure.sdkroot configure.sdk_version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set new_sdk ${configure.sdkroot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [regexp {MacOSX(.*).sdk} ${configure.sdkroot} -> sdk_v] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${sdk_v} != "" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If present strip minor version from SDK version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sdk_major [lindex [split $sdk_v .] 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "Detected versioned SDK ${sdk_v} ${sdk_major} ${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set new_sdk [regsub {MacOSX1[1-9]\.[0-9]+\.sdk} ${configure.sdkroot} MacOSX${sdk_major}.sdk]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${new_sdk} != ${configure.sdkroot} } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug " New SDK ${new_sdk}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ${new_sdk}
</span> }
set mp_extra_rpath ${prefix}/lib/libgcc
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc13/Portfile b/lang/gcc13/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 73cedaab470..83d77d07b6e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc13/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc13/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -81,9 +81,20 @@ if {${subport} eq ${name} && ${build_arch} ne "i386"} {
</span> }
proc get_clean_sysroot {} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- global configure.sdkroot
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # if the sdkroot is one of the current, rapidly changing SDKS, use the generic one
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return [regsub {MacOSX1[1-9]\.[0-9]+\.sdk} ${configure.sdkroot} {MacOSX.sdk}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global configure.sdkroot configure.sdk_version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set new_sdk ${configure.sdkroot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [regexp {MacOSX(.*).sdk} ${configure.sdkroot} -> sdk_v] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${sdk_v} != "" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If present strip minor version from SDK version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sdk_major [lindex [split $sdk_v .] 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "Detected versioned SDK ${sdk_v} ${sdk_major} ${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set new_sdk [regsub {MacOSX1[1-9]\.[0-9]+\.sdk} ${configure.sdkroot} MacOSX${sdk_major}.sdk]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${new_sdk} != ${configure.sdkroot} } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug " New SDK ${new_sdk}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ${new_sdk}
</span> }
set mp_extra_rpath ${prefix}/lib/libgcc
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc14/Portfile b/lang/gcc14/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1526c4e7a16..7fe28c3c3c5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc14/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc14/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -82,9 +82,20 @@ if {${subport} eq ${name} && ${build_arch} ne "i386"} {
</span> }
proc get_clean_sysroot {} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- global configure.sdkroot
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # if the sdkroot is one of the current, rapidly changing SDKS, use the generic one
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return [regsub {MacOSX1[1-9]\.[0-9]+\.sdk} ${configure.sdkroot} {MacOSX.sdk}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global configure.sdkroot configure.sdk_version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set new_sdk ${configure.sdkroot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [regexp {MacOSX(.*).sdk} ${configure.sdkroot} -> sdk_v] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${sdk_v} != "" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If present strip minor version from SDK version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sdk_major [lindex [split $sdk_v .] 0]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "Detected versioned SDK ${sdk_v} ${sdk_major} ${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set new_sdk [regsub {MacOSX1[1-9]\.[0-9]+\.sdk} ${configure.sdkroot} MacOSX${sdk_major}.sdk]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${new_sdk} != ${configure.sdkroot} } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug " New SDK ${new_sdk}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ${new_sdk}
</span> }
set mp_extra_rpath ${prefix}/lib/libgcc
</pre><pre style='margin:0'>
</pre>