<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b344f12ea99a9943ad3d58d7015958f7e221f721">https://github.com/macports/macports-ports/commit/b344f12ea99a9943ad3d58d7015958f7e221f721</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 b344f12ea99 rust{,-bootstrap}: avoid error in rust::get_sdkroot
</span>b344f12ea99 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit b344f12ea99a9943ad3d58d7015958f7e221f721
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Jul 15 18:03:36 2024 +1000
<span style='display:block; white-space:pre;color:#404040;'> rust{,-bootstrap}: avoid error in rust::get_sdkroot
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> It throws an error when given an empty sdk_version, which can happen
</span><span style='display:block; white-space:pre;color:#404040;'> when generating the PortIndex on non-darwin platforms.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://github.com/macports/macports-webapp/issues/374
</span>---
lang/rust-bootstrap/Portfile | 2 +-
lang/rust/Portfile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/rust-bootstrap/Portfile b/lang/rust-bootstrap/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6d6beaa38b1..07863c8bbb5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/rust-bootstrap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/rust-bootstrap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -93,7 +93,7 @@ depends_skip_archcheck cmake \
</span> ninja \
ccache
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ${os.platform} eq "darwin" && ${configure.sdkroot} eq "" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${configure.sdkroot} eq "" && ${configure.sdk_version} ne ""} {
</span> # cc crate works best when SDKROOT is set but not to /
# for versions 1.0.59...1.0.83, if SDKROOT is set but does not contain MacOSX, `xcrun --show-sdk-path` overrides SDKROOT
# for versions 1.0.84+, if SDKROOT is *not* set, `xcrun --show-sdk-path` sets SDKROOT
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/rust/Portfile b/lang/rust/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0df2c4d62a0..c4be8ceee91 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/rust/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/rust/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -77,7 +77,7 @@ depends_skip_archcheck cmake \
</span> ninja \
ccache
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ${os.platform} eq "darwin" && ${configure.sdkroot} eq "" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${configure.sdkroot} eq "" && ${configure.sdk_version} ne ""} {
</span> # cc crate works best when SDKROOT is set but not to /
# for versions 1.0.59...1.0.83, if SDKROOT is set but does not contain MacOSX, `xcrun --show-sdk-path` overrides SDKROOT
# for versions 1.0.84+, if SDKROOT is *not* set, `xcrun --show-sdk-path` sets SDKROOT
</pre><pre style='margin:0'>
</pre>