This is an automated email from the ASF dual-hosted git repository.

raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 2e12201dc3 GH-40735: [Packaging][CentOS] Drop support for CentOS 7 
(#48550)
2e12201dc3 is described below

commit 2e12201dc3cbc4e34fba5290dc9e87c7cc3d00b1
Author: Sutou Kouhei <[email protected]>
AuthorDate: Wed Dec 17 18:09:35 2025 +0900

    GH-40735: [Packaging][CentOS] Drop support for CentOS 7 (#48550)
    
    ### Rationale for this change
    
    There is no sponsor to maintain EOL-ed CentOS 7.
    
    ### What changes are included in this PR?
    
    Remove CentOS 7 packages related configurations.
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    Yes.
    * GitHub Issue: #40735
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 .github/workflows/package_linux.yml                |   1 -
 dev/release/binary-task.rb                         |   6 +-
 dev/release/verify-release-candidate.sh            |   3 +-
 dev/release/verify-yum.sh                          |  35 -------
 .../apache-arrow-release/yum/Apache-Arrow.repo     |  14 ---
 .../yum/apache-arrow-release.spec.in               |  31 ++----
 .../apache-arrow-release/yum/centos-7/Dockerfile   |  34 -------
 .../linux-packages/apache-arrow/yum/arrow.spec.in  | 105 +++------------------
 .../apache-arrow/yum/centos-7/Dockerfile           |  86 -----------------
 dev/tasks/linux-packages/package-task.rb           |   2 -
 .../developers/continuous_integration/crossbow.rst |   4 +-
 docs/source/python/integration/extending.rst       |   2 +-
 12 files changed, 27 insertions(+), 296 deletions(-)

diff --git a/.github/workflows/package_linux.yml 
b/.github/workflows/package_linux.yml
index 8b800608f1..20950e2888 100644
--- a/.github/workflows/package_linux.yml
+++ b/.github/workflows/package_linux.yml
@@ -95,7 +95,6 @@ jobs:
           - amazon-linux-2023-arm64
           - centos-9-stream-amd64
           - centos-9-stream-arm64
-          - centos-7-amd64
           - debian-bookworm-amd64
           - debian-bookworm-arm64
           - debian-trixie-amd64
diff --git a/dev/release/binary-task.rb b/dev/release/binary-task.rb
index 42465de125..79d4903755 100644
--- a/dev/release/binary-task.rb
+++ b/dev/release/binary-task.rb
@@ -1861,7 +1861,6 @@ APT::FTPArchive::Release::Description 
"#{apt_repository_description}";
       ["almalinux", "8"],
       ["amazon-linux", "2023"],
       ["centos", "9-stream"],
-      ["centos", "7"],
     ]
   end
 
@@ -2048,8 +2047,7 @@ APT::FTPArchive::Release::Description 
"#{apt_repository_description}";
                  "almalinux-9",
                  "almalinux-8",
                  "amazon-linux-2023",
-                 "centos-9-stream",
-                 "centos-7"
+                 "centos-9-stream"
               # Adjust source packages directory for backward
               # compatibility. We don't need this for new supported
               # distribution because we don't need to care about
@@ -2391,8 +2389,6 @@ class LocalBinaryTask < BinaryTask
       # "amazon-linux-2023-aarch64",
       "centos-9-stream",
       # "centos-9-stream-aarch64",
-      "centos-7",
-      # "centos-7-aarch64",
     ]
   end
 
