<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/59d1b5e5cf2ef3c75543770951e8ae15c2e97f4b">https://github.com/macports/macports-ports/commit/59d1b5e5cf2ef3c75543770951e8ae15c2e97f4b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 59d1b5e5cf2ef3c75543770951e8ae15c2e97f4b
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Mon Jun 17 06:29:06 2024 +0800

<span style='display:block; white-space:pre;color:#404040;'>    librdkafka: fix the build
</span>---
 net/librdkafka/Portfile                           |  8 +++++++-
 net/librdkafka/files/patch-unbreak-configure.diff | 10 ++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/librdkafka/Portfile b/net/librdkafka/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4ee2fab838d..2b1801b9b54 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/librdkafka/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/librdkafka/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -17,6 +17,9 @@ checksums           sha256  2d49c35c77eeb3d42fa61c43757fcbb6a206daa560247154e606
</span>                     rmd160  9f7373468dc7866f985fbbc08c377884cf4f1f01 \
                     size    4380862
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/confluentinc/librdkafka/issues/4759
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append   patch-unbreak-configure.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append   --disable-zstd \
                         --disable-lz4-ext \
                         --disable-ssl \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,7 +28,10 @@ configure.args-append   --disable-zstd \
</span>                         --disable-curl
 depends_build-append    port:pkgconfig
 depends_lib-append      port:zlib
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                    
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# rdkafka_queue.h: error: thread-local storage not supported for this target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.thread_local_storage yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {[string match *clang* ${configure.cxx}] && ${configure.cxx_stdlib} ne "" && ${os.major} < 22} {
     configure.ldflags-append -stdlib=${configure.cxx_stdlib}
 }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/librdkafka/files/patch-unbreak-configure.diff b/net/librdkafka/files/patch-unbreak-configure.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2b2022b52cf
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/librdkafka/files/patch-unbreak-configure.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- mklove/modules/configure.atomics       2023-10-25 02:49:10.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ mklove/modules/configure.atomics       2024-06-17 06:20:03.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -137,7 +137,6 @@
</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;'>+     if [[ ! -z $_libs ]]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        mkl_mkvar_append LDFLAGS LDFLAGS "-Wl,--as-needed"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         mkl_mkvar_append LIBS LIBS "$_libs"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span></pre><pre style='margin:0'>

</pre>