<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5994792d350762e10a3762c11bb782acb4e60fcb">https://github.com/macports/macports-ports/commit/5994792d350762e10a3762c11bb782acb4e60fcb</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5994792d350762e10a3762c11bb782acb4e60fcb
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Thu Oct 19 05:36:59 2017 -0700

<span style='display:block; white-space:pre;color:#404040;'>    llvm-5.0: disable libFuzzer on older systems
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    No revbump because the port either builds successfully or not at all.
</span><span style='display:block; white-space:pre;color:#404040;'>    Fixes https://trac.macports.org/ticket/54996
</span>---
 lang/llvm-5.0/Portfile                                        |  9 ++++++++-
 ...Dont-build-LibFuzzer-pre-Lion-due-to-missing-__threa.patch | 11 +++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-5.0/Portfile b/lang/llvm-5.0/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b91f7a8..004b617 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-5.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-5.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -145,7 +145,8 @@ patchfiles \
</span>     0001-Set-the-Mach-O-CPU-Subtype-to-ppc7400-when-targeting.patch \
     0002-Define-EXC_MASK_CRASH-and-MACH_EXCEPTION_CODES-if-th.patch \
     0003-MacPorts-Only-Don-t-embed-the-deployment-target-in-t.patch \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    0004-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    0004-Fix-build-issues-pre-Lion-due-to-missing-a-strnlen-d.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    0005-Dont-build-LibFuzzer-pre-Lion-due-to-missing-__threa.patch
</span> 
 if {${subport} eq "clang-${llvm_version}"} {
     patchfiles-append \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -234,6 +235,12 @@ configure.args-append \
</span>     -DFFI_INCLUDE_DIR=`pkg-config --cflags-only-I libffi | sed 's/-I//'` \
     -DFFI_LIBRARY_DIR=${prefix}/lib
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # See https://trac.macports.org/ticket/54996
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        -DLLVM_USE_SANITIZE_COVERAGE=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {${subport} eq "llvm-${llvm_version}"} {
     select.group        llvm
     select.file         ${filespath}/mp-${subport}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-5.0/files/0005-Dont-build-LibFuzzer-pre-Lion-due-to-missing-__threa.patch b/lang/llvm-5.0/files/0005-Dont-build-LibFuzzer-pre-Lion-due-to-missing-__threa.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..366a33b
</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-5.0/files/0005-Dont-build-LibFuzzer-pre-Lion-due-to-missing-__threa.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/lib/Fuzzer/CMakeLists.txt    2017-07-13 17:06:27.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/lib/Fuzzer/CMakeLists.txt    2017-10-17 04:18:38.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -28,7 +28,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Compile libFuzzer if the compilation is specifically requested, OR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if the platform is known to be working.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if ( LLVM_USE_SANITIZE_COVERAGE OR CMAKE_SYSTEM_NAME MATCHES "Darwin|Linux" )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if ( LLVM_USE_SANITIZE_COVERAGE OR CMAKE_SYSTEM_NAME STREQUAL "Linux" OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT ${CMAKE_SYSTEM_VERSION} VERSION_LESS 11) )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   add_library(LLVMFuzzerNoMainObjects OBJECT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+       FuzzerCrossOver.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+       FuzzerDriver.cpp
</span></pre><pre style='margin:0'>

</pre>