summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2024-01-25 12:23:54 -0500
committerTasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com>2024-02-06 16:33:22 +0200
commit4701f1af56ed47a097ed93cd1430787eb368319e (patch)
tree38a7e71de449773a7da74983053a2d925c0353da
parent7de179ba36be05ed9c16502b970512f29a71c351 (diff)
Disable local Go builds in our RPM packages. (#16848)
(cherry picked from commit ea7de2215a822566edb489ae9e8dc73a894b910e)
-rw-r--r--netdata.spec.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/netdata.spec.in b/netdata.spec.in
index 13d9dee9c3..7ebe5e2768 100644
--- a/netdata.spec.in
+++ b/netdata.spec.in
@@ -20,6 +20,7 @@ AutoReqProv: yes
%global _lto_cflags %nil
# 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
@@ -28,6 +29,7 @@ AutoReqProv: yes
%global _missing_build_ids_terminate_build 0
%endif
%endif
+%endif
# Disable eBPF for architectures other than x86
%ifarch x86_64 i386
@@ -213,11 +215,13 @@ BuildRequires: cups-devel >= 1.7
# 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