Skip to content

Commit

Permalink
GH-45476: [Packaging][Linux] Drop support for Ubuntu 20.04 (#45477)
Browse files Browse the repository at this point in the history
### Rationale for this change

Ubuntu 20.04 will reach EOL on 2025-05.

### What changes are included in this PR?

Remove Ubuntu 20.04 related codes.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* GitHub Issue: #45476

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
kou authored Feb 10, 2025
1 parent 53c404c commit a70ac2d
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 184 deletions.
3 changes: 0 additions & 3 deletions dev/release/binary-task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,6 @@ def available_apt_targets
[
["debian", "bookworm", "main"],
["debian", "trixie", "main"],
["ubuntu", "focal", "main"],
["ubuntu", "jammy", "main"],
["ubuntu", "noble", "main"],
]
Expand Down Expand Up @@ -2105,8 +2104,6 @@ def apt_test_targets_default
# "debian-bookworm-arm64",
"debian-trixie",
# "debian-trixie-arm64",
"ubuntu-focal",
# "ubuntu-focal-arm64",
"ubuntu-jammy",
# "ubuntu-jammy-arm64",
"ubuntu-noble",
Expand Down
2 changes: 0 additions & 2 deletions dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ test_apt() {
if [ "$(arch)" = "x86_64" ]; then
for target in "debian:bookworm" \
"debian:trixie" \
"ubuntu:focal" \
"ubuntu:jammy" \
"ubuntu:noble"; do \
if ! docker run \
Expand All @@ -207,7 +206,6 @@ test_apt() {
if [ "$(arch)" = "aarch64" -o -e /usr/bin/qemu-aarch64-static ]; then
for target in "arm64v8/debian:bookworm" \
"arm64v8/debian:trixie" \
"arm64v8/ubuntu:focal" \
"arm64v8/ubuntu:jammy" \
"arm64v8/ubuntu:noble"; do \
if ! docker run \
Expand Down

This file was deleted.

22 changes: 0 additions & 22 deletions dev/tasks/linux-packages/apache-arrow/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,31 +96,9 @@ class ApacheArrowPackageTask < PackageTask
control.gsub(/@CUDA_ARCHITECTURE@/, cuda_architecture)
end

def apt_prepare_debian_control_grpc(control, target)
case target
when /\Aubuntu-focal/
use_system_grpc = "#"
else
use_system_grpc = ""
end
control.gsub(/@USE_SYSTEM_GRPC@/, use_system_grpc)
end

def apt_prepare_debian_control_protobuf(control, target)
case target
when /\Aubuntu-focal/
use_system_protobuf = "#"
else
use_system_protobuf = ""
end
control.gsub(/@USE_SYSTEM_PROTOBUF@/, use_system_protobuf)
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 = apt_prepare_debian_control_protobuf(control, target)
control
end
end
Expand Down
18 changes: 0 additions & 18 deletions dev/tasks/linux-packages/apache-arrow/apt/ubuntu-focal-arm64/from

This file was deleted.

81 changes: 0 additions & 81 deletions dev/tasks/linux-packages/apache-arrow/apt/ubuntu-focal/Dockerfile

This file was deleted.

27 changes: 13 additions & 14 deletions dev/tasks/linux-packages/apache-arrow/debian/control.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ Maintainer: Apache Arrow Developers <dev@arrow.apache.org>
Build-Depends:
cmake,
debhelper (>= 12),
# TODO: Enable this after we drop support for Ubuntu 20.04.
# gi-docgen,
gi-docgen,
git,
gobject-introspection,
libboost-filesystem-dev,
Expand All @@ -17,11 +16,11 @@ Build-Depends:
libcurl4-openssl-dev,
libgirepository1.0-dev,
libgoogle-glog-dev,
@USE_SYSTEM_GRPC@ libgrpc++-dev,
libgrpc++-dev,
libgtest-dev,
liblz4-dev,
@USE_SYSTEM_PROTOBUF@ libprotobuf-dev,
@USE_SYSTEM_PROTOBUF@ libprotoc-dev,
libprotobuf-dev,
libprotoc-dev,
libre2-dev,
libsnappy-dev,
libssl-dev,
Expand All @@ -34,10 +33,10 @@ Build-Depends:
nlohmann-json-dev | nlohmann-json3-dev,
nvidia-cuda-toolkit [!arm64],
pkg-config,
@USE_SYSTEM_PROTOBUF@ protobuf-compiler,
@USE_SYSTEM_GRPC@ protobuf-compiler-grpc,
valac,
protobuf-compiler,
protobuf-compiler-grpc,
tzdata,
valac,
zlib1g-dev
Build-Depends-Indep: libglib2.0-doc
Standards-Version: 3.9.8
Expand Down Expand Up @@ -140,23 +139,23 @@ Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
libabsl-dev,
libarrow2000 (= ${binary:Version}),
@USE_SYSTEM_GRPC@ libabsl-dev,
libbrotli-dev,
libbz2-dev,
libc-ares-dev,
libcurl4-openssl-dev,
liblz4-dev,
libc-ares-dev,
@USE_SYSTEM_PROTOBUF@ libprotobuf-dev,
@USE_SYSTEM_PROTOBUF@ libprotoc-dev,
libprotobuf-dev,
libprotoc-dev,
libre2-dev,
libsnappy-dev,
libssl-dev,
libutf8proc-dev,
libxxhash-dev,
libzstd-dev,
nlohmann-json-dev | nlohmann-json3-dev,
@USE_SYSTEM_GRPC@ protobuf-compiler-grpc,
protobuf-compiler-grpc,
zlib1g-dev
Description: Apache Arrow is a data processing library for analysis
.
Expand Down Expand Up @@ -208,7 +207,7 @@ Depends:
libarrow-dev (= ${binary:Version}),
libarrow-flight2000 (= ${binary:Version}),
libc-ares-dev,
@USE_SYSTEM_GRPC@ libgrpc++-dev
libgrpc++-dev
Description: Apache Arrow is a data processing library for analysis
.
This package provides C++ header files for Flight RPC system.
Expand Down
2 changes: 0 additions & 2 deletions dev/tasks/linux-packages/package-task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,6 @@ def apt_targets_default
# "debian-bookworm-arm64",
"debian-trixie",
# "debian-trixie-arm64",
"ubuntu-focal",
# "ubuntu-focal-arm64",
"ubuntu-jammy",
# "ubuntu-jammy-arm64",
"ubuntu-noble",
Expand Down
1 change: 0 additions & 1 deletion dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ tasks:

{% for target in ["debian-bookworm",
"debian-trixie",
"ubuntu-focal",
"ubuntu-jammy",
"ubuntu-noble"] %}
{% for architecture in ["amd64", "arm64"] %}
Expand Down

0 comments on commit a70ac2d

Please sign in to comment.