<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/ed41f78cce586d48792ae539bfaab498d5f30c17">https://github.com/macports/macports-ports/commit/ed41f78cce586d48792ae539bfaab498d5f30c17</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ed41f78cce586d48792ae539bfaab498d5f30c17
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Sun Jun 20 16:15:08 2021 +0100
<span style='display:block; white-space:pre;color:#404040;'> kubectl: Use legacysupport PG proc to relink binaries
</span>---
sysutils/kubectl/Portfile | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/kubectl/Portfile b/sysutils/kubectl/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ebacce41031..0cedf47a486 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/kubectl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/kubectl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -168,13 +168,10 @@ if {${subport} == ${name}} {
</span> xinstall ${distpath}/kubectl \
${destroot}${prefix}/bin/kubectl${baseVersion}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # kubectl works on 10.10 and newer without legacysupport. standard
</span> # legacysupport tweaks don't work, since the install here is from
# a binary tarball ... have to tweak the binary to use the legacy
# support library, which in turn uses the System.B library.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} <= 13} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${destroot}${prefix}/bin "install_name_tool -change /usr/lib/libSystem.B.dylib ${prefix}/lib/libMacportsLegacySupport.dylib kubectl${baseVersion}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ legacysupport::relink_libSystem ${destroot}${prefix}/bin/kubectl${baseVersion}
</span>
set completionsPath ${destroot}${prefix}/share/${subport}/completion
xinstall -d ${completionsPath}
</pre><pre style='margin:0'>
</pre>