Skip to content

Commit 2ccff8d

Browse files
committed
Use bundled abseil which has crc32 included for older platforms
1 parent da071c1 commit 2ccff8d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

dev/tasks/linux-packages/apache-arrow/debian/rules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ override_dh_auto_configure:
3030
else \
3131
ARROW_CUDA=OFF; \
3232
fi; \
33-
if [ "$(VERSION_CODENAME)" = "bookworm" ]; then \
33+
if [ "$(VERSION_CODENAME)" = "bookworm" ] || \
34+
[ "$(VERSION_CODENAME)" = "noble" ]; then \
3435
: "System Abseil is too old for GCS v3"; \
3536
absl_SOURCE=BUNDLED; \
3637
else \

dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
%define arrow_cmake_install DESTDIR="%{buildroot}" make -C %{arrow_cmake_builddir} install
4747
%endif
4848

49+
%define use_bundled_absl (%{_rhel} < 10)
4950
%define use_bundled_nlohmann_json (%{_rhel} == 8)
5051
%define use_gcs (!%{is_amazon_linux})
5152
%define use_gflags (!%{is_amazon_linux})
@@ -163,6 +164,9 @@ cd cpp
163164
-DCMAKE_BUILD_TYPE=$cpp_build_type \
164165
-DPARQUET_BUILD_EXECUTABLES=ON \
165166
-DPARQUET_REQUIRE_ENCRYPTION=ON \
167+
%if %{use_bundled_absl}
168+
-Dabsl_SOURCE=BUNDLED \
169+
%endif
166170
%if %{use_bundled_nlohmann_json}
167171
-Dnlohmann_json_SOURCE=BUNDLED \
168172
%endif

0 commit comments

Comments
 (0)