You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ra...@apache.org on 2024/07/03 14:17:46 UTC

(arrow) branch main updated: GH-43119: [CI][Packaging] Update manylinux 2014 CentOS repos that have been deprecated (#43121)

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 e59832fb05 GH-43119: [CI][Packaging] Update manylinux 2014 CentOS repos that have been deprecated (#43121)
e59832fb05 is described below

commit e59832fb05dc40a85fa63297c77c8f134c9ac8e0
Author: Raúl Cumplido <ra...@gmail.com>
AuthorDate: Wed Jul 3 16:17:38 2024 +0200

    GH-43119: [CI][Packaging] Update manylinux 2014 CentOS repos that have been deprecated (#43121)
    
    ### Rationale for this change
    
    Jobs are failing to find mirrorlist.centos.org
    
    ### What changes are included in this PR?
    
    Updating repos based on solution from: https://github.com/apache/arrow/issues/43119#issuecomment-2203534492
    
    ### Are these changes tested?
    
    Via archery
    
    ### Are there any user-facing changes?
    No
    * GitHub Issue: #43119
    
    Lead-authored-by: Raúl Cumplido <ra...@gmail.com>
    Co-authored-by: Sutou Kouhei <ko...@clear-code.com>
    Co-authored-by: Sutou Kouhei <ko...@cozmixng.org>
    Signed-off-by: Raúl Cumplido <ra...@gmail.com>
---
 ci/docker/centos-7-cpp.dockerfile           | 14 ++++++++++++++
 ci/docker/python-wheel-manylinux.dockerfile | 12 ++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/ci/docker/centos-7-cpp.dockerfile b/ci/docker/centos-7-cpp.dockerfile
index 8c1893cbbb..1f30eed694 100644
--- a/ci/docker/centos-7-cpp.dockerfile
+++ b/ci/docker/centos-7-cpp.dockerfile
@@ -17,11 +17,25 @@
 
 FROM centos:centos7
 
+# Update mirrors to use vault.centos.org as CentOS 7
+# is EOL since 2024-06-30
+RUN sed -i \
+      -e 's/^mirrorlist/#mirrorlist/' \
+      -e 's/^#baseurl/baseurl/' \
+      -e 's/mirror\.centos\.org/vault.centos.org/' \
+      /etc/yum.repos.d/*.repo
+
 # devtoolset is required for C++17
 RUN \
   yum install -y \
     centos-release-scl \
     epel-release && \
+  sed -i \
+    -e 's/^mirrorlist/#mirrorlist/' \
+    -e 's/^#baseurl/baseurl/' \
+    -e 's/^# baseurl/baseurl/' \
+    -e 's/mirror\.centos\.org/vault.centos.org/' \
+    /etc/yum.repos.d/CentOS-SCLo-scl*.repo && \
   yum install -y \
     cmake3 \
     curl \
diff --git a/ci/docker/python-wheel-manylinux.dockerfile b/ci/docker/python-wheel-manylinux.dockerfile
index 68d4b27d2c..cb39667af1 100644
--- a/ci/docker/python-wheel-manylinux.dockerfile
+++ b/ci/docker/python-wheel-manylinux.dockerfile
@@ -25,6 +25,18 @@ ARG manylinux
 ENV MANYLINUX_VERSION=${manylinux}
 
 # Ensure dnf is installed, especially for the manylinux2014 base
+RUN if [ "${MANYLINUX_VERSION}" = "2014" ]; then \
+      sed -i \
+        -e 's/^mirrorlist/#mirrorlist/' \
+        -e 's/^#baseurl/baseurl/' \
+        -e 's/mirror\.centos\.org/vault.centos.org/' \
+        /etc/yum.repos.d/*.repo; \
+      if [ "${arch}" != "amd64" ]; then \
+        sed -i \
+          -e 's,vault\.centos\.org/centos,vault.centos.org/altarch,' \
+          /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo; \
+      fi; \
+    fi
 RUN yum install -y dnf
 
 # Install basic dependencies