Skip to content

rpm-init: let dnf downgrade packages of a ubi image ahead of its repositories - #572

Closed
ndeloof wants to merge 1 commit into
docker:mainfrom
ndeloof:rhel-dnf-allowerasing
Closed

ndeloof wants to merge 1 commit into
docker:mainfrom
ndeloof:rhel-dnf-allowerasing

Conversation

@ndeloof

@ndeloof ndeloof commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

What this PR does, in one sentence

The packages of the rhel* targets are built again, because rpm-init now lets dnf downgrade the packages of a ubi image which is ahead of its repositories.

Context

The rhel10 build of every package currently fails in rpm-init, on amd64 and arm64 (for instance the release-compose run of Compose v5.7.1: https://github.com/docker/packaging/actions/runs/42984423383). The ubi10 image ships rpm-4.19.1.1-25.el10, while the ubi 10 repositories still serve -23, and rpm-build requires the exact version of rpm of its repository:

Problem: cannot install both rpm-4.19.1.1-23.el10.aarch64 from ubi-10-for-aarch64-baseos-rpms and rpm-4.19.1.1-25.el10.aarch64 from @System

This is a mismatch on the Red Hat side, and the error is the same whenever the job is run again: docker run registry.access.redhat.com/ubi10/ubi dnf install -y git rpm-build dnf-plugins-core reproduces it.

What the PR brings

  • dnf install of the rhel* case of rpm-init is run with --allowerasing, so that dnf downgrades rpm (and the packages depending on its exact version) to what the repositories provide, then installs rpm-build. I ran it in ubi10/ubi (arm64): the command succeeds and leaves rpm and rpm-build in 4.19.1.1-23.el10.
  • When the image and its repositories agree, nothing changes.

Not changed: the other distributions, and the packages which get built.

🤖 Generated with Claude Code

…sitories

The rhel10 build of every package fails in rpm-init 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 <nicolas.deloof@gmail.com>
@ndeloof
ndeloof requested a review from a team as a code owner November 11, 2026 08:26
@thaJeztah

Copy link
Copy Markdown
Member

Looks like @crazy-max may have fixed the remaining failures in #574 - so we may merge that one (if it goes green)

@thaJeztah

Copy link
Copy Markdown
Member

Closing as the other PR was merged (thanks!!)

@thaJeztah thaJeztah closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants