<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/6bb42f25bf183114ebda0f11909e226f22fdf641">https://github.com/macports/macports-ports/commit/6bb42f25bf183114ebda0f11909e226f22fdf641</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 6bb42f25bf183114ebda0f11909e226f22fdf641
</span>Author: Florian Märkl <info@florianmaerkl.de>
AuthorDate: Tue Aug 15 16:24:35 2023 +0200

<span style='display:block; white-space:pre;color:#404040;'>    xxhash*: Fix 10.7 Lion clang segfault
</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/67963
</span>---
 devel/xxhash/Portfile                           |  6 ++++++
 devel/xxhash/files/lion-clang-segfault-fix.diff | 11 +++++++++++
 2 files changed, 17 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/xxhash/Portfile b/devel/xxhash/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 180d10246e9..45a03734120 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/xxhash/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/xxhash/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,6 +22,12 @@ if {[string match "*gcc-4.*" ${configure.compiler}]} {
</span>                     patch-Makefile-gcc.diff
 }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} == 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # see https://trac.macports.org/ticket/67963
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # clang: error: unable to execute command: Segmentation fault: 11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles-append lion-clang-segfault-fix.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> subport ${name} {
     revision        2
 
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/xxhash/files/lion-clang-segfault-fix.diff b/devel/xxhash/files/lion-clang-segfault-fix.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..6212ea9add7
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/xxhash/files/lion-clang-segfault-fix.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;'>+--- xxhash.h.orig  2023-08-15 15:58:56.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ xxhash.h       2023-08-15 16:06:18.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3416,7 +3416,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef XXH_HAS_INCLUDE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #  ifdef __has_include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#    define XXH_HAS_INCLUDE(x) __has_include(x)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#    define XXH_HAS_INCLUDE __has_include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #  else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #    define XXH_HAS_INCLUDE(x) 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #  endif
</span></pre><pre style='margin:0'>

</pre>