[packages/libpfm] - updated to 4.14.1, build fix for glibc 2.43 pfmlib_common.c:1896:11: error: assignment discards
hawk
hawk at pld-linux.org
Fri Oct 23 20:34:41 CEST 2026
commit 819643e60a8d813c480ca238c13329bb523012ba
Author: Marcin Krol <hawk at tld-linux.org>
Date: Fri Oct 23 20:33:27 2026 +0200
- updated to 4.14.1, build fix for glibc 2.43
pfmlib_common.c:1896:11: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
libpfm-build.patch | 25 +++++++++++++++++++++++++
libpfm.spec | 6 +++---
2 files changed, 28 insertions(+), 3 deletions(-)
---
diff --git a/libpfm.spec b/libpfm.spec
index d7f0d32..249fb9b 100644
--- a/libpfm.spec
+++ b/libpfm.spec
@@ -11,12 +11,12 @@
Summary: Library to encode performance events for use by perf tool
Summary(pl.UTF-8): Biblioteka do kodowania zdarzeń związanych z wydajnością do użycia przez narzędzie perf
Name: libpfm
-Version: 4.13.0
-Release: 3
+Version: 4.14.1
+Release: 1
License: MIT
Group: Libraries
Source0: https://downloads.sourceforge.net/perfmon2/%{name}-%{version}.tar.gz
-# Source0-md5: 673aaf0613f8fd1d886b4c5867c2fef1
+# Source0-md5: 5b0a3526ba36c85138a30d8cd9307aec
Patch0: %{name}-build.patch
URL: https://perfmon2.sourceforge.net/
%{?with_python2:BuildRequires: python-devel >= 2}
diff --git a/libpfm-build.patch b/libpfm-build.patch
index f958fad..5f447de 100644
--- a/libpfm-build.patch
+++ b/libpfm-build.patch
@@ -10,3 +10,28 @@ diff -ur libpfm-4.11.0.orig/perf_examples/rtop.c libpfm-4.11.0/perf_examples/rto
u_cycles,
k_cycles,
i_cycles,
+diff -ur libpfm-4.14.1.orig/lib/pfmlib_common.c libpfm-4.14.1/lib/pfmlib_common.c
+--- libpfm-4.14.1.orig/lib/pfmlib_common.c 2026-09-21 08:59:43.000000000 +0200
++++ libpfm-4.14.1/lib/pfmlib_common.c 2026-10-23 20:31:29.502218152 +0200
+@@ -1893,8 +1893,7 @@
+ /*
+ * support only one event at a time.
+ */
+- p = strpbrk(event, PFMLIB_EVENT_DELIM);
+- if (p)
++ if (strpbrk(event, PFMLIB_EVENT_DELIM))
+ return PFM_ERR_INVAL;
+ /*
+ * create copy because string is const
+diff -ur libpfm-4.14.1.orig/tests/validate_x86.c libpfm-4.14.1/tests/validate_x86.c
+--- libpfm-4.14.1.orig/tests/validate_x86.c 2026-09-21 08:59:43.000000000 +0200
++++ libpfm-4.14.1/tests/validate_x86.c 2026-10-23 20:31:29.502218152 +0200
+@@ -10522,7 +10522,7 @@
+ check_pmu_supported(const char *evt)
+ {
+ pfm_pmu_info_t info;
+- char *p;
++ const char *p;
+ int ret;
+ pfm_pmu_t i;
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libpfm.git/commitdiff/819643e60a8d813c480ca238c13329bb523012ba
More information about the pld-cvs-commit
mailing list