From 0051e8167c25ebc9e49e7733557503addc8b6832 Mon Sep 17 00:00:00 2001 From: "Austin S. Hemmelgarn" Date: Thu, 21 Sep 2023 05:20:17 -0400 Subject: Fix package builds on Rocky Linux. (#16026) --- netdata.spec.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/netdata.spec.in b/netdata.spec.in index dc53907ed7..fe4d19bd7b 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -21,13 +21,17 @@ AutoReqProv: yes # Disable go.d.plugin build on outdated golang distros %if 0%{?centos_ver:1} -%if 0%{?centos_ver} >= 8 && 0%{!?almalinux_ver:1} +%if 0%{?centos_ver} >= 8 && 0%{!?almalinux_ver:1} && 0%{!?rocky_ver:1} +%global _golang_build 1 +%else +%if 0%{?centos_ver} >= 10 %global _golang_build 1 %else %global _golang_build 0 %global _missing_build_ids_terminate_build 0 %endif %endif +%endif # Disable eBPF for architectures other than x86 %ifarch x86_64 i386 -- cgit v1.2.3