Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Ferroin
Copy link
Member

@Ferroin Ferroin commented Jan 22, 2026

Summary

Instead of using it on any version of RHEL greater than 8.0, it needs to be used for any version greater than or equal to 9.0.

Test Plan

Confirm that repository configuration packages for RHEL 8 don’t use $releasever_major. Packages can be built from this branch by running the packaging/repoconfig/build-rpm.sh script on a Rocky Linux 8 or Alma Linux 8 system (CentOS Stream 8 WILL NOT WORK FOR THIS).

Additional Information

Fixes: #21609


Summary by cubic

Use $releasever_major in RPM repo URLs only on RHEL 9+, keeping RHEL 8 on $releasever. Also drop yum-plugin-priorities for RHEL 8 (default to epel-release) and bump the repo config package to 5-4, fixing #21609.

Written for commit 1ba2fa8. Summary will update on new commits.

Instead of using it on any version of RHEL greater than 8.0, it needs
to be used for any version greater than or equal to 9.0.
@github-actions github-actions bot added the area/packaging Packaging and operating systems support label Jan 22, 2026
@Ferroin Ferroin marked this pull request as ready for review January 22, 2026 12:30
@Ferroin Ferroin requested review from a team and vkalintiris as code owners January 22, 2026 12:30
@Ferroin Ferroin requested a review from a team January 22, 2026 12:32
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 3 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="packaging/repoconfig/rpm.changelog">

<violation number="1" location="packaging/repoconfig/rpm.changelog:1">
P2: Changelog entry is missing the release version suffix (e.g., "5-4"), which breaks the standard RPM changelog format used in this file.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the logic for determining when to use $releasever_major in RHEL repository configurations. Previously, it was incorrectly applied to RHEL versions > 8.0 (which included RHEL 8.x), but it should only be used for RHEL >= 9.0.

Changes:

  • Updated version comparison logic to use $releasever_major only for RHEL >= 9, keeping RHEL 8 on $releasever
  • Removed yum-plugin-priorities dependency for RHEL 8 (now only required for RHEL < 8)
  • Bumped package release version from 5-3 to 5-4

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packaging/repoconfig/CMakeLists.txt Updated RHEL version comparison logic and package dependencies; bumped PACKAGE_RELEASE to 4
packaging/repoconfig/rpm.changelog Added changelog entry for the logic fix (missing version number)
packaging/repoconfig/deb.changelog Added version 5-4 entry to keep in sync with RPM packages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
@Ferroin Ferroin merged commit 722d85b into netdata:master Jan 22, 2026
170 checks passed
@Ferroin Ferroin deleted the rpm-repoconfig-fix branch January 22, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/packaging Packaging and operating systems support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Repository down or not valid

2 participants