diff --git a/oprofile-autoconf-fix-perf_events-detection.patch b/oprofile-autoconf-fix-perf_events-detection.patch new file mode 100644 index 0000000..d83422d --- /dev/null +++ b/oprofile-autoconf-fix-perf_events-detection.patch @@ -0,0 +1,28 @@ +From: Tony Jones +Date: Fri Nov 8 01:23:51 PM PST 2024 +Subject: fix autoconf detection of perf_events +Upstream: pending +References: Message-ID: <169524738639.21909.3072410117418186253@localhost> + +From: DimStar / Dominique Leuenberger +Subject: openSUSE:Factory - oprofile - Build problem notification + +Feature detection of perf_events API (required) was failing causing build +to fail. Fix forwarded to oprofile maintainer. + +--- + configure.ac | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/configure.ac b/configure.ac +index dc447f89..363bd440 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -116,6 +116,7 @@ if test "$kernel_may_have_perf_events_support" = "yes"; then + rm -f test-for-PERF_EVENT_OPEN + AC_LANG_CONFTEST( + [AC_LANG_PROGRAM([[#include ++ #include + #include + #include + #include diff --git a/oprofile.changes b/oprofile.changes index 0014b8b..c9cf820 100644 --- a/oprofile.changes +++ b/oprofile.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Nov 8 21:30:32 UTC 2024 - Tony Jones + +- Feature detection of perf_events API (required) was failing causing the + build to fail. Reported by DimStar Build problem notification email. + + New patch: oprofile-autoconf-fix-perf_events-detection.patch + ------------------------------------------------------------------- Thu Sep 28 01:52:52 UTC 2023 - Tony Jones diff --git a/oprofile.spec b/oprofile.spec index 772ad0d..acdb54f 100644 --- a/oprofile.spec +++ b/oprofile.spec @@ -1,7 +1,7 @@ # # spec file for package oprofile # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,6 +31,7 @@ Source5: README-BEFORE-ADDING-PATCHES Patch1: %{name}-no-libjvm-version.patch Patch2: %{name}-pfm-ppc.patch Patch3: %{name}-binutils.patch +Patch4: %{name}-autoconf-fix-perf_events-detection.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: binutils-devel