]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
config/elfutils.spec.in: update for stackprof
authorSerhei Makarov <serhei@serhei.io>
Wed, 10 Jun 2026 17:34:13 +0000 (13:34 -0400)
committerSerhei Makarov <serhei@serhei.io>
Wed, 10 Jun 2026 18:32:50 +0000 (14:32 -0400)
config/elfutils.spec.in

index cbbc5433830991cbd51d02d9ac42991778e0072f..716831df40ed9b1f45d16ccff61b8003f520fe52 100644 (file)
@@ -7,11 +7,11 @@ License: GPLv3+ and (GPLv2+ or LGPLv3+) and GFDL
 Source: ftp://sourceware.org/pub/elfutils/%{version}/elfutils-%{version}.tar.bz2
 Summary: A collection of utilities and DSOs to handle ELF files and DWARF data
 
-# eu-stacktrace currently only supports x86_64
-%ifarch x86_64
-%global enable_stacktrace 1
+# eu-stackprof currently only supports x86/ARM
+%ifarch %{all_x86} %{arm}
+%global enable_stackprof 1
 %else
-%global enable_stacktrace 0
+%global enable_stackprof 0
 %endif
 
 Requires: elfutils-libelf = %{version}-%{release}
@@ -60,9 +60,9 @@ BuildRequires: ima-evm-utils-devel
 BuildRequires: openssl-devel
 BuildRequires: rpm-sign
 
-# For eu-stacktrace
-%if %{enable_stacktrace}
-BuildRequires: sysprof-capture-devel
+# For eu-stackprof
+%if %{enable_stackprof}
+BuildRequires: libpfm-devel
 %endif
 
 %define _gnu %{nil}
@@ -212,9 +212,6 @@ such servers to download those files on demand.
 %configure --program-prefix=%{_programprefix} \
            --enable-debuginfod \
            --enable-debuginfod-urls=https://debuginfod.elfutils.org/ \
-%if %{enable_stacktrace}
-           --enable-stacktrace \
-%endif
            --enable-debuginfod-ima-verification
 make -s %{?_smp_mflags}
 
@@ -277,8 +274,8 @@ fi
 %{_bindir}/eu-size
 %{_bindir}/eu-srcfiles
 %{_bindir}/eu-stack
-%if %{enable_stacktrace}
-%{_bindir}/eu-stacktrace
+%if %{enable_stackprof}
+%{_bindir}/eu-stackprof
 %endif
 %{_bindir}/eu-strings
 %{_bindir}/eu-strip