Skip to content

Apache DataFusion SQL Query Engine

ARROW-4922: [Packaging] Use system libraries for .deb and .rpm

Kouhei Sutoud27d338cedcf
diff --git a/dev/tasks/linux-packages/apt/debian-stretch/Dockerfile b/dev/tasks/linux-packages/apt/debian-stretch/Dockerfile
index 3431451579..ab0e990919 100644
--- a/dev/tasks/linux-packages/apt/debian-stretch/Dockerfile
+++ b/dev/tasks/linux-packages/apt/debian-stretch/Dockerfile
@@ -50,10 +50,17 @@ RUN \
libboost-filesystem-dev \
libboost-regex-dev \
libboost-system-dev \
+ libbrotli-dev \
+ libdouble-conversion-dev \
libgirepository1.0-dev \
libglib2.0-doc \
+ libgoogle-glog-dev \
+ liblz4-dev \
libprotobuf-dev \
libprotoc-dev \
+ libre2-dev \
+ libsnappy-dev \
+ libzstd-dev \
lsb-release \
nvidia-cuda-toolkit \
pkg-config \
diff --git a/dev/tasks/linux-packages/apt/ubuntu-bionic/Dockerfile b/dev/tasks/linux-packages/apt/ubuntu-bionic/Dockerfile
index 02d330a80e..767f8c1d09 100644
--- a/dev/tasks/linux-packages/apt/ubuntu-bionic/Dockerfile
+++ b/dev/tasks/linux-packages/apt/ubuntu-bionic/Dockerfile
@@ -38,15 +38,23 @@ RUN \
libboost-filesystem-dev \
libboost-regex-dev \
libboost-system-dev \
+ libbrotli-dev \
+ libdouble-conversion-dev \
libgirepository1.0-dev \
libglib2.0-doc \
+ libgoogle-glog-dev \
+ liblz4-dev \
libprotobuf-dev \
libprotoc-dev \
+ libre2-dev \
+ libsnappy-dev \
+ libzstd-dev \
lsb-release \
nvidia-cuda-toolkit \
pkg-config \
protobuf-compiler \
python3-dev \
- python3-numpy && \
+ python3-numpy \
+ rapidjson-dev && \
apt clean && \
rm -rf /var/lib/apt/lists/*
diff --git a/dev/tasks/linux-packages/apt/ubuntu-cosmic/Dockerfile b/dev/tasks/linux-packages/apt/ubuntu-cosmic/Dockerfile
index 888873653d..4272690ea3 100644
--- a/dev/tasks/linux-packages/apt/ubuntu-cosmic/Dockerfile
+++ b/dev/tasks/linux-packages/apt/ubuntu-cosmic/Dockerfile
@@ -38,16 +38,23 @@ RUN \
libboost-filesystem-dev \
libboost-regex-dev \
libboost-system-dev \
+ libbrotli-dev \
+ libdouble-conversion-dev \
libgirepository1.0-dev \
libglib2.0-doc \
- libjemalloc-dev \
+ libgoogle-glog-dev \
+ liblz4-dev \
libprotobuf-dev \
libprotoc-dev \
+ libre2-dev \
+ libsnappy-dev \
+ libzstd-dev \
lsb-release \
nvidia-cuda-toolkit \
pkg-config \
protobuf-compiler \
python3-dev \
- python3-numpy && \
+ python3-numpy \
+ rapidjson-dev && \
apt clean && \
rm -rf /var/lib/apt/lists/*
diff --git a/dev/tasks/linux-packages/apt/ubuntu-xenial/Dockerfile b/dev/tasks/linux-packages/apt/ubuntu-xenial/Dockerfile
index 51dfcf93da..520fe1310c 100644
--- a/dev/tasks/linux-packages/apt/ubuntu-xenial/Dockerfile
+++ b/dev/tasks/linux-packages/apt/ubuntu-xenial/Dockerfile
@@ -46,10 +46,17 @@ RUN \
libboost-filesystem-dev \
libboost-regex-dev \
libboost-system-dev \
+ libbrotli-dev \
+ libdouble-conversion-dev \
libgirepository1.0-dev \
libglib2.0-doc \
+ libgoogle-glog-dev \
+ liblz4-dev \
libprotobuf-dev \
libprotoc-dev \
+ libre2-dev \
+ libsnappy-dev \
+ libzstd-dev \
lsb-release \
nvidia-cuda-toolkit \
pkg-config \
diff --git a/dev/tasks/linux-packages/debian/control b/dev/tasks/linux-packages/debian/control
index 5fcbb5c0fa..ba15b2b3a8 100644
--- a/dev/tasks/linux-packages/debian/control
+++ b/dev/tasks/linux-packages/debian/control
@@ -16,9 +16,16 @@ Build-Depends:
libboost-filesystem-dev,
libboost-regex-dev,
libboost-system-dev,
+ libbrotli-dev,
+ libdouble-conversion-dev,
libgirepository1.0-dev,
+ libgoogle-glog-dev,
+ liblz4-dev,
libprotobuf-dev,
libprotoc-dev,
+ libre2-dev,
+ libsnappy-dev,
+ libzstd-dev,
nvidia-cuda-toolkit,
pkg-config,
protobuf-compiler,
diff --git a/dev/tasks/linux-packages/debian/rules b/dev/tasks/linux-packages/debian/rules
index d82f306cd2..c015ef6fc2 100755
--- a/dev/tasks/linux-packages/debian/rules
+++ b/dev/tasks/linux-packages/debian/rules
@@ -25,14 +25,11 @@ override_dh_auto_configure:
-- \
-DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \
-DARROW_PYTHON=ON \
- -DARROW_BOOST_USE_SHARED=ON \
-DARROW_ORC=ON \
-DARROW_PARQUET=ON \
-DARROW_PLASMA=ON \
-DARROW_GANDIVA=ON \
-DARROW_GANDIVA_JAVA=OFF \
- -DPROTOBUF_HOME=/usr \
- -DARROW_PROTOBUF_USE_SHARED=ON \
-DPythonInterp_FIND_VERSION=ON \
-DPythonInterp_FIND_VERSION_MAJOR=3 \
-DARROW_CUDA=ON
diff --git a/dev/tasks/linux-packages/yum/arrow.spec.in b/dev/tasks/linux-packages/yum/arrow.spec.in
index 9391ea583f..be85b90f7c 100644
--- a/dev/tasks/linux-packages/yum/arrow.spec.in
+++ b/dev/tasks/linux-packages/yum/arrow.spec.in
@@ -36,7 +36,21 @@ BuildRequires: pkgconfig
BuildRequires: gcc-c++
BuildRequires: cmake3
BuildRequires: boost-devel
+%if %{_centos_ver} >= 7
+BuildRequires: double-conversion-devel
+%endif
+BuildRequires: gflags-devel
BuildRequires: git
+%if %{_centos_ver} >= 7
+BuildRequires: glog-devel
+%endif
+BuildRequires: libzstd-devel
+BuildRequires: lz4-devel
+%if %{_centos_ver} >= 7
+BuildRequires: rapidjson-devel
+%endif
+BuildRequires: snappy-devel
+BuildRequires: zlib-devel
%if %{use_python}
BuildRequires: python34-devel
BuildRequires: python34-numpy
@@ -44,6 +58,7 @@ BuildRequires: python34-numpy
%if %{use_parquet}
BuildRequires: bison
BuildRequires: flex
+BuildRequires: thrift-devel
%endif
%if %{use_glib}
BuildRequires: autoconf-archive
@@ -114,6 +129,13 @@ License: Apache-2.0
Requires: boost-system
Requires: boost-filesystem
Requires: boost-regex
+Requires: double-conversion
+Requires: gflags
+Requires: glog
+Requires: libzstd
+Requires: lz4
+Requires: snappy
+Requires: zlib
%description libs
This package contains the libraries for Apache Arrow C++.
@@ -225,6 +247,7 @@ Requires: boost-system
Requires: boost-filesystem
Requires: boost-program-options
Requires: boost-regex
+Requires: thrift
Requires: %{name}-libs = %{version}-%{release}
%description -n parquet-libs
diff --git a/dev/tasks/linux-packages/yum/centos-6/Dockerfile b/dev/tasks/linux-packages/yum/centos-6/Dockerfile
index c7de922967..e317125883 100644
--- a/dev/tasks/linux-packages/yum/centos-6/Dockerfile
+++ b/dev/tasks/linux-packages/yum/centos-6/Dockerfile
@@ -48,14 +48,19 @@ RUN \
boost-devel \
cmake3 \
devtoolset-6 \
+ gflags-devel \
git \
gobject-introspection-devel \
gtk-doc \
+ libzstd-devel \
+ lz4-devel \
pkg-config \
python34 \
python34-devel \
python34-numpy \
rpm-build \
rpmdevtools \
- tar && \
+ snappy-devel \
+ tar \
+ zlib-devel && \
yum clean ${quiet} all
diff --git a/dev/tasks/linux-packages/yum/centos-7/Dockerfile b/dev/tasks/linux-packages/yum/centos-7/Dockerfile
index d672e46bd2..b3a56f57f9 100644
--- a/dev/tasks/linux-packages/yum/centos-7/Dockerfile
+++ b/dev/tasks/linux-packages/yum/centos-7/Dockerfile
@@ -29,15 +29,24 @@ RUN \
bison \
boost-devel \
cmake3 \
+ double-conversion-devel \
flex \
+ gflags-devel \
git \
+ glog-devel \
gobject-introspection-devel \
gtk-doc \
+ libzstd-devel \
+ lz4-devel \
pkg-config \
python34 \
python34-devel \
python34-numpy \
+ rapidjson-devel \
rpm-build \
rpmdevtools \
- tar && \
+ snappy-devel \
+ tar \
+ thrift-devel \
+ zlib-devel && \
yum clean ${quiet} all