<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/52d765130d2408c89acac93899a914af855a98e2">https://github.com/macports/macports-ports/commit/52d765130d2408c89acac93899a914af855a98e2</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 52d765130d2408c89acac93899a914af855a98e2
</span>Author: Mark Mentovai <mark@mentovai.com>
AuthorDate: Wed Sep 25 10:42:27 2024 -0400
<span style='display:block; white-space:pre;color:#404040;'> lldb-16: fix build with macOS ≥ 14 SDK (Xcode ≥ 15)
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This is a cherry-pick of
</span><span style='display:block; white-space:pre;color:#404040;'> https://github.com/llvm/llvm-project/commit/73e15b5edb4fa4a77e68c299a6e3b21e610d351f.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This enables lldb-16 to be built by Xcode ≥ 15, making it possible to
</span><span style='display:block; white-space:pre;color:#404040;'> build on macOS ≥ 14, and macOS 13 with Xcode 15.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> References: https://trac.macports.org/ticket/70779
</span>---
lang/llvm-16/Portfile | 1 +
...tdio-include-to-fix-a595b931f1f91897317a4.patch | 26 ++++++++++++++++++++++
2 files changed, 27 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-16/Portfile b/lang/llvm-16/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e21546326e0..97d1612fc98 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-16/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-16/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -143,6 +143,7 @@ patchfiles-append \
</span> 0019-10.6-and-less-use-emulated-TLS-before-10.7.patch \
0025-lldb-add-defines-needed-for-older-SDKs.patch \
0026-llvm-set-memrchr-unavailable.patch \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0032-lldb-Add-cstdio-include-to-fix-a595b931f1f91897317a4.patch \
</span> 0999-i386-fix.diff
if {${os.platform} eq "darwin" && ${os.major} < 14} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-16/files/0032-lldb-Add-cstdio-include-to-fix-a595b931f1f91897317a4.patch b/lang/llvm-16/files/0032-lldb-Add-cstdio-include-to-fix-a595b931f1f91897317a4.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8eb5beb80f3
</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-16/files/0032-lldb-Add-cstdio-include-to-fix-a595b931f1f91897317a4.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 73e15b5edb4fa4a77e68c299a6e3b21e610d351f Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Dmitry Chernenkov <dmitryc@google.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Tue, 2 May 2023 12:45:28 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] [lldb] Add cstdio include to fix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ a595b931f1f91897317a4257df313bddfeb029a6
</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;'>+ lldb/include/lldb/API/SBFile.h | 2 ++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 2 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/lldb/include/lldb/API/SBFile.h b/lldb/include/lldb/API/SBFile.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index d8b348b25c81..ebdc5607b794 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/lldb/include/lldb/API/SBFile.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/lldb/include/lldb/API/SBFile.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -11,6 +11,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "lldb/API/SBDefines.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <cstdio>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ namespace lldb {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class LLDB_API SBFile {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.46.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>