<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8d0c37228c84665a2d27bec269a882c49e50f25a">https://github.com/macports/macports-ports/commit/8d0c37228c84665a2d27bec269a882c49e50f25a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8d0c37228c84665a2d27bec269a882c49e50f25a
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sat Mar 19 15:48:15 2022 -0500

<span style='display:block; white-space:pre;color:#404040;'>    luajit: Fix PowerPC build
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Blacklist gcc-4.2 which the build system says is incompatible and add a
</span><span style='display:block; white-space:pre;color:#404040;'>    patch to fix build failure.
</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/64853
</span>---
 lang/luajit/Portfile            |  4 +++-
 lang/luajit/files/powerpc.patch | 13 +++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/luajit/Portfile b/lang/luajit/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 84731f38323..71168166d30 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/luajit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/luajit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,6 +24,8 @@ homepage            https://luajit.org
</span> 
 conflicts           luajit-openresty
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          powerpc.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> checksums           rmd160  aa1203ae3aa4786bd28773954289fea39386ef7e \
                     sha256  0de520cb458d1c51a53a309f435f01f1f3741c687c659d171ee026fb6075e477 \
                     size    1071291
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,7 +36,7 @@ post-patch {
</span> 
 use_configure       no
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.blacklist  {clang < 700} macports-clang-3.3 macports-clang-3.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.blacklist  {clang < 700} *gcc-4.2 macports-clang-3.3 macports-clang-3.4
</span> 
 # changes to compiler flags must be made before `CFLAGS=...`
 xcode_workaround.type append_to_compiler_flags
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/luajit/files/powerpc.patch b/lang/luajit/files/powerpc.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1780e48f4d8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/luajit/files/powerpc.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix macOS PowerPC build.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://www.freelists.org/post/luajit/LuaJIT-on-OS-X-Leopard-PowerPC,1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/host/buildvm.c.orig        2022-03-13 12:34:59.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/host/buildvm.c     2022-03-19 15:42:34.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -113,7 +113,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+       name[0] = name[1] == 'R' ? '_' : '@';  /* Just for _RtlUnwind@16. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+       *p = '\0';
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#elif LJ_TARGET_PPC && !LJ_TARGET_CONSOLE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif LJ_TARGET_PPC && !LJ_TARGET_CONSOLE && !LJ_TARGET_OSX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     /* Keep @plt etc. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     *p = '\0';
</span></pre><pre style='margin:0'>

</pre>