From 602f61976ff43b6b4b6397b0bc02067a73db4259 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Wed, 11 Nov 2026 09:26:02 +0100 Subject: [PATCH] rpm/rhel-10: let dnf downgrade the packages of the ubi image The rhel-10 build fails at `dnf install rpm-build` since the ubi10 image ships rpm 4.19.1.1-25 while the ubi 10 repositories still serve -23: cannot install both rpm-4.19.1.1-23.el10 from ubi-10-for-aarch64-baseos-rpms and rpm-4.19.1.1-25.el10 from @System rpm-build requires the exact version of rpm of its repository, so dnf has to downgrade rpm and its dependent packages. Pass --allowerasing to let it do so. Signed-off-by: Nicolas De Loof --- rpm/rhel-10/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm/rhel-10/Dockerfile b/rpm/rhel-10/Dockerfile index 0cff537a35..7f8bcb8c54 100644 --- a/rpm/rhel-10/Dockerfile +++ b/rpm/rhel-10/Dockerfile @@ -37,7 +37,7 @@ ARG SUITE ENV DISTRO=${DISTRO} ENV SUITE=${SUITE} -RUN dnf install -y rpm-build +RUN dnf install -y --allowerasing rpm-build COPY --link SPECS /root/rpmbuild/SPECS RUN dnf builddep --define '_no_libnftables true' -y /root/rpmbuild/SPECS/*.spec COPY --link --from=golang /usr/local/go /usr/local/go