@cryptotaxi247 / netdata-1 / commits / d22446617

Use only major version for repo URL in RHEL 9/10. (#21596)

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.

Austin S. Hemmelgarn committed Jan 21, 2026 at 07:09 UTC d2244661760e11fa59336112e2e5a2745bb235c9
3 files changed +11 -2
packaging/repoconfig/CMakeLists.txt
+3 -2
@@ -10,7 +10,7 @@ list(APPEND DEB_DISTROS debian ubuntu)
10 set(DEB_GPG_KEY_SOURCE "https://repo.netdata.cloud/netdatabot.gpg.key")
11
12 set(PACKAGE_VERSION 5)
13 -set(PACKAGE_RELEASE 2)
13 +set(PACKAGE_RELEASE 3)
14
15 set(CPACK_THREADS 0)
16 set(CPACK_STRIP_FILES NO)
@@ -203,7 +203,7 @@ elseif(${DISTRO} IN_LIST RPM_DISTROS)
203 if(${DISTRO} STREQUAL "amzn")
204 set(DIST_NAME "amazonlinux")
205 if(${DISTRO_VERSION} VERSION_EQUAL 2)
206 - # Nothing to do in this case, defaults work here.
206 + set(DIST_VERSION "2")
207 elseif(${DISTRO_VERSION} VERSION_EQUAL 2023)
208 set(DIST_VERSION "2023")
209 else()
@@ -224,6 +224,7 @@ elseif(${DISTRO} IN_LIST RPM_DISTROS)
224 set(CPACK_RPM_PACKAGE_REQUIRES "yum-plugin-priorities, epel-release")
225 else()
226 set(CPACK_RPM_PACKAGE_REQUIRES "epel-release")
227 + set(DIST_VERSION "$releasever_major")
228 endif()
229 endif()
230
packaging/repoconfig/deb.changelog
+6
@@ -1,3 +1,9 @@
1 +@PKG_NAME@ (5-3) unstable; urgency=medium
2 +
3 + * Version bump to keep in sync with RPM repo packages
4 +
5 + -- Austin Hemmelgarn <austin@netdata.cloud> Tue, 20 Jan 2026 08:35:00 -0500
6 +
7 @PKG_NAME@ (5-2) unstable; urgency=medium
8
9 * Version bump to keep in sync with RPM repo packages
packaging/repoconfig/rpm.changelog
+2
@@ -1,3 +1,5 @@
1 +* Tue Jan 20 2025 Austin Hemmelgarn <austin@netdata.cloud> 5-3
2 +- Use $releasever_major instead of $releasever in repo URLs when supported.
3 * Thu Nov 13 2025 Austin Hemmelgarn <austin@netdata.cloud> 5-2
4 - Fix repository URLs for openSUSE Tumbleweed.
5 * Mon Mar 17 2025 Austin Hemmelgarn <austin@netdata.cloud> 5-1