<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3177e07b047c6f03a5017fb9216616e9fc3de071">https://github.com/macports/macports-ports/commit/3177e07b047c6f03a5017fb9216616e9fc3de071</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 3177e07b047c6f03a5017fb9216616e9fc3de071
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Fri Mar 25 08:08:39 2022 +0800
<span style='display:block; white-space:pre;color:#404040;'> libtapi: fix build on PowerPC
</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/64187
</span>---
devel/libtapi/Portfile | 5 +++++
devel/libtapi/files/patch-lexer.diff | 11 +++++++++++
2 files changed, 16 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libtapi/Portfile b/devel/libtapi/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8574e64d022..b0889bf9f5d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libtapi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libtapi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -102,6 +102,11 @@ if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span> # add support for PPC architectures
patchfiles-append patch-0004-tapi-add-PPC-support.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin powerpc {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix a bug in Lexer.cpp, see https://systems.nic.uoregon.edu/internal-wiki/index.php?title=Tau_clang_plugin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-lexer.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # add a missing strnlen definition if needed
patchfiles-append patch-0006-strnlen.diff
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libtapi/files/patch-lexer.diff b/devel/libtapi/files/patch-lexer.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..56356ef911a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libtapi/files/patch-lexer.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/llvm/projects/clang/lib/Lex/Lexer.cpp.orig 2020-12-19 14:12:05.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/llvm/projects/clang/lib/Lex/Lexer.cpp 2022-03-21 21:05:18.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2573,7 +2573,7 @@
</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;'>+ while (CurPtr+16 <= BufferEnd &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- !vec_any_eq(*(const vector unsigned char*)CurPtr, Slashes))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ !vec_any_eq(*(const __vector unsigned char*)CurPtr, Slashes))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CurPtr += 16;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // Scan for '/' quickly. Many block comments are very large.
</span></pre><pre style='margin:0'>
</pre>