<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/eb7b394ed84e1aa14e0770989995727cb2108587">https://github.com/macports/macports-ports/commit/eb7b394ed84e1aa14e0770989995727cb2108587</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 eb7b394ed84 mrustc: update to 20221110
</span>eb7b394ed84 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit eb7b394ed84e1aa14e0770989995727cb2108587
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Thu Nov 10 10:28:43 2022 +0100

<span style='display:block; white-space:pre;color:#404040;'>    mrustc: update to 20221110
</span>---
 lang/mrustc/Portfile | 67 ++++++++++++++++++++++++++++++++--------------------
 1 file changed, 41 insertions(+), 26 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/mrustc/Portfile b/lang/mrustc/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index dde4770e24c..9dd3cf26539 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/mrustc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/mrustc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,14 +5,14 @@ PortGroup           github 1.0
</span> PortGroup           legacysupport 1.1
 PortGroup           compiler_blacklist_versions 1.0
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup        thepowersgang mrustc a04f166ea5762037895738d88d144803e2e433f5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup        thepowersgang mrustc 1b1416bb2b44e2c331c7201833305cac29d571e8
</span> 
 set rust_version    1.54.0
 set rust_version_major [join [lrange [split ${rust_version} .-] 0 1] .]
 set rust_version_major_underscore [join [lrange [split ${rust_version} .-] 0 1] _]
 
 # subport mrustc-rust has its own versioning
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version             ${rust_version_major}-20220904
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version             ${rust_version_major}-20221110
</span> revision            0
 epoch               1
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,19 +30,27 @@ master_sites-append https://static.rust-lang.org/dist/:rust
</span> distfiles-append    rustc-${rust_version}-src.tar.gz:rust
 
 checksums           mrustc-${github.version}.tar.gz \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                    rmd160  d608075c56b6aa8175b25016ff0e64190f5e94cd \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    sha256  4d25c6e55d8b1c05a87a408a9edbdd5ec8416f40be660619442e12e0d23356af \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    size    1189691 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    rmd160  f6d266872d57de4dbb8a99e672f82e40c5fad682 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  348d67de705ab1e0049602fac866f2d775ab699195f1b00406e00dcc8b4041f5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    1191744 \
