public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libpfm] f43: 4.13.0-19
@ 2026-06-03 13:41 Aaron Merey
0 siblings, 0 replies; only message in thread
From: Aaron Merey @ 2026-06-03 13:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libpfm
Branch : f43
Commit : c2cc9673e673c41de13c2ee14855a22bd0fac4cc
Author : Aaron Merey <amerey@redhat.com>
Date : 2026-01-21T18:15:58-05:00
Stats : +69/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libpfm/c/c2cc9673e673c41de13c2ee14855a22bd0fac4cc?branch=f43
Log:
4.13.0-19
Add libpfm-unused-vars.patch
---
diff --git a/libpfm-unused-vars.patch b/libpfm-unused-vars.patch
new file mode 100644
index 0000000..40f8eec
--- /dev/null
+++ b/libpfm-unused-vars.patch
@@ -0,0 +1,63 @@
+From e12e21a65da024365e7a95daf22d2a2ef26851e9 Mon Sep 17 00:00:00 2001
+From: Aaron Merey <amerey@redhat.com>
+Date: Wed, 21 Jan 2026 18:06:14 -0500
+Subject: [PATCH] Remove unused variables
+
+---
+ lib/pfmlib_common.c | 3 +--
+ perf_examples/self_smpl_multi.c | 5 +----
+ 2 files changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/lib/pfmlib_common.c b/lib/pfmlib_common.c
+index 44b5de4..1137ed4 100644
+--- a/lib/pfmlib_common.c
++++ b/lib/pfmlib_common.c
+@@ -1906,7 +1906,7 @@ pfmlib_pmu_validate_encoding(pfmlib_pmu_t *pmu, FILE *fp)
+ pfmlib_event_attr_info_t ainfo;
+ char *buf;
+ size_t maxlen = 0, len;
+- int i, u, n = 0, um;
++ int i, u, um;
+ int ret, retval = PFM_SUCCESS;
+
+ pfmlib_for_each_pmu_event(pmu, i) {
+@@ -1995,7 +1995,6 @@ pfmlib_pmu_validate_encoding(pfmlib_pmu_t *pmu, FILE *fp)
+ continue;
+ }
+ }
+- n++;
+ }
+ free(buf);
+
+diff --git a/perf_examples/self_smpl_multi.c b/perf_examples/self_smpl_multi.c
+index 391fa61..75b45e0 100644
+--- a/perf_examples/self_smpl_multi.c
++++ b/perf_examples/self_smpl_multi.c
+@@ -141,7 +141,7 @@ void
+ do_cycles(void)
+ {
+ struct timeval start, last, now;
+- unsigned long x, sum;
++ unsigned long x;
+
+ gettimeofday(&start, NULL);
+ last = start;
+@@ -150,15 +150,12 @@ do_cycles(void)
+ iter[myid] = 0;
+
+ do {
+-
+- sum = 1;
+ for (x = 1; x < 250000; x++) {
+ /* signal pending to private queue because of
+ * pthread_kill(), i.e., tkill()
+ */
+ if ((x % 5000) == 0)
+ pthread_kill(pthread_self(), SIGUSR1);
+- sum += x;
+ }
+ iter[myid]++;
+
+--
+2.52.0
+
diff --git a/libpfm.spec b/libpfm.spec
index 986d666..c4ebd9f 100644
--- a/libpfm.spec
+++ b/libpfm.spec
@@ -9,7 +9,7 @@
Name: libpfm
Version: 4.13.0
-Release: 18%{?dist}
+Release: 19%{?dist}
Summary: Library to encode performance events for use by perf tool
@@ -19,6 +19,7 @@ Source0: http://sourceforge.net/projects/perfmon2/files/libpfm4/%{name}-%{versio
Patch1: libpfm-fix-const.patch
Patch2: libpfm-python3-setup.patch
Patch3: libpfm-gcc14.patch
+Patch4: libpfm-unused-vars.patch
BuildRequires: make
BuildRequires: gcc
@@ -75,6 +76,7 @@ Python bindings for libpfm4 and perf_event_open system call.
%patch -P1 -p1 -b .fix-const
%patch -P2 -p1 -b .python3
%patch -P3 -p1 -b .gcc14
+%patch -P4 -p1 -b .unused
# to prevent setuptools from installing an .egg, we need to pass --root to setup.py install
# see https://github.com/pypa/setuptools/issues/3143
# and https://github.com/pypa/pip/issues/11501
@@ -134,6 +136,9 @@ rm $RPM_BUILD_ROOT%{_libdir}/lib*.a
%endif
%changelog
+* Wed Jan 21 2026 Aaron Merey <amerey@redhat.com> - 4.13.0-19
+- Add libpfm-unused-vars.patch
+
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.13.0-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-03 13:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03 13:41 [rpms/libpfm] f43: 4.13.0-19 Aaron Merey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox