Skip to content

Apache DataFusion SQL Query Engine

ARROW-2383: [deb] Use system Protocol Buffers

Kouhei Sutou06492ffdf790
diff --git a/dev/tasks/linux-packages/apt/debian-stretch/Dockerfile b/dev/tasks/linux-packages/apt/debian-stretch/Dockerfile
index b803727500..fc147616bc 100644
--- a/dev/tasks/linux-packages/apt/debian-stretch/Dockerfile
+++ b/dev/tasks/linux-packages/apt/debian-stretch/Dockerfile
@@ -40,9 +40,12 @@ RUN \
libgirepository1.0-dev \
libglib2.0-doc \
libjemalloc-dev \
+ libprotobuf-dev \
+ libprotoc-dev \
lsb-release \
nvidia-cuda-toolkit \
pkg-config \
+ protobuf-compiler \
python3-dev \
python3-numpy && \
apt clean && \
diff --git a/dev/tasks/linux-packages/apt/ubuntu-bionic/Dockerfile b/dev/tasks/linux-packages/apt/ubuntu-bionic/Dockerfile
index e4362b7e34..2452bac44b 100644
--- a/dev/tasks/linux-packages/apt/ubuntu-bionic/Dockerfile
+++ b/dev/tasks/linux-packages/apt/ubuntu-bionic/Dockerfile
@@ -38,9 +38,12 @@ RUN \
libgirepository1.0-dev \
libglib2.0-doc \
libjemalloc-dev \
+ libprotobuf-dev \
+ libprotoc-dev \
lsb-release \
nvidia-cuda-toolkit \
pkg-config \
+ protobuf-compiler \
python3-dev \
python3-numpy && \
apt clean && \
diff --git a/dev/tasks/linux-packages/apt/ubuntu-xenial/Dockerfile b/dev/tasks/linux-packages/apt/ubuntu-xenial/Dockerfile
index 8448b2856c..2449f2851b 100644
--- a/dev/tasks/linux-packages/apt/ubuntu-xenial/Dockerfile
+++ b/dev/tasks/linux-packages/apt/ubuntu-xenial/Dockerfile
@@ -39,9 +39,12 @@ RUN \
libgirepository1.0-dev \
libglib2.0-doc \
libjemalloc-dev \
+ libprotobuf-dev \
+ libprotoc-dev \
lsb-release \
nvidia-cuda-toolkit \
pkg-config \
+ protobuf-compiler \
python3-dev \
python3-numpy && \
apt clean && \
diff --git a/dev/tasks/linux-packages/debian/control b/dev/tasks/linux-packages/debian/control
index 2534201f6d..498596ab41 100644
--- a/dev/tasks/linux-packages/debian/control
+++ b/dev/tasks/linux-packages/debian/control
@@ -13,6 +13,9 @@ Build-Depends:
libboost-filesystem-dev,
libboost-regex-dev,
libjemalloc-dev,
+ libprotobuf-dev,
+ libprotoc-dev,
+ protobuf-compiler,
python3-dev,
python3-numpy,
nvidia-cuda-toolkit,
diff --git a/dev/tasks/linux-packages/debian/rules b/dev/tasks/linux-packages/debian/rules
index 0659bd8091..955e9e2305 100755
--- a/dev/tasks/linux-packages/debian/rules
+++ b/dev/tasks/linux-packages/debian/rules
@@ -27,6 +27,8 @@ override_dh_auto_configure:
-DARROW_PYTHON=ON \
-DARROW_BOOST_USE_SHARED=ON \
-DARROW_ORC=ON \
+ -DPROTOBUF_HOME=/usr \
+ -DARROW_PROTOBUF_USE_SHARED=ON \
-DPythonInterp_FIND_VERSION=ON \
-DPythonInterp_FIND_VERSION_MAJOR=3 \
-DARROW_GPU=ON