Skip to content

Apache DataFusion SQL Query Engine

ARROW-8786: [Packaging][rpm] Use bundled zstd in the CentOS 8 build

Krisztián Szűcs3a90bb8b3af1
diff --git a/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in b/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
index c698dff79c..39c82c778b 100644
--- a/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
+++ b/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
@@ -45,6 +45,7 @@
%define use_meson (%{_centos_ver} >= 8)
%define have_rapidjson (%{_centos_ver} == 7)
+%define have_zstd (%{_centos_ver} < 8)
Name: @PACKAGE@
Version: @VERSION@
@@ -70,7 +71,9 @@ BuildRequires: git
%if %{_centos_ver} >= 7
BuildRequires: glog-devel
%endif
+%if %{have_zstd}
BuildRequires: libzstd-devel
+%endif
BuildRequires: lz4-devel
BuildRequires: pkgconfig
BuildRequires: python%{python_version}-devel
@@ -219,7 +222,9 @@ Requires: brotli
Requires: gflags
Requires: glog
%endif
+%if %{have_zstd}
Requires: libzstd
+%endif
Requires: lz4
%if %{_centos_ver} >= 8
Requires: re2
diff --git a/dev/tasks/linux-packages/apache-arrow/yum/centos-8/Dockerfile b/dev/tasks/linux-packages/apache-arrow/yum/centos-8/Dockerfile
index d10cf08279..3f6701da3f 100644
--- a/dev/tasks/linux-packages/apache-arrow/yum/centos-8/Dockerfile
+++ b/dev/tasks/linux-packages/apache-arrow/yum/centos-8/Dockerfile
@@ -39,7 +39,7 @@ RUN \
glog-devel \
gobject-introspection-devel \
gtk-doc \
- libzstd-devel \
+ # libzstd-devel \
llvm-devel \
llvm-static \
lz4-devel \