Skip to content

Apache DataFusion SQL Query Engine

ARROW-11512: [Packaging][deb] Add missing gRPC dependency for Ubuntu 21.04

Sutou Kouheicbaf25bbc366
diff --git a/dev/release/verify-apt.sh b/dev/release/verify-apt.sh
index 43b05f7ada..614f4e5f84 100755
--- a/dev/release/verify-apt.sh
+++ b/dev/release/verify-apt.sh
@@ -65,9 +65,6 @@ case "${distribution}-${code_name}" in
ubuntu-xenial)
have_flight=no
;;
- ubuntu-groovy)
- workaround_missing_packages+=(libgrpc++-dev protobuf-compiler-grpc)
- ;;
esac
if [ "$(arch)" = "aarch64" ]; then
have_plasma=no
diff --git a/dev/tasks/linux-packages/apache-arrow/Rakefile b/dev/tasks/linux-packages/apache-arrow/Rakefile
index 9d5fb0ef41..775ec5588e 100644
--- a/dev/tasks/linux-packages/apache-arrow/Rakefile
+++ b/dev/tasks/linux-packages/apache-arrow/Rakefile
@@ -89,13 +89,30 @@ class ApacheArrowPackageTask < PackageTask
false
end
- def apt_prepare_debian_control(control_in, target)
+ def apt_prepare_debian_control_cuda_architecture(control, target)
if apt_arm64_cuda_available_target?(target)
cuda_architecture = "any"
else
cuda_architecture = "i386 amd64"
end
- control_in.gsub(/@CUDA_ARCHITECTURE@/, cuda_architecture)
+ control.gsub(/@CUDA_ARCHITECTURE@/, cuda_architecture)
+ end
+
+ def apt_prepare_debian_control_grpc(control, target)
+ case target
+ when /\Adebian-/, /\Aubuntu-(?:xenial|bionic|focal)/
+ use_system_grpc = "#"
+ else
+ use_system_grpc = ""
+ end
+ control.gsub(/@USE_SYSTEM_GRPC@/, use_system_grpc)
+ end
+
+ def apt_prepare_debian_control(control_in, target)
+ control = control_in.dup
+ control = apt_prepare_debian_control_cuda_architecture(control, target)
+ control = apt_prepare_debian_control_grpc(control, target)
+ control
end
end
diff --git a/dev/tasks/linux-packages/apache-arrow/debian/control.in b/dev/tasks/linux-packages/apache-arrow/debian/control.in
index 86eca72aa2..f50b09e604 100644
--- a/dev/tasks/linux-packages/apache-arrow/debian/control.in
+++ b/dev/tasks/linux-packages/apache-arrow/debian/control.in
@@ -15,6 +15,7 @@ Build-Depends:
libcurl4-openssl-dev,
libgirepository1.0-dev,
libgoogle-glog-dev,
+@USE_SYSTEM_GRPC@ libgrpc++-dev,
libgtest-dev,
liblz4-dev,
libre2-dev,
@@ -25,6 +26,7 @@ Build-Depends:
ninja-build,
nvidia-cuda-toolkit [!arm64],
pkg-config,
+@USE_SYSTEM_GRPC@ protobuf-compiler-grpc,
python3-dev,
python3-numpy,
tzdata,
@@ -123,12 +125,14 @@ Depends:
libarrow400 (= ${binary:Version}),
libbrotli-dev,
libbz2-dev,
+@USE_SYSTEM_GRPC@ libgrpc++-dev,
liblz4-dev,
libre2-dev,
libsnappy-dev,
libssl-dev,
libutf8proc-dev,
libzstd-dev,
+@USE_SYSTEM_GRPC@ protobuf-compiler-grpc,
zlib1g-dev
Description: Apache Arrow is a data processing library for analysis
.