<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/241aa0447fa4d2842b15c310beb5f0f2d91ef31c">https://github.com/macports/macports-ports/commit/241aa0447fa4d2842b15c310beb5f0f2d91ef31c</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 241aa0447fa gh: Fix legacy-support library usage
</span>241aa0447fa is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 241aa0447fa4d2842b15c310beb5f0f2d91ef31c
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Wed Oct 2 17:00:15 2024 -0700
<span style='display:block; white-space:pre;color:#404040;'> gh: Fix legacy-support library usage
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The executable patch to use legacy-support on <10.12 was using the
</span><span style='display:block; white-space:pre;color:#404040;'> wrong library file. This fixes that.
</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/70675
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Also, 10.12 requires legacy-support for for utimensat(), so the
</span><span style='display:block; white-space:pre;color:#404040;'> threshold for using legacy-support is adjusted, which happens to make
</span><span style='display:block; white-space:pre;color:#404040;'> it apply to all cases where the precompiled binary is used.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> There are, however, at least two other missing functions not currently
</span><span style='display:block; white-space:pre;color:#404040;'> provided by legacy-support, so this change doesn't actually make any
</span><span style='display:block; white-space:pre;color:#404040;'> new cases work. See the ticket for details.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> TESTED:
</span><span style='display:block; white-space:pre;color:#404040;'> No longer gets the failures addressed by these fixes.
</span><span style='display:block; white-space:pre;color:#404040;'> Still has other issues on many older platforms.
</span>---
devel/gh/Portfile | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/gh/Portfile b/devel/gh/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0cb62638f8f..78ef93afa56 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/gh/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/gh/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -91,10 +91,8 @@ destroot {
</span> # standard 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;'>- # Add legacysupport for 10.11 and older for clock_gettime support
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} <= 15} {
</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 gh"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Add legacysupport for all non-source versions for utimensat() support
</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/libMacportsLegacySystem.B.dylib gh"
</span> }
set docdir ${prefix}/share/doc/${name}
</pre><pre style='margin:0'>
</pre>