Use only major version for repo URL in RHEL 9/10.#21596
Merged
Ferroin merged 1 commit intonetdata:masterfrom Jan 21, 2026
Merged
Use only major version for repo URL in RHEL 9/10.#21596Ferroin merged 1 commit intonetdata:masterfrom
Ferroin merged 1 commit intonetdata:masterfrom
Conversation
At least some installs of these versions will set the full release version in the DNF variables instead of only setting the major version, but DNF on these platforms supports just templating in the major version, so do that instead.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes an issue where some RHEL 9/10 installations set the full release version instead of just the major version in DNF variables. The solution uses $releasever_major for repository URLs on RHEL 9+ platforms, and explicitly sets version numbers for Amazon Linux to avoid relying on defaults.
Changes:
- Updated repository configuration to use
$releasever_majorfor RHEL 9+ instead of$releasever - Explicitly set version number for Amazon Linux 2 instead of relying on defaults
- Bumped package version from 5-2 to 5-3 in both RPM and DEB changelogs
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packaging/repoconfig/rpm.changelog | Added changelog entry for version 5-3 documenting the $releasever_major change |
| packaging/repoconfig/deb.changelog | Added version bump entry to keep DEB packages in sync with RPM packages |
| packaging/repoconfig/CMakeLists.txt | Updated PACKAGE_RELEASE to 3, explicitly set DIST_VERSION for Amazon Linux 2, and added $releasever_major for RHEL 9+ |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ilyam8
approved these changes
Jan 20, 2026
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.
Summary
At least some installs of these versions will set the full release version in the DNF variables instead of only setting the major version, but DNF on these platforms supports just templating in the major version, so do that instead.
Test Plan
n/a
Additional Information
Fixes: #21576