Skip to content

Commit

Permalink
Require Abseil 20211102.0 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
kou authored and kszucs committed Jul 29, 2022
1 parent 1f9b372 commit a3444dd
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 18 deletions.
5 changes: 3 additions & 2 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2659,6 +2659,7 @@ endmacro()
# ----------------------------------------------------------------------
# Dependencies for Arrow Flight RPC

set(ARROW_ABSL_REQUIRED_VERSION "20211102.0")
macro(build_absl)
# This may be called multiple times.
if(NOT ABSL_VENDORED)
Expand Down Expand Up @@ -3609,7 +3610,7 @@ macro(build_grpc)
TRUE
PC_PACKAGE_NAMES
libcares)
resolve_dependency(absl)
resolve_dependency(absl REQUIRED_VERSION ${ARROW_ABSL_REQUIRED_VERSION})

message(STATUS "Building gRPC from source")

Expand Down Expand Up @@ -4015,7 +4016,7 @@ macro(build_google_cloud_cpp_storage)
message(STATUS "Only building the google-cloud-cpp::storage component")

# List of dependencies taken from https://github.com/googleapis/google-cloud-cpp/blob/master/doc/packaging.md
resolve_dependency(absl)
resolve_dependency(absl REQUIRED_VERSION ${ARROW_ABSL_REQUIRED_VERSION})
build_crc32c_once()

# Curl is required on all platforms, but building it internally might also trip over S3's copy.
Expand Down
11 changes: 0 additions & 11 deletions dev/tasks/linux-packages/apache-arrow/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,6 @@ class ApacheArrowPackageTask < PackageTask
control.gsub(/@CUDA_ARCHITECTURE@/, cuda_architecture)
end

def apt_prepare_debian_control_absl(control, target)
case target
when /\Aubuntu-bionic/, /\Aubuntu-focal/
use_system_absl = "#"
else
use_system_absl = ""
end
control.gsub(/@USE_SYSTEM_ABSL@/, use_system_absl)
end

def apt_prepare_debian_control_c_ares(control, target)
case target
when /\Aubuntu-bionic/
Expand Down Expand Up @@ -169,7 +159,6 @@ class ApacheArrowPackageTask < PackageTask
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_absl(control, target)
control = apt_prepare_debian_control_c_ares(control, target)
control = apt_prepare_debian_control_grpc(control, target)
control = apt_prepare_debian_control_python(control, target)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ RUN \
devscripts \
git \
gtk-doc-tools \
libabsl-dev \
libboost-filesystem-dev \
libboost-system-dev \
libbrotli-dev \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ RUN \
devscripts \
git \
gtk-doc-tools \
libabsl-dev \
libboost-filesystem-dev \
libboost-system-dev \
libbrotli-dev \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ RUN \
devscripts \
git \
gtk-doc-tools \
libabsl-dev \
libboost-filesystem-dev \
libboost-system-dev \
libbrotli-dev \
Expand Down
2 changes: 0 additions & 2 deletions dev/tasks/linux-packages/apache-arrow/debian/control.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Build-Depends:
git,
gobject-introspection,
gtk-doc-tools,
@USE_SYSTEM_ABSL@ libabsl-dev,
libboost-filesystem-dev,
libboost-system-dev,
libbrotli-dev,
Expand Down Expand Up @@ -143,7 +142,6 @@ Multi-Arch: same
Depends:
${misc:Depends},
libarrow900 (= ${binary:Version}),
@USE_SYSTEM_ABSL@ libabsl-dev,
libbrotli-dev,
libbz2-dev,
@USE_SYSTEM_C_ARES@ libc-ares-dev,
Expand Down

0 comments on commit a3444dd

Please sign in to comment.