<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/8064a6215bc75fd5daaa974ba0d7f6225ba201bb">https://github.com/macports/macports-ports/commit/8064a6215bc75fd5daaa974ba0d7f6225ba201bb</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 8064a6215bc qt5-N: clean up xcrun SDK finding code
</span>8064a6215bc is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 8064a6215bc75fd5daaa974ba0d7f6225ba201bb
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Wed Nov 9 17:17:54 2022 -0800

<span style='display:block; white-space:pre;color:#404040;'>    qt5-N: clean up xcrun SDK finding code
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    make sure it runs only on darwin
</span><span style='display:block; white-space:pre;color:#404040;'>    add lots of debugging code to help find issues
</span>---
 aqua/qt5/Portfile | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt5/Portfile b/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 46b3c0902ee..9adbd6efdf0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1176,23 +1176,28 @@ foreach {module module_info} [array get modules] {
</span>                     ${worksrcpath}/mkspecs/common/gcc-base.conf
             }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            # starting with Xcode 7.0, the SDK for build OS version might not be available
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            # see https://trac.macports.org/ticket/53597
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            #
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            # avoid --show-sdk-path since it is not available on all platforms
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            # see https://github.com/macports/macports-ports/commit/9887e90d69f4265f9056cddc45e41551d7400235#commitcomment-49824261
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            if { ${os.platform} eq "darwin" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                # qt calls xcrun to find the SDK to use, so make sure this call will succeed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                # TODO: should we just always use the generic SDK on new systems?
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                ui_debug "qt5 Portfile: the initial SDK value is: macosx${configure.sdk_version}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                ui_debug "qt5 Portfile: testing for system-specific SDK:"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                # first try for a system-specific SDK
</span>                 if {[catch {exec -ignorestderr /usr/bin/xcrun --sdk macosx${configure.sdk_version} --find ld  > /dev/null 2>@1}]} {
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                    # if no specific sdk can be found, check for a generic macosx sdk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    ui_debug "qt5 Portfile: system-specific SDK was not found, looking for generic SDK."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    # if no specific sdk found, check for a generic macosx sdk
</span>                     if {[catch {exec -ignorestderr /usr/bin/xcrun --sdk macosx --find ld > /dev/null 2>@1}]} {
                         ui_error "${subport}: no usable SDK can be found"
                         return -code error "no usable SDK can be found"
                     } else {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                        ui_debug "${subport}: using generic macosx SDK as macosx${configure.sdk_version} does not exist"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        ui_debug "${subport}: using generic macosx SDK as macosx${configure.sdk_version} was not found"
</span>                         configure.sdk_version
                     }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+                } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    ui_debug "qt5 Portfile: system-specific SDK was found."
</span>                 }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+                ui_debug "qt5 Portfile: the final SDK value is: macosx${configure.sdk_version}"
</span>             }
 
             # respect configure.sdk_version
</pre><pre style='margin:0'>

</pre>