Disable local Go builds in our RPM packages. (#16848)
Austin S. Hemmelgarn committed
Jan 25, 2024 at 12:23 UTC
ea7de2215a822566edb489ae9e8dc73a894b910e
1 file changed
+4
netdata.spec.in
+4
@@ -45,6 +45,7 @@ AutoReqProv: yes
45
%endif
46
47
# Disable go.d.plugin build on outdated golang distros
48
+%if 0
49
%if 0%{?centos_ver:1}
50
%if 0%{?centos_ver} >= 10 && 0%{?almalinux_ver:1} && 0%{?rocky_ver:1}
51
%global _golang_build 1
@@ -53,6 +54,7 @@ AutoReqProv: yes
54
%global _missing_build_ids_terminate_build 0
55
%endif
56
%endif
57
+%endif
58
59
# Disable eBPF for architectures other than x86
60
%ifarch x86_64 i386
@@ -263,11 +265,13 @@ BuildRequires: cups-devel
265
# end - cups plugin dependencies
266
267
# go.d.plugin dependencies
268
+%if 0%{?_golang_build}
269
%if 0%{?suse_version}
270
BuildRequires: go
271
%else
272
BuildRequires: golang
273
%endif
274
+%endif
275
# end - go.d.plugin plugin dependencies
276
277
# systemd-journal dependencies