<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/b4bb6280163c3a64a9054fd22005a417179042a8">https://github.com/macports/macports-ports/commit/b4bb6280163c3a64a9054fd22005a417179042a8</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 b4bb6280163 rust-src: Fix source installation Since Rust standard library was moved out from https://github.com/rust-lang/rust/tree/master/src directory to https://github.com/rust-lang/rust/tree/master/library, it is required to update the Portfile to reflect these changes to keep Rust standard library sources being installed along with Rust compiler sources as it was before.
</span>b4bb6280163 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit b4bb6280163c3a64a9054fd22005a417179042a8
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Sun May 2 22:21:57 2021 +0100
<span style='display:block; white-space:pre;color:#404040;'> rust-src: Fix source installation
</span><span style='display:block; white-space:pre;color:#404040;'> Since Rust standard library was moved out from https://github.com/rust-lang/rust/tree/master/src
</span><span style='display:block; white-space:pre;color:#404040;'> directory to https://github.com/rust-lang/rust/tree/master/library, it is required to update the
</span><span style='display:block; white-space:pre;color:#404040;'> Portfile to reflect these changes to keep Rust standard library sources being installed along
</span><span style='display:block; white-space:pre;color:#404040;'> with Rust compiler sources as it was before.
</span>---
lang/rust/Portfile | 6 ++++++
1 file changed, 6 insertions(+)
<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 152f3c81f54..2d10d5033a1 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;'>@@ -339,6 +339,11 @@ subport rust-src {
</span> depends_build
depends_lib
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Remove after next rust version update
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${version} eq "1.51.0" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision [expr ${revision} + 1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set rust_source_dir ${destroot}${prefix}/lib/rustlib/src/rust
description Source code for the rust programming language
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -351,6 +356,7 @@ subport rust-src {
</span> destroot {
xinstall -d ${rust_source_dir}
move ${worksrcpath}/src ${rust_source_dir}/src
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${worksrcpath}/library ${rust_source_dir}/library
</span>
# correct the permissions
system -W ${rust_source_dir} "find . -type d -exec chmod 755 {} \\;"
</pre><pre style='margin:0'>
</pre>