<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/74158d9285005c549410a164072c3661e5784237">https://github.com/macports/macports-ports/commit/74158d9285005c549410a164072c3661e5784237</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 74158d9285005c549410a164072c3661e5784237
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Fri Oct 22 10:41:39 2021 +0100

<span style='display:block; white-space:pre;color:#404040;'>    rust: Fix bugs introduced when migrating to openssl PG
</span>---
 lang/rust/Portfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

<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 74d2317839f..9cd9580771a 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;'>@@ -4,14 +4,13 @@ PortSystem          1.0
</span> 
 PortGroup           compiler_blacklist_versions 1.0
 PortGroup           legacysupport               1.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup           openssl                     1.0
</span> 
 legacysupport.use_static                    yes
 legacysupport.newest_darwin_requires_legacy 15
 
 name                rust
 version             1.56.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            2
</span> categories          lang devel
 platforms           darwin
 supported_archs     x86_64 arm64
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -194,6 +193,11 @@ proc envs_append { value } {
</span>     }
 }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${subport} eq ${name} } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    PortGroup       openssl         1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    envs_append     OPENSSL_DIR=[openssl::install_area]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # In order to enforce use of legacy support, both when building rust and subsequently
 # when using it, the underlying compiler commands need to be wrapped to make sure
 # they use the correct flags. Do this in a sub-port which then is added as a dep
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -325,7 +329,6 @@ post-configure {
</span> 
 build.args          VERBOSE=1 BOOTSTRAP_ARGS="-vv -j${build.jobs}"
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-envs_append         OPENSSL_DIR=${prefix}
</span> envs_append         RUST_BACKTRACE=1
 
 test.run            yes
</pre><pre style='margin:0'>

</pre>