summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@yahooinc.com>2022-05-19 14:30:45 +0200
committerArnstein Ressem <aressem@yahooinc.com>2022-05-19 14:30:45 +0200
commitc059a0757f46e2a6e6333d23a18a1b5c435c2b79 (patch)
tree629e4170f32334bfdf7ee4abfec5b48d61f35958 /dist
parenta9b7eb4521bbe2123ec221b6f52aa60f7abcc5a6 (diff)
Make debug source available for all ELF binaries.
Diffstat (limited to 'dist')
-rw-r--r--dist/vespa.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/vespa.spec b/dist/vespa.spec
index 56463477cd4..8fed193214a 100644
--- a/dist/vespa.spec
+++ b/dist/vespa.spec
@@ -620,7 +620,7 @@ rm -rf %{buildroot}
%if 0%{?installdir:1}
cp -r %{installdir} %{buildroot}
%if 0%{?source_base:1} && ! (0%{?amzn2} || 0%{?el7})
-find %{buildroot} -iname '*.so' -print0 | xargs --no-run-if-empty -0 -n1 /usr/lib/rpm/debugedit -b %{source_base} -d %{_builddir}/%{name}-%{version}
+find %{buildroot} -exec file {} \; | grep ': ELF ' | cut -d: -f1 | xargs --no-run-if-empty -n1 /usr/lib/rpm/debugedit -b %{source_base} -d %{_builddir}/%{name}-%{version}
%endif
%else
make install DESTDIR=%{buildroot}