pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

apache-arrow: Update to 16.1.0



Module Name:	pkgsrc-wip
Committed By:	Matthew Danielson <matthewd%fastmail.us@localhost>
Pushed By:	matthewd
Date:		Sat Jun 1 17:59:30 2024 -0700
Changeset:	8f92b52208de5ec6b69eb58697b9da899aaa0077

Modified Files:
	apache-arrow/Makefile
	apache-arrow/PLIST
	apache-arrow/distinfo
	apache-arrow/version.mk
Added Files:
	apache-arrow/patches/patch-cpp_src_arrow_compute_kernels_vector__pairwise.cc

Log Message:
apache-arrow: Update to 16.1.0

* Note, this now builds on NetBSD 10

Apache Arrow 16.1.0 (2024-05-14 07:00:00)
Bug Fixes

    GH-40069 - [C++] Make scalar scratch space immutable after initialization (#40237)
    GH-40407 - [JS] Fix string coercion in MapRowProxyHandler.ownKeys (#40408)
    GH-40563 - [Go] Unable to JSON marshal float64 arrays which contain a NaN value (#41109)
    GH-41133 - [Benchmarking] Build benchmarks in benchmarks.env (#40925)
    GH-41137 - [C#] Fix DenseUnionArray IsNull/Valid (#41138)
    GH-41140 - [C#] Account for offset and length in union arrays (#41165)
    GH-41238 - [Release] Use UTF-8 as the default encoding to upload binary (#41242)
    GH-41280 - [Release][Java] Make Maven version detection more robust (#41281)
    GH-41302 - [C#][Integration] Fix writing list and binary arrays with zero length offsets to IPC format (#41303)
    GH-41333 - [C++][CMake] Prefer protobuf-config.cmake to FindProtobuf.cmake (#41360)
    GH-41369 - [CI][GLib] Don’t use /usr/local on macOS (#41387)
    GH-41370 - [CI][MATLAB] MATLAB macOS CI workflow fails because of macos-latest change to macos-14 (#41384)
    GH-41398 - [R][CI] Windows job failing after R 4.4 release (#41409)
    GH-41407 - [C++] Use static method to fill scalar scratch space to prevent ub (#41421)
    GH-41431 - [C++][Parquet][Dataset] Fix repeated scan on encrypted dataset (#41550)
    GH-41462 - [CI] Temporary pin azurite to v3.29.0 (#41501)
    GH-41463 - [C++] Skip TestConcurrentFillFromScalar for platforms without threading support (#41461)
    GH-41562 - [C++][Parquet] Decoding: Fix num_value handling in ByteStreamSplitDecoder (#41565)
    GH-41566 - [CI][Packaging] macOS wheel for Catalina fails to build on macOS arm64 (#41567)
    GH-41577 - [Java][Packaging] Add org.apache.arrow.memory.core to –add-opens=java.base/java.nio
    GH-41594 - [Go] Support reading date64 type & properly validate list-like types (#41595)

New Features and Improvements

    GH-39131 - [JS] Add at() for array like types (#40730)
    GH-39482 - [JS] Refactor imports (#39483)
    GH-39664 - [C++][Acero] Ensure Acero benchmarks present a metric for identifying throughput (#40884)
    GH-40517 - [C#] Fix writing sliced arrays to IPC format (#41197)
    GH-40959 - [JS] Store Timestamps in 64 bits (#40960)
    GH-40989 - [JS] Update dependencies (#40990)
    GH-41136 - [C#] Recompute null count for sliced arrays on demand (#41144)
    GH-41225 - [C#] Slice value buffers when writing sliced list or binary arrays in IPC format (#41230)
    GH-41231 - [C#] Slice values array when writing a sliced list view array to IPC format (#41255)
    GH-41247 - [Release] Use LC_ALL in binary upload scripts (#41248)
    GH-41353 - [C++] Define bit_width and byte_width of ExtensionType in terms of the storage type (#41354)
    GH-41402 - [CI][R] Update our backwards compatibility CI any other R 4.4 cleanups (#41403)
    GH-41405 - [Release][Docs][GLib] Use Sphinx based GLib front page (#41406)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8f92b52208de5ec6b69eb58697b9da899aaa0077

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 apache-arrow/Makefile                              | 24 ++++++++--------------
 apache-arrow/PLIST                                 | 20 +++++++++---------
 apache-arrow/distinfo                              |  7 ++++---
 ...p_src_arrow_compute_kernels_vector__pairwise.cc | 15 ++++++++++++++
 apache-arrow/version.mk                            |  2 +-
 5 files changed, 39 insertions(+), 29 deletions(-)

diffs:
diff --git a/apache-arrow/Makefile b/apache-arrow/Makefile
index 05acd2a445..dff6c73522 100644
--- a/apache-arrow/Makefile
+++ b/apache-arrow/Makefile
@@ -1,9 +1,8 @@
 # $NetBSD$
 
-
 DISTNAME=	apache-arrow-${APACHE_ARROW_VERSION}
 CATEGORIES=	devel
-MASTER_SITES=	https://dlcdn.apache.org/arrow/arrow-${APACHE_ARROW_VERSION}/
+MASTER_SITES=	${MASTER_SITE_APACHE:=arrow/arrow-${APACHE_ARROW_VERSION}/}/
 
 
 MAINTAINER=	matthewd%fastmail.us@localhost
@@ -16,22 +15,23 @@ LICENSE=	apache-2.0
 # They come from ./cpp/thirdparty/versions.txt
 XSIMD=		9.0.1.tar.gz
 JEMALLOC=	jemalloc-5.3.0.tar.bz2
-
 DISTFILES+=		${DISTNAME}${EXTRACT_SUFX}
 DISTFILES+=		${XSIMD}
 DISTFILES+=		${JEMALLOC}
+
 SITES.${XSIMD}=		https://github.com/xtensor-stack/xsimd/archive/
 SITES.${JEMALLOC}=	${MASTER_SITE_GITHUB:=jemalloc/jemalloc/releases/download/5.3.0/}
 
 .include "../../mk/bsd.prefs.mk"
 .include "options.mk"
 
-CONFIGURE_DIRS=	cpp
-BUILD_DIRS=	cpp
+CONFIGURE_DIR=	cpp
 
 USE_LANGUAGES=	c c++
-USE_TOOLS=	cmake gmake
-USE_CMAKE=	yes
+USE_TOOLS=	gmake install
+# Needs gnu install for -v option
+TOOLS_PLATFORM.install=
+
 CMAKE_ARGS+=	-DCMAKE_INSTALL_LIBDIR=lib
 CMAKE_ARGS+=	-DARROW_DEPENDENCY_SOURCE=SYSTEM
 # Not yet for Gandiva
@@ -57,19 +57,13 @@ CMAKE_ARGS+=	-DARROW_BUILD_TESTS=OFF
 
 # Fix this version expansion as we have to
 post-install:
-	${MV} ${DESTDIR}${PREFIX}/share/gdb/auto-load/${LOCALBASE}/lib/libarrow.so.${APACHE_ARROW_VERSION:C/\..*//g}00.${APACHE_ARROW_VERSION:C/[0-9]*\.[0-9]*\.//1}.0-gdb.py ${DESTDIR}${PREFIX}/share/arrow/gdb/
+	${MV} ${DESTDIR}${PREFIX}/share/gdb/auto-load/${LOCALBASE}/lib/libarrow.so.${APACHE_ARROW_VERSION:C/\./0/1}.0-gdb.py ${DESTDIR}${PREFIX}/share/arrow/gdb/
 
-TOOL_DEPENDS+=		cmake-[0-9]*:../../devel/cmake
-# Needs gnu install for -v option
-.if ${OPSYS} == "NetBSD"
-TOOL_DEPENDS+=		coreutils>=0:../../sysutils/coreutils
-TOOLS_PATH.install=	${PREFIX}/bin/ginstall
-.endif
 
 .include "../../wip/apache-arrow/version.mk"
 .include "../../converters/utf8proc/buildlink3.mk"
 .include "../../devel/boost-libs/buildlink3.mk"
-.include "../../devel/cmake/buildlink3.mk"
+.include "../../devel/cmake/build.mk"
 .include "../../devel/gflags/buildlink3.mk"
 # .include "../../devel/googletest/buildlink3.mk"
 .include "../../devel/flatbuffers/buildlink3.mk"
diff --git a/apache-arrow/PLIST b/apache-arrow/PLIST
index cbf828f6a7..4897b2f231 100644
--- a/apache-arrow/PLIST
+++ b/apache-arrow/PLIST
@@ -419,21 +419,21 @@ lib/cmake/Parquet/ParquetTargets-release.cmake
 lib/cmake/Parquet/ParquetTargets.cmake
 lib/libarrow.a
 lib/libarrow.so
-lib/libarrow.so.1600
-lib/libarrow.so.1600.0.0
+lib/libarrow.so.1601
+lib/libarrow.so.1601.0.0
 lib/libarrow_acero.a
 lib/libarrow_acero.so
-lib/libarrow_acero.so.1600
-lib/libarrow_acero.so.1600.0.0
+lib/libarrow_acero.so.1601
+lib/libarrow_acero.so.1601.0.0
 lib/libarrow_bundled_dependencies.a
 lib/libarrow_dataset.a
 lib/libarrow_dataset.so
-lib/libarrow_dataset.so.1600
-lib/libarrow_dataset.so.1600.0.0
+lib/libarrow_dataset.so.1601
+lib/libarrow_dataset.so.1601.0.0
 lib/libparquet.a
 lib/libparquet.so
-lib/libparquet.so.1600
-lib/libparquet.so.1600.0.0
+lib/libparquet.so.1601
+lib/libparquet.so.1601.0.0
 lib/pkgconfig/arrow-acero.pc
 lib/pkgconfig/arrow-compute.pc
 lib/pkgconfig/arrow-csv.pc
@@ -443,8 +443,8 @@ lib/pkgconfig/arrow-json.pc
 lib/pkgconfig/arrow.pc
 lib/pkgconfig/parquet.pc
 share/arrow/gdb/gdb_arrow.py
-share/arrow/gdb/libarrow.so.1600.0.0-gdb.py
+share/arrow/gdb/libarrow.so.1601.0.0-gdb.py
 share/doc/arrow/LICENSE.txt
 share/doc/arrow/NOTICE.txt
 share/doc/arrow/README.md
-@pkgdir share/gdb/auto-load/home/matthew/pkgsrc/install.20240420/lib
+@pkgdir share/gdb/auto-load/usr/pkg/lib
diff --git a/apache-arrow/distinfo b/apache-arrow/distinfo
index 258243a687..af9e5ee814 100644
--- a/apache-arrow/distinfo
+++ b/apache-arrow/distinfo
@@ -3,9 +3,10 @@ $NetBSD$
 BLAKE2s (9.0.1.tar.gz) = a785e1ad5fd5df76c95e7cf9a6eadeb86ffbc46ea4342f49f19381434bd0f78c
 SHA512 (9.0.1.tar.gz) = ed56287f608ccdf5bc5d5fc2918e313e7c4cecdd9ef2c9993a72ea900d9ff662c57ac5326c7a809eb11505c6f39d4599f3f161b97b6e03c65783b824b8d700d2
 Size (9.0.1.tar.gz) = 215065 bytes
-BLAKE2s (apache-arrow-16.0.0.tar.gz) = 103ca1044caec5c76cd460e047cdb620f954bb579a88522eeda745f74a1a3d23
-SHA512 (apache-arrow-16.0.0.tar.gz) = 773f4f3eef603032c8ba0cfdc023bfd2a24bb5e41c82da354a22d7854ab153294ede1f4782cc32b27451cf1b58303f105bac61ceeb3568faea747b93e21d79e4
-Size (apache-arrow-16.0.0.tar.gz) = 21695067 bytes
+BLAKE2s (apache-arrow-16.1.0.tar.gz) = 086a7c5d98488d5934d5b3284a93c064c6d4a38767735dbb359ddfac71f0a2bd
+SHA512 (apache-arrow-16.1.0.tar.gz) = 28975f59e1fdde2dba4afaf4a5ba934b63db3a7f27656e2aa0af0f0d2a046c9dbfa9a6082de94629c36d03809b296566a37ea65ec5a2fc17fedac7d21e272d31
+Size (apache-arrow-16.1.0.tar.gz) = 21707079 bytes
 BLAKE2s (jemalloc-5.3.0.tar.bz2) = 285e6145b9d3b575b1ec5cfdae8af40b461149085f001839d64685c0d56e2689
 SHA512 (jemalloc-5.3.0.tar.bz2) = 22907bb052096e2caffb6e4e23548aecc5cc9283dce476896a2b1127eee64170e3562fa2e7db9571298814a7a2c7df6e8d1fbe152bd3f3b0c1abec22a2de34b1
 Size (jemalloc-5.3.0.tar.bz2) = 736023 bytes
+SHA1 (patch-cpp_src_arrow_compute_kernels_vector__pairwise.cc) = 808d9f035b413c95531fc1a82c3c838ebbb14297
diff --git a/apache-arrow/patches/patch-cpp_src_arrow_compute_kernels_vector__pairwise.cc b/apache-arrow/patches/patch-cpp_src_arrow_compute_kernels_vector__pairwise.cc
new file mode 100644
index 0000000000..c2ca2d7408
--- /dev/null
+++ b/apache-arrow/patches/patch-cpp_src_arrow_compute_kernels_vector__pairwise.cc
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix compilation error on NetBSD 10
+
+--- cpp/src/arrow/compute/kernels/vector_pairwise.cc.orig	2024-05-31 01:27:08.321824301 +0000
++++ cpp/src/arrow/compute/kernels/vector_pairwise.cc
+@@ -56,7 +56,7 @@ Status PairwiseExecImpl(KernelContext* c
+                         ArrayData* result) {
+   // We only compute values in the region where the input-with-offset overlaps
+   // the original input. The margin where these do not overlap gets filled with null.
+-  const auto margin_length = std::min(abs(periods), input.length);
++  const auto margin_length = std::min<int64_t>(abs(periods), input.length);
+   const auto computed_length = input.length - margin_length;
+   const auto computed_start = periods > 0 ? margin_length : 0;
+   const auto left_start = computed_start;
diff --git a/apache-arrow/version.mk b/apache-arrow/version.mk
index 2a50723d81..3719a67525 100644
--- a/apache-arrow/version.mk
+++ b/apache-arrow/version.mk
@@ -1,2 +1,2 @@
 # $NetBSD$
-APACHE_ARROW_VERSION=	16.0.0
+APACHE_ARROW_VERSION=	16.1.0


Home | Main Index | Thread Index | Old Index