<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/f805af1400b9ea5d655dd7837ead6144f711ad0b">https://github.com/macports/macports-ports/commit/f805af1400b9ea5d655dd7837ead6144f711ad0b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit f805af1400b9ea5d655dd7837ead6144f711ad0b
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Thu Jun 1 23:19:15 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> apache-arrow: fix recognizing Macports abseil; disable mimalloc for <10.8
</span>---
devel/apache-arrow/Portfile | 8 ++++++++
devel/apache-arrow/files/patch-absl-ver.diff | 11 +++++++++++
2 files changed, 19 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/apache-arrow/Portfile b/devel/apache-arrow/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ce4debcb367..d2acfc23f4a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/apache-arrow/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/apache-arrow/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -84,6 +84,8 @@ depends_lib-append \
</span>
# https://github.com/apache/arrow/pull/35046
patchfiles-append patch-io_util.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/apache/arrow/issues/35833
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-absl-ver.diff
</span>
# Remove incorrect make dependency on SDK that cmake adds on some systems
# See https://github.com/grpc/grpc/issues/24902
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -153,6 +155,12 @@ configure.args-append \
</span> -Djemalloc_SOURCE:STRING=SYSTEM \
-DRE2_SOURCE:STRING=SYSTEM
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 12} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # arrow downloads mimalloc version which is broken for < 10.8 due to missing MACH_TASK_BASIC_INFO_COUNT etc.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DARROW_MIMALLOC:BOOL=ON -DARROW_MIMALLOC:BOOL=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Build auto-detects cache if it is installed and a part of it attempts
# to write to CCACHE_DIR which is not allow if configure.ccache=off.
# So have to set CCACHE_DIR to the build area to avoid this...
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/apache-arrow/files/patch-absl-ver.diff b/devel/apache-arrow/files/patch-absl-ver.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..68596e568b0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/apache-arrow/files/patch-absl-ver.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;'>+--- cpp/cmake_modules/ThirdpartyToolchain.cmake.orig 2023-04-21 16:37:41.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cpp/cmake_modules/ThirdpartyToolchain.cmake 2023-06-01 23:10:20.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2823,7 +2823,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # 20211102 or later. We need to update
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # ARROW_ABSL_REQUIRED_LTS_VERSIONS list when new Abseil LTS is
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # released.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- set(ARROW_ABSL_REQUIRED_LTS_VERSIONS 20211102 20220623)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ set(ARROW_ABSL_REQUIRED_LTS_VERSIONS 20230125 20220623 20211102)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach(_VERSION ${ARROW_ABSL_REQUIRED_LTS_VERSIONS})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ find_package(absl ${_VERSION})
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(absl_FOUND)
</span></pre><pre style='margin:0'>
</pre>