Repository navigation
fix(yum): pin PGDG repo baseurl to the OS major version - #91
Merged
Merged
Conversation
The pgdg-redhat-repo package (42.0-70) now builds its baseurl from $releasever_major.$releasever_minor. CentOS Stream reports $releasever as a bare major version, so $releasever_minor expands empty and dnf requests rhel-9.-x86_64, which 404s. Alma and Rocky carry a minor version and are unaffected. Rewrite the repo file after installing it so every baseurl uses the per-major directory, which exists upstream for EL9 and EL10 on both x86_64 and aarch64. Verified with make integration-test IMAGE=quay.io/centos/centos:stream9 SCRIPT=bootstrap-yum.sh on arm64. Closes #90 Assisted-by: ClaudeCode:claude-fable-5-1 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Ronny Trommer <ronny@no42.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #90
The PGDG repo package 42.0-70 builds its baseurl from
$releasever_major.$releasever_minor. CentOS Stream reports$releaseveras a bare major version, so the minor part expands empty and dnf requestsrhel-9.-x86_64, which 404s. Alma and Rocky carry a minor version and still work. The scheduled main runs have failed on the four CentOS legs since 2026-09-28, and #89 fails for the same reason.After installing the repo rpm,
bootstrap-yum.shnow rewrites every baseurl inpgdg-redhat-all.repoto the per-major directory, which exists upstream for EL9 and EL10 on x86_64 and aarch64.Verified locally on arm64:
make lintandmake integration-test IMAGE=quay.io/centos/centos:stream9 SCRIPT=bootstrap-yum.sh(PostgreSQL and OpenNMS active, Web UI 302).🤖 Generated with Claude Code