<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c22ae68c2fcc1039046536fdb2448a26f635665d">https://github.com/macports/macports-ports/commit/c22ae68c2fcc1039046536fdb2448a26f635665d</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 c22ae68c2fc clang-3.4: fix build on G3 Tiger
</span>c22ae68c2fc is described below
<span style='display:block; white-space:pre;color:#808000;'>commit c22ae68c2fcc1039046536fdb2448a26f635665d
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Tue Jul 27 20:43:01 2021 -0700
<span style='display:block; white-space:pre;color:#404040;'> clang-3.4: fix build on G3 Tiger
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> if this machine is a G3, don't assume Altivec, and also force a local build
</span><span style='display:block; white-space:pre;color:#404040;'> so we don't download a buildbot-built version possibly built on a G4+
</span><span style='display:block; white-space:pre;color:#404040;'> or cross-compiled from an Intel system
</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/63304
</span>---
lang/llvm-3.4/Portfile | 12 ++++++++++++
.../files/1013-clang-lib-lex-dont-assume-altivec.diff | 12 ++++++++++++
2 files changed, 24 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.4/Portfile b/lang/llvm-3.4/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6ff027d304c..aea5b7ab1f9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-3.4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -270,6 +270,18 @@ platform darwin {
</span> patchfiles-append leopard-no-asan.patch leopard-no-blocks.patch
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # fix build on a G3 #63304 -- absence of Altivec is not automatically detected
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${subport} eq "clang-${llvm_version}" && ${os.major} < 9 && ${build_arch} eq "ppc"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[catch {sysctl hw.vectorunit} result] || $result == 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if this machine is a G3, force a local build so we don't download a buildbot-built
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # version possibly built on a G4+ or cross-compiled from an Intel system
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ archive_sites
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append 1013-clang-lib-lex-dont-assume-altivec.diff
</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;'>+
</span> # TODO: The llvm build system sets a 10.1 deployment target on Yosemite
if {[vercmp ${macosx_deployment_target} 10.10] >= 0} {
macosx_deployment_target 10.9
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-3.4/files/1013-clang-lib-lex-dont-assume-altivec.diff b/lang/llvm-3.4/files/1013-clang-lib-lex-dont-assume-altivec.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..88b8a079fb7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-3.4/files/1013-clang-lib-lex-dont-assume-altivec.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/tools/clang/lib/Lex/Makefile.orig 2021-07-27 20:00:49.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/tools/clang/lib/Lex/Makefile 2021-07-27 20:01:14.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -16,9 +16,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBRARYNAME := clangLex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ifeq ($(ARCH),PowerPC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CXX.Flags += -maltivec
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include $(CLANG_LEVEL)/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>