netdata/packaging: [ci skip] The proposed flag did not work, removing and re-arranging the install of the binary
Pavlos Emm. Katsoulakis committed
Aug 16, 2019 at 12:03 UTC
c0604c5879a618f8550627926e41570efff634a3
1 file changed
+2
-5
netdata.spec.in
+2
-5
@@ -6,10 +6,6 @@
6
# error.
7
%global __os_install_post %{nil}
8
9
-# There is an issue with build-id over the go.d binary raised on RHEL/fedora distributions
10
-# We use this workaround as per the https://github.com/rpm-software-management/rpm/issues/367#issuecomment-350131349
11
-%global _missing_build_ids_terminate_build 0
12
-
9
# Mitigate the cross-distro mayhem by strictly defining the libexec destination
10
%define _prefix /usr
11
%define _sysconfdir /etc
@@ -379,12 +375,13 @@ install_go() {
375
# Install files
376
tar -xf "${tmp}/config.tar.gz" -C "${RPM_BUILD_ROOT}%{_libdir}/%{name}/conf.d/"
377
tar xf "${tmp}/${GO_PACKAGE_BASENAME}"
382
- mv "${GO_PACKAGE_BASENAME/\.tar\.gz/}" "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/go.d.plugin"
378
+ mv "${GO_PACKAGE_BASENAME/\.tar\.gz/}" "go.d.plugin"
379
rm -rf "${tmp}"
380
fi
381
return 0
382
}
383
install_go
384
+install -m 0750 -p go.d.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/go.d.plugin"
385
386
%pre
387