diff --git a/dev/release/verify-release-candidate.sh 
b/dev/release/verify-release-candidate.sh
index 9213cdea01..e6def2ca19 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -270,8 +270,7 @@ test_yum() {
                     "almalinux:9" \
                     "almalinux:8" \
                     "amazonlinux:2023" \
-                    "quay.io/centos/centos:stream9" \
-                    "centos:7"; do
+                    "quay.io/centos/centos:stream9"; do
         if ! docker run \
                --platform linux/x86_64 \
                --rm \
diff --git a/dev/release/verify-yum.sh b/dev/release/verify-yum.sh
index 4c32ba3089..c3b896ef19 100755
--- a/dev/release/verify-yum.sh
+++ b/dev/release/verify-yum.sh
@@ -60,16 +60,6 @@ uninstall_command="dnf remove -y"
 clean_command="dnf clean"
 info_command="dnf info --enablerepo=crb"
 
-# GH-42128
-# Switch all repos to point to to vault.centos.org, use for EOL distros
-fix_eol_repositories() {
-  sed -i \
-    -e 's/^mirrorlist/#mirrorlist/' \
-    -e 's/^#baseurl/baseurl/' \
-    -e 's/mirror\.centos\.org/vault.centos.org/' \
-    /etc/yum.repos.d/*.repo
-}
-
 echo "::group::Prepare repository"
 
 case "${distribution}-${distribution_version}" in
@@ -97,23 +87,6 @@ case "${distribution}-${distribution_version}" in
     install_command="dnf install -y --allowerasing"
     info_command="dnf info"
     ;;
-  centos-7)
-    distribution_prefix="centos"
-    cmake_package=cmake3
-    cmake_command=cmake3
-    devtoolset=11
-    scl_package=centos-release-scl-rh
-    have_arrow_libs=yes
-    have_flight=no
-    have_gandiva=no
-    have_ruby=no
-    have_vala=no
-    install_command="yum install -y"
-    uninstall_command="yum remove -y"
-    clean_command="yum clean"
-    info_command="yum info"
-    fix_eol_repositories
-    ;;
   centos-*)
     distribution_prefix="centos"
     repository_version+="-stream"
@@ -191,14 +164,6 @@ echo "::endgroup::"
 echo "::group::Test Apache Arrow C++"
 mkdir -p build
 ${install_command} ${enablerepo_epel} arrow-devel-${package_version}
-if [ -n "${devtoolset}" ]; then
-  ${install_command} ${scl_package}
-  sed -i \
-    -e 's/^mirrorlist/#mirrorlist/' \
-    -e 's/^#baseurl/baseurl/' \
-    -e 's/mirror\.centos\.org/vault.centos.org/' \
-    /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
-fi
 ${install_command} \
   ${cmake_package} \
   git \
diff --git 
a/dev/tasks/linux-packages/apache-arrow-release/yum/Apache-Arrow.repo 
b/dev/tasks/linux-packages/apache-arrow-release/yum/Apache-Arrow.repo
index 6a27acf9a2..daff885f00 100644
--- a/dev/tasks/linux-packages/apache-arrow-release/yum/Apache-Arrow.repo
+++ b/dev/tasks/linux-packages/apache-arrow-release/yum/Apache-Arrow.repo
@@ -36,23 +36,9 @@ gpgcheck=1
 enabled=0
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Apache-Arrow
 
-[apache-arrow-centos]
-name=Apache Arrow for CentOS $releasever - $basearch
-baseurl=https://packages.apache.org/artifactory/arrow/centos/$releasever/$basearch/
-gpgcheck=1
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Apache-Arrow
-
 [apache-arrow-rhel]
 name=Apache Arrow for RHEL $releasever - $basearch
 
baseurl=https://packages.apache.org/artifactory/arrow/almalinux/$releasever/$basearch/
 gpgcheck=1
 enabled=0
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Apache-Arrow
-
-[apache-arrow-rhel7]
-name=Apache Arrow for RHEL 7 - $basearch
-baseurl=https://packages.apache.org/artifactory/arrow/centos/7/$basearch/
-gpgcheck=1
-enabled=0
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Apache-Arrow
diff --git 
a/dev/tasks/linux-packages/apache-arrow-release/yum/apache-arrow-release.spec.in
 
b/dev/tasks/linux-packages/apache-arrow-release/yum/apache-arrow-release.spec.in
index 2053b95062..b5796afa5e 100644
--- 
a/dev/tasks/linux-packages/apache-arrow-release/yum/apache-arrow-release.spec.in
+++ 
b/dev/tasks/linux-packages/apache-arrow-release/yum/apache-arrow-release.spec.in
@@ -20,17 +20,8 @@
 %define _amzn %{?amzn:%{amzn}}%{!?amzn:0}
 %define _rhel %{?rhel:%{rhel}}%{!?rhel:0}
 
-%define use_dnf (%{_rhel} >= 8 || %{_amzn} >= 2023)
 %define use_epel (%{_amzn} < 2023)
 
-%if %{use_dnf}
-%define yum_repository_enable() (dnf config-manager --set-enabled %1)
-%define yum_repository_disable() (dnf config-manager --set-disabled %1)
-%else
-%define yum_repository_enable() (yum-config-manager --enable %1)
-%define yum_repository_disable() (yum-config-manager --disable %1)
-%endif
-
 Name:          @PACKAGE@
 Version:       @VERSION@
 Release:       @RELEASE@%{?dist}
@@ -45,11 +36,7 @@ BuildArch:   noarch
 %if %{use_epel}
 Requires:      epel-release
 %endif
-%if %{use_dnf}
 Requires:      dnf-command(config-manager)
-%else
-Requires:      yum-utils
-%endif
 
 %description
 Apache Arrow release files.
@@ -61,9 +48,9 @@ Apache Arrow release files.
 distribution=$(. /etc/os-release && echo "${ID}")
 if [ "${distribution}" = "rhel" ]; then
   # We use distribution version explicitly for RHEL because we can't
-  # use symbolic link on Artifactory. CentOS and AlmaLinux use 7 and
-  # 8 but RHEL uses 7Server and 8Server for $releasever. If we can use
-  # symbolic link on Artifactory we can use $releasever directly.
+  # use symbolic link on Artifactory. AlmaLinux uses 8 but RHEL uses
+  # 8Server for $releasever. If we can use symbolic link on
+  # Artifactory we can use $releasever directly.
   distribution_version=$(. /etc/os-release && echo "${VERSION_ID}")
   sed -i'' -e "s/\\\$releasever/${distribution_version}/g" Apache-Arrow.repo
 fi
@@ -88,17 +75,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 if grep -q 'Amazon Linux release 2023' /etc/system-release 2>/dev/null; then
-  %{yum_repository_enable apache-arrow-amazon-linux-2023}
-elif grep -q 'Red Hat Enterprise Linux Server release 7' /etc/system-release 
2>/dev/null; then
-  %{yum_repository_enable apache-arrow-rhel7}
+  dnf config-manager --set-enabled apache-arrow-amazon-linux-2023
 elif grep -q 'Red Hat Enterprise Linux' /etc/system-release 2>/dev/null; then
-  %{yum_repository_enable apache-arrow-rhel}
+  dnf config-manager --set-enabled apache-arrow-rhel
 elif grep -q 'CentOS Stream' /etc/system-release 2>/dev/null; then
-  %{yum_repository_enable apache-arrow-centos-stream}
-elif grep -q 'CentOS' /etc/system-release 2>/dev/null; then
-  %{yum_repository_enable apache-arrow-centos}
+  dnf config-manager --set-enabled apache-arrow-centos-stream
 else
-  %{yum_repository_enable apache-arrow-almalinux}
+  dnf config-manager --set-enabled apache-arrow-almalinux
 fi
 
 %changelog
diff --git 
a/dev/tasks/linux-packages/apache-arrow-release/yum/centos-7/Dockerfile 
b/dev/tasks/linux-packages/apache-arrow-release/yum/centos-7/Dockerfile
deleted file mode 100644
index 2634e7a0d3..0000000000
--- a/dev/tasks/linux-packages/apache-arrow-release/yum/centos-7/Dockerfile
+++ /dev/null
@@ -1,34 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-FROM centos:7
-
-ARG DEBUG
-
-# GH-42128
-# Switch repos to point to to vault.centos.org because Centos Stream 8 is EOL
-RUN sed -i \
-  -e 's/^mirrorlist/#mirrorlist/' \
-  -e 's/^#baseurl/baseurl/' \
-  -e 's/mirror\.centos\.org/vault.centos.org/' \
-  /etc/yum.repos.d/*.repo
-
-RUN \
-  quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") && \
-  yum install -y ${quiet} \
-    rpmdevtools && \
-  yum clean ${quiet} all
diff --git a/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in 
b/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
index 28feb1c6bb..9536ce55cc 100644
--- a/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
+++ b/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
@@ -25,21 +25,10 @@
 %define _rhel %{?rhel:%{rhel}}%{!?rhel:0}
 %define is_rhel (%{_rhel} != 0)
 
-%define is_centos_7 (%{_rhel} == 7 && !%{is_amazon_linux})
-
 %define major_version %(echo @VERSION@ | cut -d. -f 1)
 %define minor_version %(echo @VERSION@ | cut -d. -f 2)
 %define so_version %(expr %{major_version} '*' 100 + %{minor_version})
 
-%define boost_version %( \
-  if [ %{_rhel} -eq 7 ]; then \
-    echo 169; \
-  fi)
-%define cmake_version %( \
-  if [ %{_rhel} -eq 7 ]; then \
-    echo 3; \
-  fi)
-
 %define lz4_requirement %( \
   if [ %{_amzn} -eq 0 ]; then \
     echo ">= 1.8.0"; \
@@ -57,35 +46,22 @@
 %define arrow_cmake_install DESTDIR="%{buildroot}" make -C 
%{arrow_cmake_builddir} install
 %endif
 
-%if %{is_centos_7}
-%define gcc_package devtoolset-11-gcc
-%else
-%define gcc_package gcc
-%endif
-
-%define use_azure (%{_rhel} >= 8 || %{_amzn} >= 2023)
 %define use_bundled_nlohmann_json (%{_rhel} == 8)
-%define use_flight (%{_rhel} >= 8 || %{_amzn} >= 2023)
-%define use_gandiva (%{_rhel} >= 8 || %{_amzn} >= 2023)
-%define use_gcs (%{_rhel} >= 8)
+%define use_gcs (!%{is_amazon_linux})
 %define use_gflags (!%{is_amazon_linux})
 ## TODO: Enable this when glog stopped depending on gflags-devel.
 # %%define use_glog (%%{_rhel} <= 8)
 %define use_glog 0
-%define use_mimalloc (%{_rhel} >= 8)
-# TODO: Enable this. This works on local but is fragile on GitHub Actions and
-# Travis CI.
+%define use_mimalloc (!%{is_amazon_linux})
+# TODO: Enable this. This works on local but is fragile on GitHub Actions.
 # %%define use_s3 (%%{_rhel} >= 8)
 %define use_s3 0
-%define use_vala (%{_rhel} >= 8 || %{is_amazon_linux})
 
-%define have_grpc (%{_rhel} >= 10 || %{_amzn} >= 2023)
-%define have_lz4_libs (%{_rhel} >= 8 || %{_amzn} >= 2023)
+%define have_grpc (%{_rhel} >= 10 || %{is_amazon_linux})
 %define have_orc (%{_rhel} >= 10)
 %define have_rapidjson (%{_rhel} != 8)
-%define have_re2 (%{_rhel} >= 8 || %{_amzn} >= 2023)
-%define have_thrift (%{_rhel} >= 8)
-%define have_utf8proc (%{_rhel} >= 9 || %{_amzn} >= 2023)
+%define have_thrift (!%{is_amazon_linux})
+%define have_utf8proc (%{_rhel} >= 9 || %{is_amazon_linux})
 
 %define enable_glib_doc (%{_rhel} >= 9 || %{is_amazon_linux})
 
@@ -99,16 +75,14 @@ URL:                https://arrow.apache.org/
 Source0:       
https://dist.apache.org/repos/dist/release/@PACKAGE@/@PACKAGE@-%{version}/apache-@PACKAGE@-%{version}.tar.gz
 
 BuildRequires: bison
-BuildRequires: boost%{boost_version}-devel
+BuildRequires: boost-devel
 BuildRequires: brotli-devel
 BuildRequires: bzip2-devel
-%if %{use_flight}
 BuildRequires: c-ares-devel
-%endif
-BuildRequires: cmake%{cmake_version}
+BuildRequires: cmake
 BuildRequires: curl-devel
 BuildRequires: flex
-BuildRequires: %{gcc_package}-c++
+BuildRequires: gcc-c++
 %if %{use_gflags}
 BuildRequires: gflags-devel
 %endif
@@ -123,20 +97,18 @@ BuildRequires:     grpc-plugins
 %if %{use_gcs} && !%{use_bundled_nlohmann_json}
 BuildRequires: json-devel
 %endif
-%if %{use_azure}
 BuildRequires: libxml2-devel
-%endif
 BuildRequires: libzstd-devel
+BuildRequires: llvm-devel
 BuildRequires: lz4-devel %{lz4_requirement}
+BuildRequires: ncurses-devel
 BuildRequires: ninja-build
 BuildRequires: openssl-devel
 BuildRequires: pkgconfig
 %if %{have_rapidjson}
 BuildRequires: rapidjson-devel
 %endif
-%if %{have_re2}
 BuildRequires: re2-devel
-%endif
 BuildRequires: snappy-devel
 %if %{have_thrift}
 BuildRequires: thrift-devel
@@ -146,15 +118,9 @@ BuildRequires:     utf8proc-devel
 %endif
 BuildRequires: zlib-devel
 
-%if %{use_gandiva}
-BuildRequires: llvm-devel
-BuildRequires: ncurses-devel
-%endif
-
+# For GLib
 BuildRequires: gobject-introspection-devel
-%if %{use_vala}
 BuildRequires: vala
-%endif
 
 %description
 Apache Arrow is a data processing library for analysis.
@@ -166,19 +132,13 @@ Apache Arrow is a data processing library for analysis.
 cpp_build_type=release
 cd cpp
 %arrow_cmake \
-%if %{use_azure}
   -DARROW_AZURE=ON \
-%endif
   -DARROW_BUILD_UTILITIES=ON \
   -DARROW_CSV=ON \
   -DARROW_DATASET=ON \
-%if %{use_flight}
   -DARROW_FLIGHT=ON \
   -DARROW_FLIGHT_SQL=ON \
-%endif
-%if %{use_gandiva}
   -DARROW_GANDIVA=ON \
-%endif
 %if %{use_gcs}
   -DARROW_GCS=ON \
 %endif
@@ -214,12 +174,7 @@ cd c_glib
 %if %{_amzn} >= 2023
   # Do nothing
 %else
-  %if %{is_centos_7}
-    # Meson 0.62.0 or later requires Python 3.7 or later.
-    pip3 install 'meson<0.62.0'
-  %else
-    pip3 install meson
-  %endif
+  pip3 install meson
 %endif
 %if %{enable_glib_doc}
   pip3 install gi-docgen
@@ -233,9 +188,7 @@ meson setup build \
 %if %{enable_glib_doc}
   -Ddoc=true \
 %endif
-%if %{use_vala}
   -Dvapi=true
-%endif
 
 LD_LIBRARY_PATH=$PWD/../cpp/%{arrow_cmake_builddir}/$cpp_build_type \
   meson compile -C build %{?_smp_mflags}
@@ -256,11 +209,7 @@ cd -
 %package -n %{name}%{so_version}-libs
 Summary:       Runtime libraries for Apache Arrow C++
 License:       Apache-2.0
-%if %{have_lz4_libs}
 Requires:      lz4-libs %{lz4_requirement}
-%else
-Requires:      lz4 %{lz4_requirement}
-%endif
 
 %description -n %{name}%{so_version}-libs
 This package contains the libraries for Apache Arrow C++.
@@ -304,9 +253,7 @@ Requires:   liborc-devel
 %if %{have_rapidjson}
 Requires:      rapidjson-devel
 %endif
-%if %{have_re2}
 Requires:      re2-devel
-%endif
 Requires:      snappy-devel
 %if %{have_utf8proc}
 Requires:      utf8proc-devel
@@ -326,9 +273,7 @@ Libraries and header files for Apache Arrow C++.
 %exclude %{_includedir}/arrow/acero/
 %exclude %{_includedir}/arrow/compute/row
 %exclude %{_includedir}/arrow/dataset/
-%if %{use_flight}
 %exclude %{_includedir}/arrow/flight/
-%endif
 %{_libdir}/cmake/Arrow/
 %{_libdir}/libarrow.a
 %{_libdir}/libarrow.so
@@ -440,7 +385,6 @@ Libraries and header files for Apache Arrow dataset.
 %{_libdir}/libarrow_dataset.so
 %{_libdir}/pkgconfig/arrow-dataset.pc
 
-%if %{use_flight}
 %package -n %{name}%{so_version}-flight-libs
 Summary:       C++ library for fast data transport.
 License:       Apache-2.0
@@ -512,9 +456,7 @@ Libraries and header files for Apache Arrow Flight SQL.
 %{_libdir}/libarrow_flight_sql.a
 %{_libdir}/libarrow_flight_sql.so
 %{_libdir}/pkgconfig/arrow-flight-sql.pc
-%endif
 
-%if %{use_gandiva}
 %package -n gandiva%{so_version}-libs
 Summary:       C++ library for compiling and evaluating expressions on Apache 
Arrow data.
 License:       Apache-2.0
@@ -548,7 +490,6 @@ Libraries and header files for Gandiva.
 %{_libdir}/libgandiva.a
 %{_libdir}/libgandiva.so
 %{_libdir}/pkgconfig/gandiva.pc
-%endif
 
 %package -n parquet%{so_version}-libs
 Summary:       Runtime libraries for Apache Parquet C++
@@ -630,9 +571,7 @@ Libraries and header files for Apache Arrow GLib.
 %license LICENSE.txt NOTICE.txt
 %{_datadir}/arrow-glib/example/
 %{_datadir}/gir-1.0/Arrow-*.gir
-%if %{use_vala}
 %{_datadir}/vala/vapi/arrow-glib.*
-%endif
 %{_includedir}/arrow-glib/
 %{_libdir}/libarrow-glib.a
 %{_libdir}/libarrow-glib.so
@@ -687,9 +626,7 @@ Libraries and header files for Apache Arrow Dataset GLib.
 %doc README.md
 %license LICENSE.txt NOTICE.txt
 %{_datadir}/gir-1.0/ArrowDataset-*.gir
-%if %{use_vala}
 %{_datadir}/vala/vapi/arrow-dataset-glib.*
-%endif
 %{_includedir}/arrow-dataset-glib/
 %{_libdir}/libarrow-dataset-glib.a
 %{_libdir}/libarrow-dataset-glib.so
@@ -710,7 +647,6 @@ Documentation for Apache Arrow dataset GLib.
 %{_docdir}/arrow-dataset-glib/
 %endif
 
-%if %{use_flight}
 %package -n %{name}%{so_version}-flight-glib-libs
 Summary:       Runtime libraries for Apache Arrow Flight GLib
 License:       Apache-2.0
@@ -742,9 +678,7 @@ Libraries and header files for Apache Arrow Flight GLib.
 %doc README.md
 %license LICENSE.txt NOTICE.txt
 %{_datadir}/gir-1.0/ArrowFlight-*.gir
-%if %{use_vala}
 %{_datadir}/vala/vapi/arrow-flight-glib.*
-%endif
 %{_includedir}/arrow-flight-glib/
 %{_libdir}/libarrow-flight-glib.a
 %{_libdir}/libarrow-flight-glib.so
@@ -796,9 +730,7 @@ Libraries and header files for Apache Arrow Flight SQL GLib.
 %doc README.md
 %license LICENSE.txt NOTICE.txt
 %{_datadir}/gir-1.0/ArrowFlightSQL-*.gir
-%if %{use_vala}
 %{_datadir}/vala/vapi/arrow-flight-sql-glib.*
-%endif
 %{_includedir}/arrow-flight-sql-glib/
 %{_libdir}/libarrow-flight-sql-glib.a
 %{_libdir}/libarrow-flight-sql-glib.so
@@ -815,12 +747,10 @@ Documentation for Apache Arrow Flight SQL GLib.
 %defattr(-,root,root,-)
 %doc README.md
 %license LICENSE.txt NOTICE.txt
-  %if %{enable_glib_doc}
+%if %{enable_glib_doc}
 %{_docdir}/arrow-flight-sql-glib/
-  %endif
 %endif
 
-%if %{use_gandiva}
 %package -n gandiva%{so_version}-glib-libs
 Summary:       Runtime libraries for Gandiva GLib
 License:       Apache-2.0
@@ -852,9 +782,7 @@ Libraries and header files for Gandiva GLib.
 %doc README.md
 %license LICENSE.txt NOTICE.txt
 %{_datadir}/gir-1.0/Gandiva-*.gir
-%if %{use_vala}
 %{_datadir}/vala/vapi/gandiva-glib.*
-%endif
 %{_includedir}/gandiva-glib/
 %{_libdir}/libgandiva-glib.a
 %{_libdir}/libgandiva-glib.so
@@ -871,9 +799,8 @@ Documentation for Gandiva GLib.
 %defattr(-,root,root,-)
 %doc README.md
 %license LICENSE.txt NOTICE.txt
-  %if %{enable_glib_doc}
+%if %{enable_glib_doc}
 %{_docdir}/gandiva-glib/
-  %endif
 %endif
 
 %package -n parquet%{so_version}-glib-libs
@@ -907,9 +834,7 @@ Libraries and header files for Apache Parquet GLib.
 %doc README.md
 %license LICENSE.txt NOTICE.txt
 %{_datadir}/gir-1.0/Parquet-*.gir
-%if %{use_vala}
 %{_datadir}/vala/vapi/parquet-glib.*
-%endif
 %{_includedir}/parquet-glib/
 %{_libdir}/libparquet-glib.a
 %{_libdir}/libparquet-glib.so
diff --git a/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile 
b/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile
deleted file mode 100644
index 278dbab4c4..0000000000
--- a/dev/tasks/linux-packages/apache-arrow/yum/centos-7/Dockerfile
+++ /dev/null
@@ -1,86 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-ARG FROM=centos:7
-FROM ${FROM}
-
-ENV \
-  SCL=devtoolset-11
-
-ARG DEBUG
-
-# GH-42128
-# Switch repos to point to to vault.centos.org because CentOS 7 is EOL
-RUN sed -i \
-  -e 's/^mirrorlist/#mirrorlist/' \
-  -e 's/^#baseurl/baseurl/' \
-  -e 's/mirror\.centos\.org/vault.centos.org/' \
-  /etc/yum.repos.d/*.repo
-
-RUN \
-  quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") && \
-  yum update -y ${quiet} && \
-  yum install -y ${quiet} \
-    centos-release-scl-rh \
-    epel-release && \
-  sed -i \
-    -e 's/^mirrorlist/#mirrorlist/' \
-    -e 's/^#baseurl/baseurl/' \
-    -e 's/mirror\.centos\.org/vault.centos.org/' \
-    /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo && \
-  yum install -y ${quiet} \
-    ${SCL}-gcc-c++ \
-    ${SCL}-make \
-    bison \
-    boost169-devel \
-    brotli-devel \
-    bzip2-devel \
-    ccache \
-    cmake3 \
-    curl-devel \
-    flex \
-    gflags-devel \
-    git \
-    glog-devel \
-    gobject-introspection-devel \
-    json-devel \
-    libxml2-devel \
-    libzstd-devel \
-    lz4-devel \
-    ninja-build \
-    openssl-devel \
-    pkg-config \
-    python36 \
-    rapidjson-devel \
-    rpmdevtools \
-    snappy-devel \
-    tar \
-    thrift-devel \
-    vala \
-    which \
-    zlib-devel && \
-  yum clean ${quiet} all
-
-ARG cmake=3.26.0
-RUN curl -L \
-    
"https://github.com/Kitware/CMake/releases/download/v${cmake}/cmake-${cmake}-linux-$(uname
 -m).tar.gz" | \
-    tar -xzf - --directory /usr/local --strip-components=1 && \
-    ln -fs /usr/local/bin/cmake /usr/bin/cmake3
-
-ENV \
-  BOOST_INCLUDEDIR=/usr/include/boost169 \
-  BOOST_LIBRARYDIR=/usr/lib64/boost169
diff --git a/dev/tasks/linux-packages/package-task.rb 
b/dev/tasks/linux-packages/package-task.rb
index 4096c89463..caaea708e7 100644
--- a/dev/tasks/linux-packages/package-task.rb
+++ b/dev/tasks/linux-packages/package-task.rb
@@ -422,8 +422,6 @@ VERSION=#{@deb_upstream_version}
       # "amazon-linux-2023-arch64",
       "centos-9-stream",
       # "centos-9-stream-aarch64",
-      "centos-7",
-      # "centos-7-aarch64",
     ]
   end
 
diff --git a/docs/source/developers/continuous_integration/crossbow.rst 
b/docs/source/developers/continuous_integration/crossbow.rst
index 2c855ad30e..ba99a1397a 100644
--- a/docs/source/developers/continuous_integration/crossbow.rst
+++ b/docs/source/developers/continuous_integration/crossbow.rst
@@ -207,11 +207,11 @@ Just render without applying or committing the changes:
 
    $ archery crossbow submit --dry-run task_name
 
-Run only ``conda`` package builds and a Linux one:
+Run only ``conda`` package builds and a C++ one:
 
 .. code::
 
-   $ archery crossbow submit --group conda centos-7
+   $ archery crossbow submit --group conda test-ubuntu-24.04-cpp
 
 Run ``wheel`` builds:
 
diff --git a/docs/source/python/integration/extending.rst 
b/docs/source/python/integration/extending.rst
index d4d099bcf4..30750c21bc 100644
--- a/docs/source/python/integration/extending.rst
+++ b/docs/source/python/integration/extending.rst
@@ -474,7 +474,7 @@ Toolchain Compatibility (Linux)
 
 The Python wheels for Linux are built using the
 `PyPA manylinux images <https://quay.io/organization/pypa>`_ which use
-the CentOS ``devtoolset-9``. In addition to the other notes
+the AlmaLinux ``gcc-toolset-12``. In addition to the other notes
 above, if you are compiling C++ using these shared libraries, you will need
 to make sure you use a compatible toolchain as well or you might see a
 segfault during runtime.

Reply via email to