Skip to content

Apache DataFusion SQL Query Engine

ARROW-10786: [Packaging][RPM] Drop support for CentOS 6

Sutou Kouheieab9097bd4fa
diff --git a/dev/release/binary-task.rb b/dev/release/binary-task.rb
index 89d601d8b9..dda0c62c31 100644
--- a/dev/release/binary-task.rb
+++ b/dev/release/binary-task.rb
@@ -1406,7 +1406,6 @@ APT::FTPArchive::Release::Description "#{apt_repository_description}";
def available_yum_targets
[
- ["centos", "6"],
["centos", "7"],
["centos", "8"],
]
diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh
index 0cb9e1b8b1..295ebdeb7e 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -167,8 +167,7 @@ test_apt() {
}
test_yum() {
- for target in "centos:6" \
- "centos:7" \
+ for target in "centos:7" \
"arm64v8/centos:7" \
"centos:8" \
"arm64v8/centos:8"; do
diff --git a/dev/release/verify-yum.sh b/dev/release/verify-yum.sh
index 059bdf33c8..b99f8fdd51 100755
--- a/dev/release/verify-yum.sh
+++ b/dev/release/verify-yum.sh
@@ -37,13 +37,8 @@ if [ "${IS_RC}" = "yes" ]; then
bintray_base_url="${bintray_base_url}-rc"
fi
-if [ -f /etc/os-release ]; then
- distribution=$(. /etc/os-release && echo "${ID}")
- distribution_version=$(. /etc/os-release && echo "${VERSION_ID}")
-else
- distribution=centos
- distribution_version=6
-fi
+distribution=$(. /etc/os-release && echo "${ID}")
+distribution_version=$(. /etc/os-release && echo "${VERSION_ID}")
cmake_pakcage=cmake
cmake_command=cmake
@@ -53,15 +48,6 @@ have_glib=yes
have_parquet=yes
install_command="dnf install -y --enablerepo=PowerTools"
case "${distribution}-${distribution_version}" in
- centos-6)
- cmake_pakcage=cmake3
- cmake_command=cmake3
- have_flight=no
- have_gandiva=no
- have_glib=no
- have_parquet=no
- install_command="yum install -y"
- ;;
centos-7)
cmake_pakcage=cmake3
cmake_command=cmake3
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 299b78079c..43bdfa3654 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
@@ -54,7 +54,7 @@ Apache Arrow release files.
%build
# We use distribution version explicitly because we can't use symbolic link
-# on Bintray. CentOS uses 6, 7 and 8 but RHEL uses 6Server, 7Server and 8Server
+# on Bintray. CentOS uses 7 and 8 but RHEL uses 7Server and 8Server
# for $releasever. If we can use symbolic link on Bintray, we can use
# $releasever directly.
distribution_version=$(cut -d: -f5 /etc/system-release-cpe)
diff --git a/dev/tasks/linux-packages/apache-arrow-release/yum/centos-6/Dockerfile b/dev/tasks/linux-packages/apache-arrow-release/yum/centos-6/Dockerfile
deleted file mode 100644
index 2c0dd05991..0000000000
--- a/dev/tasks/linux-packages/apache-arrow-release/yum/centos-6/Dockerfile
+++ /dev/null
@@ -1,28 +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:6
-
-ARG DEBUG
-
-RUN \
- quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") && \
- yum install -y ${quiet} epel-release && \
- yum install -y ${quiet} \
- rpm-build \
- 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 77547427a6..0428b3f4d0 100644
--- a/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
+++ b/dev/tasks/linux-packages/apache-arrow/yum/arrow.spec.in
@@ -28,9 +28,7 @@
echo 3; \
fi)
%define python_version %( \
- if [ "%{_centos_ver}" = 6 ]; then \
- echo 34; \
- elif [ "%{_centos_ver}" = 7 ]; then \
+ if [ "%{_centos_ver}" = 7 ]; then \
echo 36; \
else \
echo 3; \
@@ -39,16 +37,13 @@
%define use_flight (%{_centos_ver} >= 8)
%define use_gandiva (%{_centos_ver} >= 8 && %{_arch} != "aarch64")
%define use_ninja (%{_centos_ver} >= 8)
-%define use_parquet (%{_centos_ver} >= 7)
# TODO: Enable this. This works on local but is fragile on GitHub Actions and
# Travis CI.
# %define use_s3 (%{_centos_ver} >= 8)
%define use_s3 0
-%define use_glib (%{_centos_ver} >= 7)
%define use_meson (%{_centos_ver} >= 8)
-%define have_brotli (%{_centos_ver} >= 7)
%define have_rapidjson (%{_centos_ver} == 7)
%define have_re2 (%{_centos_ver} >= 8)
%define have_utf8proc (%{_centos_ver} == 7)
@@ -63,27 +58,21 @@ URL: https://arrow.apache.org/
Source0: https://dist.apache.org/repos/dist/release/@PACKAGE@/@PACKAGE@-%{version}/apache-@PACKAGE@-%{version}.tar.gz
BuildRequires: bison
-%if %{_centos_ver} >= 7
BuildRequires: boost%{boost_version}-devel
-%endif
-%if %{have_brotli}
BuildRequires: brotli-devel
-%endif
BuildRequires: bzip2-devel
BuildRequires: cmake%{cmake_version}
%if %{use_s3}
BuildRequires: curl-devel
%endif
+BuildRequires: flex
BuildRequires: gcc-c++
-%if %{_centos_ver} >= 7
BuildRequires: gflags-devel
-%endif
BuildRequires: git
-%if %{_centos_ver} >= 7
BuildRequires: glog-devel
-%endif
BuildRequires: libzstd-devel
BuildRequires: lz4-devel
+BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: python%{python_version}-devel
BuildRequires: python%{python_version}-numpy
@@ -99,27 +88,16 @@ BuildRequires: utf8proc-devel
%endif
BuildRequires: zlib-devel
-%if %{use_parquet}
-BuildRequires: openssl-devel
-%endif
-
%if %{use_gandiva}
BuildRequires: llvm-devel
BuildRequires: ncurses-devel
%endif
-%if %{use_parquet}
-BuildRequires: bison
-BuildRequires: flex
-%endif
-
-%if %{use_glib}
- %if !%{use_meson}
+%if !%{use_meson}
BuildRequires: autoconf-archive
- %endif
+%endif
BuildRequires: gobject-introspection-devel
BuildRequires: gtk-doc
-%endif
%description
Apache Arrow is a data processing library for analysis.
@@ -139,9 +117,7 @@ cd cpp/build
-DARROW_GANDIVA=ON \
%endif
-DARROW_ORC=ON \
-%if %{use_parquet}
-DARROW_PARQUET=ON \
-%endif
-DARROW_PLASMA=ON \
-DARROW_PYTHON=ON \
%if %{use_s3}
@@ -155,9 +131,7 @@ cd cpp/build
-DARROW_WITH_ZSTD=ON \
-DCMAKE_BUILD_TYPE=$cpp_build_type \
-DCMAKE_UNITY_BUILD=ON \
-%if %{use_parquet}
-DPARQUET_REQUIRE_ENCRYPTION=ON \
-%endif
-DPythonInterp_FIND_VERSION=ON \
-DPythonInterp_FIND_VERSION_MAJOR=3 \
%if %{use_ninja}
@@ -171,9 +145,8 @@ make %{?_smp_mflags}
%endif
cd -
-%if %{use_glib}
cd c_glib
- %if %{use_meson}
+%if %{use_meson}
pip3 install meson
meson setup build \
--default-library=both \
@@ -183,7 +156,7 @@ meson setup build \
-Darrow_cpp_build_type=$cpp_build_type \
-Dgtk_doc=true
LD_LIBRARY_PATH=$PWD/../cpp/build/$cpp_build_type ninja -C build
- %else
+%else
./autogen.sh
%configure \
--with-arrow-cpp-build-dir=$PWD/../cpp/build \
@@ -197,25 +170,22 @@ ld_library_path=$ld_library_path:$PWD/parquet-glib/.libs/
ld_library_path=$ld_library_path:$PWD/plasma-glib/.libs/
ld_library_path=$ld_library_path:$PWD/../cpp/build/$cpp_build_type
LD_LIBRARY_PATH=$ld_library_path make %{?_smp_mflags}
- %endif
-cd -
%endif
+cd -
%install
cpp_build_type=release
-%if %{use_glib}
cd c_glib
- %if %{use_meson}
+%if %{use_meson}
DESTDIR=$RPM_BUILD_ROOT ninja -C build install
ninja -C build clean
- %else
+%else
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT%{_libdir}/*.la
make clean
- %endif
-cd -
%endif
+cd -
cd cpp/build
%if %{use_ninja}
@@ -230,18 +200,12 @@ cd -
%package libs
Summary: Runtime libraries for Apache Arrow C++
License: Apache-2.0
-%if %{_centos_ver} >= 7
Requires: boost%{boost_version}-system
Requires: boost%{boost_version}-filesystem
Requires: boost%{boost_version}-regex
-%endif
-%if %{have_brotli}
Requires: brotli
-%endif
-%if %{_centos_ver} >= 7
Requires: gflags
Requires: glog
-%endif
Requires: libzstd
Requires: lz4
%if %{have_re2}
@@ -266,15 +230,11 @@ This package contains the libraries for Apache Arrow C++.
Summary: Libraries and header files for Apache Arrow C++
License: Apache-2.0
Requires: %{name}-libs = %{version}-%{release}
-%if %{have_brotli}
Requires: brotli-devel
-%endif
Requires: bzip2-devel
Requires: libzstd-devel
Requires: lz4-devel
-%if %{use_parquet}
Requires: openssl-devel
-%endif
%if %{have_rapidjson}
Requires: rapidjson-devel
%endif
@@ -303,9 +263,7 @@ Libraries and header files for Apache Arrow C++.
%{_libdir}/cmake/arrow/ArrowOptions.cmake
%{_libdir}/cmake/arrow/ArrowTargets*.cmake
%{_libdir}/cmake/arrow/FindArrow.cmake
-%if %{have_brotli}
%{_libdir}/cmake/arrow/FindBrotli.cmake
-%endif
%{_libdir}/cmake/arrow/FindLz4.cmake
%if %{have_re2}
%{_libdir}/cmake/arrow/FindRE2.cmake
@@ -548,7 +506,6 @@ Libraries and header files for Plasma in-memory object store.
%{_libdir}/libplasma.so
%{_libdir}/pkgconfig/plasma*.pc
-%if %{use_parquet}
%package -n parquet-libs
Summary: Runtime libraries for Apache Parquet C++
License: Apache-2.0
@@ -583,9 +540,7 @@ Libraries and header files for Apache Parquet C++.
%{_libdir}/libparquet.a
%{_libdir}/libparquet.so
%{_libdir}/pkgconfig/parquet*.pc
-%endif
-%if %{use_glib}
%package glib-libs
Summary: Runtime libraries for Apache Arrow GLib
License: Apache-2.0
@@ -680,7 +635,7 @@ Documentation for Apache Arrow dataset GLib.
%doc README.md LICENSE.txt NOTICE.txt
%{_datadir}/gtk-doc/html/arrow-dataset-glib/
- %if %{use_gandiva}
+%if %{use_gandiva}
%package -n gandiva-glib-libs
Summary: Runtime libraries for Gandiva GLib
License: Apache-2.0
@@ -725,7 +680,7 @@ Documentation for Gandiva GLib.
%defattr(-,root,root,-)
%doc README.md LICENSE.txt NOTICE.txt
%{_datadir}/gtk-doc/html/gandiva-glib/
- %endif
+%endif
%package -n plasma-glib-libs
Summary: Runtime libraries for Plasma GLib
@@ -772,7 +727,6 @@ Documentation for Plasma GLib.
%doc README.md LICENSE.txt NOTICE.txt
%{_datadir}/gtk-doc/html/plasma-glib/
- %if %{use_parquet}
%package -n parquet-glib-libs
Summary: Runtime libraries for Apache Parquet GLib
License: Apache-2.0
@@ -817,8 +771,6 @@ Documentation for Apache Parquet GLib.
%defattr(-,root,root,-)
%doc README.md LICENSE.txt NOTICE.txt
%{_datadir}/gtk-doc/html/parquet-glib/
- %endif
-%endif
%changelog
* Mon Oct 12 2020 Krisztián Szűcs <[email protected]> - 2.0.0-1
diff --git a/dev/tasks/linux-packages/apache-arrow/yum/centos-6/Dockerfile b/dev/tasks/linux-packages/apache-arrow/yum/centos-6/Dockerfile
deleted file mode 100644
index fbfa533d4b..0000000000
--- a/dev/tasks/linux-packages/apache-arrow/yum/centos-6/Dockerfile
+++ /dev/null
@@ -1,66 +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:6
-
-ARG DEBUG
-
-ENV \
- DEVTOOLSET_VERSION=8 \
- LIBARCHIVE_SRPM_BASE=libarchive-3.1.2-10.el7_2.src.rpm \
- SRPM_DOWNLOAD_URL=http://vault.centos.org/7.6.1810/os/Source/SPackages
-
-RUN \
- quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") && \
- yum update -y ${quiet} && \
- yum install -y ${quiet} \
- epel-release && \
- yum install -y \
- autoconf268 \
- wget \
- yum-utils && \
- yum groupinstall -y ${quiet} "Development Tools" && \
- wget ${quiet} ${SRPM_DOWNLOAD_URL}/${LIBARCHIVE_SRPM_BASE} && \
- yum-builddep -y ${quiet} --nogpgcheck ${LIBARCHIVE_SRPM_BASE} && \
- rpm -i ${quiet} ${LIBARCHIVE_SRPM_BASE} && \
- sed -i'' -e 's/^run_testsuite$/:/g' ~/rpmbuild/SPECS/libarchive.spec && \
- AUTOM4TE=autom4te268 \
- rpmbuild -bb ${quiet} \
- ~/rpmbuild/SPECS/libarchive.spec && \
- yum install -y ${quiet} ~/rpmbuild/RPMS/*/libarchive-3.*.rpm && \
- rm -rf ${LIBARCHIVE_SRPM_BASE} ~/rpmbuild/ && \
- yum install -y ${quiet} \
- centos-release-scl && \
- yum install -y ${quiet} \
- cmake3 \
- bzip2-devel \
- devtoolset-${DEVTOOLSET_VERSION} \
- git \
- gobject-introspection-devel \
- gtk-doc \
- libzstd-devel \
- lz4-devel \
- pkg-config \
- python34 \
- python34-devel \
- python34-numpy \
- rpm-build \
- rpmdevtools \
- snappy-devel \
- tar \
- zlib-devel && \
- yum clean ${quiet} all
diff --git a/dev/tasks/linux-packages/package-task.rb b/dev/tasks/linux-packages/package-task.rb
index f15ad07504..712a690583 100644
--- a/dev/tasks/linux-packages/package-task.rb
+++ b/dev/tasks/linux-packages/package-task.rb
@@ -370,7 +370,6 @@ VERSION=#{@deb_upstream_version}
# Disable aarch64 targets by default for now
# because they require some setups on host.
[
- "centos-6",
"centos-7",
# "centos-7-aarch64",
"centos-8",
diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml
index b955948325..4063b99cad 100644
--- a/dev/tasks/tasks.yml
+++ b/dev/tasks/tasks.yml
@@ -1182,28 +1182,6 @@ tasks:
- libparquet-glib300_{no_rc_version}-1_[a-z0-9]+.deb
- libparquet300_{no_rc_version}-1_[a-z0-9]+.deb
- centos-6-amd64:
- ci: github
- template: linux-packages/github.linux.amd64.yml
- params:
- build_task: "yum:build"
- target: "centos-6"
- upload_extensions:
- - .rpm
- artifacts:
- - apache-arrow-release-{no_rc_version}-1.el6.noarch.rpm
- - apache-arrow-release-{no_rc_version}-1.el6.src.rpm
- - arrow-{no_rc_version}-1.el6.src.rpm
- - arrow-debuginfo-{no_rc_version}-1.el6.[a-z0-9_]+.rpm
- - arrow-devel-{no_rc_version}-1.el6.[a-z0-9_]+.rpm
- - arrow-libs-{no_rc_version}-1.el6.[a-z0-9_]+.rpm
- - arrow-dataset-devel-{no_rc_version}-1.el6.[a-z0-9_]+.rpm
- - arrow-dataset-libs-{no_rc_version}-1.el6.[a-z0-9_]+.rpm
- - arrow-python-devel-{no_rc_version}-1.el6.[a-z0-9_]+.rpm
- - arrow-python-libs-{no_rc_version}-1.el6.[a-z0-9_]+.rpm
- - plasma-devel-{no_rc_version}-1.el6.[a-z0-9_]+.rpm
- - plasma-libs-{no_rc_version}-1.el6.[a-z0-9_]+.rpm
-
centos-7-amd64:
ci: github
template: linux-packages/github.linux.amd64.yml