Skip to content

Commit

Permalink
apacheGH-43122: [CI][Packaging][RPM][CentOS] Use vault.centos.org for…
Browse files Browse the repository at this point in the history
… SCL (apache#43127)

### Rationale for this change

We can't use http://mirrorlist.centos.org because CentOS 7 reached EOL.

### What changes are included in this PR?

Use https://vault.centos.org/ instead.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#43122

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
  • Loading branch information
kou authored Jul 3, 2024
1 parent fd6bf5a commit beaa47b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dev/release/verify-yum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ echo "::group::Test Apache Arrow C++"
${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} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV \
ARG DEBUG

# GH-42128
# Switch repos to point to to vault.centos.org because Centos 7 is EOL
# 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/' \
Expand All @@ -37,6 +37,11 @@ RUN \
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 \
Expand Down

0 comments on commit beaa47b

Please sign in to comment.