fix(packaging): correct rust macro name in spec _have_rust gate (#22515)
The %if check referenced %{_nd_rustc_cmd} (with an extra 'c') instead of %{_nd_rust_cmd} defined two lines above. Because RPM leaves undefined %{...} macros as literal non-empty text, the gate always evaluated to the else branch and set _have_rust=1, regardless of whether rustc was available. Use the macro that is actually defined.
vkalintiris committed
May 21, 2026 at 16:02 UTC
09823130f623e6baa3841f98f791e98cc7c5fdfe
1 file changed
+1
-1
netdata.spec.in
+1
-1
@@ -80,7 +80,7 @@ AutoReqProv: yes
80
%{?rhel:%global centos_ver %rhel}
81
82
# Only try to build OTEL plugin if we have rust
83
-%global _nd_rust_cmd %(command -v rustc)
83
+%global _nd_rustc_cmd %(command -v rustc)
84
85
%if "%{_nd_rustc_cmd}" == ""
86
%global _have_rust 0