<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/061bddd61cbb946fdb79e6cd5981f8da0b43060d">https://github.com/macports/macports-ports/commit/061bddd61cbb946fdb79e6cd5981f8da0b43060d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 061bddd61cbb946fdb79e6cd5981f8da0b43060d
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sat May 21 09:17:18 2022 -0700
<span style='display:block; white-space:pre;color:#404040;'> muniversal PG: map DESTDIR to the correct value
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Some PortGroups (e.g. meson) set the environment variable DESTDIR, so
</span><span style='display:block; white-space:pre;color:#404040;'> its value must be mapped to the correct universal directory
</span>---
_resources/port1.0/group/muniversal-1.1.tcl | 5 +++++
1 file changed, 5 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/muniversal-1.1.tcl b/_resources/port1.0/group/muniversal-1.1.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 527ef59bcb9..56e50187d11 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/muniversal-1.1.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/muniversal-1.1.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -659,6 +659,11 @@ proc parse_environment {command} {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [option universal_possible] && [variant_isset universal] && ${command} eq "destroot" && [info exists ${command}.env_array(DESTDIR)] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # some PortGroups (e.g. meson) set the environment variable DESTDIR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # map to correct universal directory
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set ${command}.env_array(DESTDIR) [muniversal::get_arch_dir [set ${command}.env_array(DESTDIR)] ${arch}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> # allow /usr/bin/arch to work without `-arch` flag
set ${command}.env_array(ARCHPREFERENCE) ${arch}
</pre><pre style='margin:0'>
</pre>