Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 16cea5e

Browse files
committed
CentOS: fix failing repository on aarch64 (arm64)
This repository is only specified in the aarch64 (arm64) images, and therefore was not caught in CI. Bringing back the fix that was previously there, to prevent failures: #9 [stage-1 4/6] RUN yum-builddep -y /root/rpmbuild/SPECS/*.spec #9 0.982 Loaded plugins: fastestmirror, ovl #9 1.177 Enabling base-source repository #9 1.177 Enabling extras-source repository #9 1.178 Enabling updates-source repository #9 1.179 Loading mirror speeds from cached hostfile #9 1.181 * base: d36uatko69830t.cloudfront.net #9 1.182 * extras: d36uatko69830t.cloudfront.net #9 1.182 * updates: d36uatko69830t.cloudfront.net #9 2.272 http://vault.centos.org/altarch/7/extras/Source/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found #9 2.272 Trying other mirror. #9 2.273 To address this issue please refer to the below wiki article Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 170199f) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: eae0236c6e07ab7d29c8d0cf4a56265d5f1afc48 Component: packaging
1 parent 09b724c commit 16cea5e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

components/packaging/rpm/centos-7/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ ARG DISTRO
1717
ARG SUITE
1818
ENV DISTRO=${DISTRO}
1919
ENV SUITE=${SUITE}
20+
21+
# In aarch64 (arm64) images, the altarch repo is specified as repository, but
22+
# failing, so replace the URL.
23+
RUN if [ -f /etc/yum.repos.d/CentOS-Sources.repo ]; then sed -i 's/altarch/centos/g' /etc/yum.repos.d/CentOS-Sources.repo; fi
2024
RUN yum install -y rpm-build rpmlint
2125
COPY SPECS /root/rpmbuild/SPECS
2226
RUN yum-builddep -y /root/rpmbuild/SPECS/*.spec

components/packaging/rpm/centos-8/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ ARG DISTRO
1717
ARG SUITE
1818
ENV DISTRO=${DISTRO}
1919
ENV SUITE=${SUITE}
20+
21+
# In aarch64 (arm64) images, the altarch repo is specified as repository, but
22+
# failing, so replace the URL.
23+
RUN if [ -f /etc/yum.repos.d/CentOS-Sources.repo ]; then sed -i 's/altarch/centos/g' /etc/yum.repos.d/CentOS-Sources.repo; fi
2024
RUN yum install -y rpm-build rpmlint yum-utils
2125
RUN yum-config-manager --set-enabled PowerTools
2226
COPY SPECS /root/rpmbuild/SPECS

0 commit comments

Comments
 (0)