<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/fbdae6e6c2cc9c2a8b8a625e322aeee6bd00e610">https://github.com/macports/macports-ports/commit/fbdae6e6c2cc9c2a8b8a625e322aeee6bd00e610</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 fbdae6e6c2c qmake5 PortGroup: improve sdk detection
</span>fbdae6e6c2c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fbdae6e6c2cc9c2a8b8a625e322aeee6bd00e610
</span>Author: Ken <21211439+kencu@users.noreply.github.com>
AuthorDate: Fri May 20 22:29:31 2022 -0700
<span style='display:block; white-space:pre;color:#404040;'> qmake5 PortGroup: improve sdk detection
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - hide output from sdk-finding command
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> the xcrun command is supposed to fail if the specific
</span><span style='display:block; white-space:pre;color:#404040;'> sdk macosx${configure.sdk_version} is not found. However,
</span><span style='display:block; white-space:pre;color:#404040;'> this error shows up on user's screens causing considerable
</span><span style='display:block; white-space:pre;color:#404040;'> confusion about what the true build error is.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - ensure sdk macosx is found if we are going to use it
</span>---
_resources/port1.0/group/qmake5-1.0.tcl | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/qmake5-1.0.tcl b/_resources/port1.0/group/qmake5-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index ffba7e68541..7125b8b4095 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/qmake5-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/qmake5-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -57,8 +57,16 @@ pre-configure {
</span> #
# avoid --show-sdk-path since it is not available on all platforms
# see https://github.com/macports/macports-ports/commit/9887e90d69f4265f9056cddc45e41551d7400235#commitcomment-49824261
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[catch {exec -ignorestderr /usr/bin/xcrun --sdk macosx${configure.sdk_version} --find ld} result]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.sdk_version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[catch {exec -ignorestderr /usr/bin/xcrun --sdk macosx${configure.sdk_version} --find ld > /dev/null 2>@1}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if no specific sdk can be found, check for a generic macosx sdk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[catch {exec -ignorestderr /usr/bin/xcrun --sdk macosx --find ld > /dev/null 2>@1}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "qmake5 PortGroup: no usable SDK can be found"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "no usable SDK can be found"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "qmake5 PortGroup: using generic macosx SDK as macosx${configure.sdk_version} does not exist"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.sdk_version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
# set QT and QMAKE values in a cache file
</pre><pre style='margin:0'>
</pre>