Accepting request 1222903 from devel:tools

- 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

OBS-URL: https://build.opensuse.org/request/show/1222903
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/oprofile?expand=0&rev=58
This commit is contained in:
Dominique Leuenberger 2024-11-09 19:58:23 +00:00 committed by Git OBS Bridge
commit 329a9c21e9
3 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From: Tony Jones <tonyj@suse.de>
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 <dimstar@opensuse.org>
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 <linux/perf_event.h>
+ #include <unistd.h>
#include <asm/unistd.h>
#include <sys/types.h>
#include <string.h>

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Nov 8 21:30:32 UTC 2024 - Tony Jones <tonyj@suse.com>
- 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 <tonyj@suse.com>

View File

@ -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