Skip to content

Commit

Permalink
apache-arrow: Update to version 13.0.0
Browse files Browse the repository at this point in the history
* Update to version 13.0.0
* Add Python 311
* Delete Python 37
* Remove jemalloc dependency
  * See: jemalloc/jemalloc#2511
* Fixes: https://trac.macports.org/ticket/67900
* Fixes: https://trac.macports.org/ticket/67896
  • Loading branch information
essandess committed Aug 8, 2023
1 parent 2b3590a commit 035507f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 54 deletions.
39 changes: 21 additions & 18 deletions devel/apache-arrow/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ PortGroup active_variants 1.1

boost.version 1.81

github.setup apache arrow 12.0.0 apache-arrow-
revision 3
github.setup apache arrow 13.0.0 apache-arrow-
revision 0
name ${github.author}-${github.project}

categories devel
Expand All @@ -22,9 +22,9 @@ long_description Apache Arrow is a development platform for in-memory \
analytics. It contains a set of technologies that \
enable big data systems to process and move data fast.

checksums rmd160 060f7b3ea56d418b089aee4632c363fb03381abb \
sha256 34bc4f650a3807c832ebd299cb73c60fae34ec81efba23df2435548a166d5ca8 \
size 19843276
checksums rmd160 cf775adc9440e6200bdee8ce37d78fe6b5b186fe \
sha256 286ad68b17702caaa46b9f8de5797d9511a01748728221ed9921171166928d5b \
size 20213466

compiler.cxx_standard \
2017
Expand All @@ -43,7 +43,7 @@ set cmake_build_type \
# At least remove a dependency on LLVM for PPC, where it is broken.
# If Gandiva is added to the build, please add it inside the clause below.
if {${build_arch} ni [list ppc ppc64]} {
set llvm_version 14
set llvm_version 16
set llvm_prefix ${prefix}/libexec/llvm-${llvm_version}
set llvm_bin ${llvm_prefix}/bin

Expand All @@ -70,7 +70,6 @@ depends_lib-append \
port:gmake \
port:grpc \
path:lib/libglog.dylib:google-glog \
port:jemalloc \
port:libutf8proc \
port:lz4 \
port:ninja \
Expand All @@ -83,11 +82,6 @@ depends_lib-append \
port:zlib \
port:zstd

# https://github.com/apache/arrow/pull/35046
patchfiles-append patch-io_util.diff
# https://github.com/apache/arrow/issues/35833
patchfiles-append patch-absl-ver.diff

# Remove incorrect make dependency on SDK that cmake adds on some systems
# See https://github.com/grpc/grpc/issues/24902
post-configure {
Expand Down Expand Up @@ -115,7 +109,9 @@ post-configure {
# macOS wheel:
# https://github.com/apache/arrow/blob/main/ci/scripts/python_wheel_macos_build.sh
# Re rpath see: https://arrow.apache.org/docs/r/articles/developers/setup.html#rpath-issues
# Also: https://github.com/apache/arrow/issues/35045
# Also: https://github.com/apache/arrow/issues/35045,
# https://github.com/apache/arrow/issues/37010

configure.args-append \
-DARROW_ACERO:BOOL=OFF \
-DARROW_BUILD_SHARED:BOOL=ON \
Expand All @@ -130,7 +126,7 @@ configure.args-append \
-DARROW_GCS:BOOL=ON \
-DARROW_HDFS:BOOL=ON \
-DARROW_INSTALL_NAME_RPATH:BOOL=OFF \
-DARROW_JEMALLOC:BOOL=ON \
-DARROW_JEMALLOC:BOOL=OFF \
-DARROW_JSON:BOOL=ON \
-DARROW_MIMALLOC:BOOL=ON \
-DARROW_ORC:BOOL=ON \
Expand All @@ -139,9 +135,9 @@ configure.args-append \
-DARROW_PLASMA:BOOL=ON \
-DARROW_PROTOBUF_USE_SHARED:BOOL=ON \
-DARROW_PYTHON:BOOL=OFF \
-DARROW_RPATH_ORIGIN:BOOL=OFF \
-DARROW_RPATH_ORIGIN:BOOL=ON \
-DARROW_S3:BOOL=OFF \
-DARROW_SUBSTRAIT:BOOL=OFF \
-DARROW_SUBSTRAIT:BOOL=ON \
-DARROW_USE_CCACHE:BOOL=ON \
-DARROW_TENSORFLOW:BOOL=OFF \
-DARROW_UTF8PROC_USE_SHARED:BOOL=ON \
Expand All @@ -153,9 +149,13 @@ configure.args-append \
-DARROW_WITH_ZSTD:BOOL=ON \
-Dc-ares_INCLUDE_DIR:PATH=${prefix}/include \
-DgRPC_ROOT:PATH=${prefix} \
-Djemalloc_SOURCE:STRING=SYSTEM \
-DRE2_SOURCE:STRING=SYSTEM

if {${os.arch} eq "arm" && ${os.platform} eq "darwin"} {
configure.args-append \
-DCMAKE_APPLE_SILICON_PROCESSOR=arm64
}

if {${os.platform} eq "darwin" && ${os.major} < 12} {
# arrow downloads mimalloc version which is broken for < 10.8 due to missing MACH_TASK_BASIC_INFO_COUNT etc.
configure.args-replace \
Expand Down Expand Up @@ -201,7 +201,7 @@ proc change_arrow_rpath { binname libname_re } {
}

# create Python subports
set python_versions [list 39 310]
set python_versions [list 39 310 311]
foreach v ${python_versions} {
subport py${v}-py${github.project} {
set python.version ${v}
Expand Down Expand Up @@ -288,6 +288,8 @@ if {[string match "py*" ${subport}]} {
configure.pre_args-replace \
{-DCMAKE_CXX_COMPILER="$CXX"} \
-DCMAKE_CXX_COMPILER:FILEPATH=${configure.cxx}
configure.pre_args-append \
{-DARROW_SIMD_LEVEL="SSE4_2"}
if {${cmake.generator} ne {Ninja}} {
configure.pre_args-replace \
"-DCMAKE_MAKE_PROGRAM=${python.bin} setup.py --no-user-cfg" \
Expand All @@ -307,6 +309,7 @@ if {[string match "py*" ${subport}]} {
-Dre2_DIR:PATH=${prefix}/lib/cmake/grpc/modules

build.env-append \
"_PYTHON_HOST_PLATFORM=macosx-${macosx_deployment_target}-${build_arch}" \
"PKG_CONFIG_PATH=/usr/lib/pkgconfig:${build.dir}/install/lib/pkgconfig" \
PYARROW_BOOST_USE_SHARED=1 \
PYARROW_BUILD_TYPE=${cmake_build_type} \
Expand Down
11 changes: 0 additions & 11 deletions devel/apache-arrow/files/patch-absl-ver.diff

This file was deleted.

25 changes: 0 additions & 25 deletions devel/apache-arrow/files/patch-io_util.diff

This file was deleted.

0 comments on commit 035507f

Please sign in to comment.