<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/eec501a1f4a92c7de6d67bd9a1b542d21e8628a3">https://github.com/macports/macports-ports/commit/eec501a1f4a92c7de6d67bd9a1b542d21e8628a3</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 eec501a1f4a s2n-tls: fix build on Catalina and earlier
</span>eec501a1f4a is described below

<span style='display:block; white-space:pre;color:#808000;'>commit eec501a1f4a92c7de6d67bd9a1b542d21e8628a3
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Tue Jul 30 16:35:02 2024 +0800

<span style='display:block; white-space:pre;color:#404040;'>    s2n-tls: fix build on Catalina and earlier
</span>---
 security/s2n-tls/Portfile                          |  3 +++
 ...0001-Fix-build-on-macOS-10.15-and-earlier.patch | 31 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/s2n-tls/Portfile b/security/s2n-tls/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index bcf8a5661e8..09efebaf6e5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/s2n-tls/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/s2n-tls/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,6 +36,9 @@ compiler.c_standard 1999
</span> # error: thread-local storage not supported for this target
 compiler.thread_local_storage yes
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/aws/s2n-tls/pull/4674
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append   0001-Fix-build-on-macOS-10.15-and-earlier.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> platform powerpc {
     # FATAL:/usr/bin/../libexec/gcc/darwin/ppc/as: I don't understand '-' flag!
     patchfiles-append \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/s2n-tls/files/0001-Fix-build-on-macOS-10.15-and-earlier.patch b/security/s2n-tls/files/0001-Fix-build-on-macOS-10.15-and-earlier.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..6093fe551fd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/s2n-tls/files/0001-Fix-build-on-macOS-10.15-and-earlier.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From b2f7e0da082611e2fcea970f02b82fca80976ad6 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <barracuda@macos-powerpc.org>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Tue, 30 Jul 2024 16:23:01 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Fix build on macOS 10.15 and earlier
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Closes: https://github.com/aws/s2n-tls/issues/4673
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tls/s2n_ktls_io.c | 10 ++++++++++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 10 insertions(+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git tls/s2n_ktls_io.c tls/s2n_ktls_io.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index ad1d984c6..5ef776cf5 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- tls/s2n_ktls_io.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ tls/s2n_ktls_io.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -45,6 +45,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define S2N_MAX_STACK_IOVECS     16
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define S2N_MAX_STACK_IOVECS_MEM (S2N_MAX_STACK_IOVECS * sizeof(struct iovec))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if MAC_OS_X_VERSION_MIN_REQUIRED < 110000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef __DARWIN_ALIGN32
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#undef __DARWIN_ALIGN32
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define __DARWIN_ALIGN32(p) ((__darwin_size_t)((__darwin_size_t)(p) + __DARWIN_ALIGNBYTES32) &~ __DARWIN_ALIGNBYTES32)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</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;'>+ /* Used to override sendmsg and recvmsg for testing. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static ssize_t s2n_ktls_default_sendmsg(void *io_context, const struct msghdr *msg);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static ssize_t s2n_ktls_default_recvmsg(void *io_context, struct msghdr *msg);
</span></pre><pre style='margin:0'>

</pre>