</span>                     rustc-${rust_version}-src.tar.gz \
                     rmd160  be2de16e2deaf91aee723e631a36f6de52636ddd \
                     sha256  ac8511633e9b5a65ad030a1a2e5bdaa841fdfe3132f2baaa52cc04e71c6c6976 \
                     size    170480637
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# arm64 and i386 requires future patches
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-supported_archs     x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# i386 and ppc may requires future patches
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs     arm64 x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+array set rust_platforms [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    arm64   aarch64 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    x86_64  x86_64]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set rust_platform   $rust_platforms(${configure.build_arch})
</span> 
 use_configure       no
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+universal_variant   no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> compiler.cxx_standard 2014
 compiler.c_standard 2011
 compiler.thread_local_storage yes
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -134,8 +142,8 @@ if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span> 
 legacysupport.use_static    yes
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set cxxflags        "${configure.cxxflags} ${configure.universal_cxxflags}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set ldflags         "${configure.ldflags} ${configure.universal_ldflags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set cxxflags        "${configure.cxxflags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set ldflags         "${configure.ldflags}"
</span> 
 if { ${os.platform} eq "darwin" && ${os.major} <= [option legacysupport.newest_darwin_requires_legacy] } {
     set cxxflags    "${cxxflags} [legacysupport::get_cpp_flags]"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -161,6 +169,13 @@ build.env-append    CC=${configure.cc} \
</span>                     RUSTC_VERSION=${rust_version} \
                     MRUSTC_TARGET_VER=${rust_version_major}
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# mrustc had hardcoded x86_64 as target platform
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env-append    RUSTC_TARGET=${rust_platform}-apple-${os.platform}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|STD_ENV_ARCH=x86_64|STD_ENV_ARCH=${rust_platform}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${worksrcpath}/script-overrides/stable-${rust_version}-macos/build_std.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Step 1: building mrustc, its libs and minicargo
 if {${subport} eq ${name}} {
     depends_lib-append \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -294,34 +309,34 @@ subport mrustc-rust {
</span>             ${destroot}${prefix}/libexec/${subport}/lib
 
         system -W ${destroot}${prefix}/libexec/${subport}/bin \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-rustc/${build_arch}-apple-darwin/release/deps/librustc_driver.dylib ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/librustc_driver.dylib ./rustc_binary"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-rustc/${rust_platform}-apple-${os.platform}/release/deps/librustc_driver.dylib ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/librustc_driver.dylib ./rustc_binary"
</span> 
         system -W ${destroot}${prefix}/libexec/${subport}/bin \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std2/${build_arch}-apple-darwin/release/deps/libtest.dylib ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/libtest.dylib ./rustc_binary"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std2/${rust_platform}-apple-${os.platform}/release/deps/libtest.dylib ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/libtest.dylib ./rustc_binary"
</span> 
         system -W ${destroot}${prefix}/libexec/${subport}/bin \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std2/${build_arch}-apple-darwin/release/deps/libstd.dylib ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/libstd.dylib ./rustc_binary"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std2/${rust_platform}-apple-${os.platform}/release/deps/libstd.dylib ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/libstd.dylib ./rustc_binary"
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        system -W ${destroot}${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            "install_name_tool -id ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/librustc_driver.dylib ./librustc_driver.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        system -W ${destroot}${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            "install_name_tool -id ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/librustc_driver.dylib ./librustc_driver.dylib"
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        system -W ${destroot}${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            "install_name_tool -id ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/libstd.dylib ./libstd.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        system -W ${destroot}${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            "install_name_tool -id ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/libstd.dylib ./libstd.dylib"
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        system -W ${destroot}${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            "install_name_tool -id ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/libtest.dylib ./libtest.dylib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        system -W ${destroot}${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            "install_name_tool -id ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/libtest.dylib ./libtest.dylib"
</span> 
         foreach f [ exec find ${destroot}${prefix}/libexec/${subport}/lib -name "*.dylib" ] {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-rustc/${build_arch}-apple-darwin/release/deps/librustc_driver.dylib ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/librustc_driver.dylib $f"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-rustc/${build_arch}-apple-darwin/release/deps/librustc_codegen_llvm.dylib ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/librustc_codegen_llvm.dylib $f"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-rustc/${build_arch}-apple-darwin/release/deps/libtest.dylib ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/libtest.dylib $f"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-rustc/${build_arch}-apple-darwin/release/deps/libstd.dylib ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/libstd.dylib $f"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-rustc/${rust_platform}-apple-${os.platform}/release/deps/librustc_driver.dylib ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/librustc_driver.dylib $f"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-rustc/${rust_platform}-apple-${os.platform}/release/deps/librustc_codegen_llvm.dylib ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/librustc_codegen_llvm.dylib $f"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-rustc/${rust_platform}-apple-${os.platform}/release/deps/libtest.dylib ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/libtest.dylib $f"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-rustc/${rust_platform}-apple-${os.platform}/release/deps/libstd.dylib ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/libstd.dylib $f"
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std/${build_arch}-apple-darwin/release/deps/libtest.dylib ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/libtest.dylib $f"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std/${build_arch}-apple-darwin/release/deps/libstd.dylib ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/libstd.dylib $f"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std/${rust_platform}-apple-${os.platform}/release/deps/libtest.dylib ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/libtest.dylib $f"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std/${rust_platform}-apple-${os.platform}/release/deps/libstd.dylib ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/libstd.dylib $f"
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std2/${build_arch}-apple-darwin/release/deps/libtest.dylib ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/libtest.dylib $f"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std2/${build_arch}-apple-darwin/release/deps/libstd.dylib ${prefix}/libexec/${subport}/lib/rustlib/${build_arch}-apple-darwin/lib/libstd.dylib $f"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std2/${rust_platform}-apple-${os.platform}/release/deps/libtest.dylib ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/libtest.dylib $f"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "install_name_tool -change ${worksrcpath}/run_rustc/output-${rust_version}/build-std2/${rust_platform}-apple-${os.platform}/release/deps/libstd.dylib ${prefix}/libexec/${subport}/lib/rustlib/${rust_platform}-apple-${os.platform}/lib/libstd.dylib $f"
</span>         }
     }
 
</pre><pre style='margin:0'>

</pre>