diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2024-01-25 12:23:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 19:23:54 +0200 |
commit | ea7de2215a822566edb489ae9e8dc73a894b910e (patch) | |
tree | e86d41cc3727b3837794443de975fbab2ad373a4 | |
parent | 542232ff213e2f4ec485770b574a63310a290544 (diff) |
Disable local Go builds in our RPM packages. (#16848)
-rw-r--r-- | netdata.spec.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/netdata.spec.in b/netdata.spec.in index 372a2c67b4..82c4eceb46 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -45,6 +45,7 @@ AutoReqProv: yes %endif # Disable go.d.plugin build on outdated golang distros +%if 0 %if 0%{?centos_ver:1} %if 0%{?centos_ver} >= 10 && 0%{?almalinux_ver:1} && 0%{?rocky_ver:1} %global _golang_build 1 @@ -53,6 +54,7 @@ AutoReqProv: yes %global _missing_build_ids_terminate_build 0 %endif %endif +%endif # Disable eBPF for architectures other than x86 %ifarch x86_64 i386 @@ -263,11 +265,13 @@ BuildRequires: cups-devel # end - cups plugin dependencies # go.d.plugin dependencies +%if 0%{?_golang_build} %if 0%{?suse_version} BuildRequires: go %else BuildRequires: golang %endif +%endif # end - go.d.plugin plugin dependencies # systemd-journal dependencies |