<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/e74cde6f24df9a5e7fab8b2c441dbb7f43a477ec">https://github.com/macports/macports-ports/commit/e74cde6f24df9a5e7fab8b2c441dbb7f43a477ec</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit e74cde6f24df9a5e7fab8b2c441dbb7f43a477ec
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Sun Jun 20 16:14:07 2021 +0100
<span style='display:block; white-space:pre;color:#404040;'> legacysupport PG: Add proc to relink against legacysupport libSystem.B
</span>---
_resources/port1.0/group/legacysupport-1.1.tcl | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/legacysupport-1.1.tcl b/_resources/port1.0/group/legacysupport-1.1.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 3e2eaa05b47..1ba89334607 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/legacysupport-1.1.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/legacysupport-1.1.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -104,7 +104,7 @@ proc legacysupport::get_dependency {} {
</span> }
proc legacysupport::add_once { opt where value } {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "Will $where $value to $opt"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "legacysupport: Will $where $value to $opt"
</span> ${opt}-delete ${value}
${opt}-${where} ${value}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -130,6 +130,16 @@ proc legacysupport::set_label_environment_vars { } {
</span> legacysupport::set_phase_env_var ${env_name}=1
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+proc legacysupport::relink_libSystem { exe } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global os.major prefix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${os.major} <= [option legacysupport.newest_darwin_requires_legacy] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sLib /usr/lib/libSystem.B.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set lLib ${prefix}/lib/libMacportsLegacySystem.B.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "legacysupport: Relinking ${exe} against ${lLib}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "install_name_tool -change ${sLib} ${lLib} ${exe}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set ls_cache_incpath [list]
set ls_cache_ldflags [list]
set ls_cache_cppflags [list]
</pre><pre style='margin:0'>
</pre>