<pre style='margin:0'>
Leonardo Brondani Schenkel (lbschenkel) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e308583359b346c3b61b2ec3bc40252bc540a070">https://github.com/macports/macports-ports/commit/e308583359b346c3b61b2ec3bc40252bc540a070</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 e308583359b kubectl: fix for older systems
</span>e308583359b is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e308583359b346c3b61b2ec3bc40252bc540a070
</span>Author: kencu <ken.cunningham.webuse@gmail.com>
AuthorDate: Wed Nov 11 17:05:52 2020 -0800
<span style='display:block; white-space:pre;color:#404040;'> kubectl: fix for older systems
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> uses legacysupport to provide functions
</span><span style='display:block; white-space:pre;color:#404040;'> missing on older system versions
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> closes: https://trac.macports.org/ticket/59599
</span>---
sysutils/kubectl/Portfile | 9 +++++++++
1 file changed, 9 insertions(+)
<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 05200f707a3..606edaee0b1 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;'>@@ -2,6 +2,7 @@
</span>
PortSystem 1.0
PortGroup select 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup legacysupport 1.1
</span>
name kubectl
categories sysutils
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -152,6 +153,14 @@ if {${subport} == ${name}} {
</span> xinstall ${distpath}/kubectl \
${destroot}${prefix}/bin/kubectl${baseVersion}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # kubectl works on 10.10 and newer without legacysupport. standard
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # legacysupport tweaks don't work, since the install here is from
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # a binary tarball ... have to tweak the binary to use the legacy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # support library, which in turn uses the System.B library.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} <= 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 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:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set completionsPath ${destroot}${prefix}/share/${subport}/completion
xinstall -d ${completionsPath}
exec ${destroot}${prefix}/bin/kubectl${baseVersion} completion bash \
</pre><pre style='margin:0'>
</pre>