public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libpfm] rawhide: 4.14.1-1
@ 2026-10-13 21:34 Aaron Merey
  0 siblings, 0 replies; only message in thread
From: Aaron Merey @ 2026-10-13 21:34 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/libpfm
            Branch : rawhide
            Commit : 16ed442e8fd409eba93916d10b87caf3467f8a89
            Author : Aaron Merey <amerey@redhat.com>
            Date   : 2026-10-13T17:29:56-04:00
            Stats  : +16/-95 in 6 file(s)
            URL    : https://src.fedoraproject.org/rpms/libpfm/c/16ed442e8fd409eba93916d10b87caf3467f8a89?branch=rawhide

            Log:
            4.14.1-1

Rebase on libpfm-4.14.1.

Drop libpfm-gcc14.patch and libpfm-unused-vars.patch, both are
upstream.  Refresh libpfm-fix-const.patch.

Upstream now installs the python bindings with pip, so BuildRequire
python3-pip, pass --no-build-isolation and package the .dist-info
directory instead of .egg-info.

Keep tracepoint events enabled with CONFIG_PFMLIB_NOTRACEPOINT=n,
since 4.14 disables them by default.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>

---
diff --git a/.gitignore b/.gitignore
index 0f753c1..b9f5d19 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@
 /libpfm-4.10.1.tar.gz
 /libpfm-4.11.0.tar.gz
 /libpfm-4.13.0.tar.gz
+/libpfm-4.14.1.tar.gz

diff --git a/libpfm-fix-const.patch b/libpfm-fix-const.patch
index b9a2308..98ead90 100644
--- a/libpfm-fix-const.patch
+++ b/libpfm-fix-const.patch
@@ -14,7 +14,7 @@ index 44b5de4..59a7cff 100644
 +++ b/lib/pfmlib_common.c
 @@ -1625,12 +1625,6 @@ pfmlib_parse_event(const char *event, pfmlib_event_desc_t *d)
  	const char *pname = NULL;
- 	int i, j, ret;
+ 	int i, ret;
  
 -	/*
 -	 * support only one event at a time.

diff --git a/libpfm-gcc14.patch b/libpfm-gcc14.patch
deleted file mode 100644
index 9f2a62d..0000000
--- a/libpfm-gcc14.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-commit cb944829e0940d74009e09b8985b4f2139f5cb3b
-Author: William Cohen <wcohen@redhat.com>
-Date:   Mon Jan 29 16:23:43 2024 -0500
-
-    Correct s390x code to avoid GCC-14 -Werror=calloc-transposed-args errors
-
-diff --git a/lib/pfmlib_s390x_cpumf.c b/lib/pfmlib_s390x_cpumf.c
-index d8ce22d..718f5f8 100644
---- a/lib/pfmlib_s390x_cpumf.c
-+++ b/lib/pfmlib_s390x_cpumf.c
-@@ -216,8 +216,8 @@ static int pfm_cpumcf_init(void *this)
- 		break;
- 	}
- 
--	cpumcf_pe = calloc(sizeof(*cpumcf_pe),
--			   cfvn_set_count + csvn_set_count + ext_set_count);
-+	cpumcf_pe = calloc(cfvn_set_count + csvn_set_count + ext_set_count,
-+			   sizeof(*cpumcf_pe));
- 	if (cpumcf_pe == NULL)
- 		return PFM_ERR_NOMEM;
- 

diff --git a/libpfm-unused-vars.patch b/libpfm-unused-vars.patch
deleted file mode 100644
index 40f8eec..0000000
--- a/libpfm-unused-vars.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-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 4c066a9..8f6561d 100644
--- a/libpfm.spec
+++ b/libpfm.spec
@@ -8,8 +8,8 @@
 %endif
 
 Name:		libpfm
-Version:	4.13.0
-Release:	23%{?dist}
+Version:	4.14.1
+Release:	1%{?dist}
 
 Summary:	Library to encode performance events for use by perf tool
 
@@ -18,14 +18,13 @@ URL:		http://perfmon2.sourceforge.net/
 Source0:	http://sourceforge.net/projects/perfmon2/files/libpfm4/%{name}-%{version}.tar.gz
 Patch1:		libpfm-fix-const.patch
 Patch2:		libpfm-python3-setup.patch
-Patch3:		libpfm-gcc14.patch
-Patch4:		libpfm-unused-vars.patch
 
 BuildRequires: make
 BuildRequires:	gcc
 %if %{with python}
 BuildRequires:	python3
 BuildRequires:	python3-devel
+BuildRequires:	python3-pip
 BuildRequires:	python3-setuptools
 BuildRequires:	swig
 %endif
@@ -75,12 +74,11 @@ Python bindings for libpfm4 and perf_event_open system call.
 %setup -q
 %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
-sed -i 's/--prefix=$(DESTDIR)$(PYTHON_PREFIX)/--root=$(DESTDIR) --prefix=$(PYTHON_PREFIX)/' python/Makefile
+# --no-build-isolation keeps pip from trying to download setuptools
+sed -i 's/--prefix=$(DESTDIR)$(PYTHON_PREFIX)/--root=$(DESTDIR) --prefix=$(PYTHON_PREFIX) --no-build-isolation/' python/Makefile
 
 %build
 %if %{with python}
@@ -88,7 +86,8 @@ sed -i 's/--prefix=$(DESTDIR)$(PYTHON_PREFIX)/--root=$(DESTDIR) --prefix=$(PYTHO
 %else
 %global python_config CONFIG_PFMLIB_NOPYTHON=y
 %endif
-%make_build %{python_config} \
+# tracepoint events are disabled by default since 4.14, keep them enabled
+%make_build %{python_config} CONFIG_PFMLIB_NOTRACEPOINT=n \
      OPTIM="%{optflags}" LDFLAGS="%{build_ldflags}"
 
 
@@ -135,11 +134,16 @@ rm $RPM_BUILD_ROOT%{_libdir}/lib*.a
 %if %{with python}
 %files -n python3-libpfm
 %license COPYING
-%{python3_sitearch}/perfmon-*.egg-info/
+%{python3_sitearch}/perfmon-*.dist-info/
 %{python3_sitearch}/perfmon/
 %endif
 
 %changelog
+* Tue Oct 13 2026 Aaron Merey <amerey@redhat.com> - 4.14.1-1
+- Rebase on libpfm-4.14.1.
+- Drop libpfm-gcc14.patch and libpfm-unused-vars.patch (upstream).
+- Keep tracepoint events enabled (CONFIG_PFMLIB_NOTRACEPOINT=n).
+
 * Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 4.13.0-23
 - Rebuilt for Python 3.15.0b4 ABI change
 

diff --git a/sources b/sources
index b2d4ea3..31737e0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libpfm-4.13.0.tar.gz) = e61b210aa2ce80f0e47603c88eee2e4f2fe30ca2c0e194a5472b6a8de3bf9dc1085e5261bbb9ddbe5b6531c4b391fb34f20d038e5ebd8e6f4c14c2112aee508f
+SHA512 (libpfm-4.14.1.tar.gz) = f12478fbf54f4e19020433788470b89cb0bd13cd358a1a32e6f67a81a2d8d55f29c0d74ab4a099de22d8557656674dd0556817b6aa5418c47008ee759459eb3b

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-13 21:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-13 21:34 [rpms/libpfm] rawhide: 4.14.1-1 Aaron Merey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox