Peter Jung pushed to branch main at Arch Linux / Packaging / Packages / libpfm
Commits:
6fe71253 by Peter Jung at 2026-09-23T13:04:15+02:00
upgpkg: 4.14.1-1
- - - - -
4 changed files:
- .SRCINFO
- PKGBUILD
- REUSE.toml
- + fix-c23-strpbrk.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,13 +1,15 @@
pkgbase = libpfm
pkgdesc = Library to encode performance events for use by perf tool
- pkgver = 4.13.0+r83+g91970fe
+ pkgver = 4.14.1
pkgrel = 1
url = https://perfmon2.sourceforge.net
arch = x86_64
license = MIT
makedepends = git
depends = glibc
- source =
libpfm::git+https://git.code.sf.net/p/perfmon2/libpfm4#commit=91970fe6eb4e80b63f77fb54a9592e28a207050c
- b2sums =
1fbc4c8143e9f948ea714af22687fb31a07ee2c688c863153c9b276671d8ee179ce0883e012e0ec5b46fbf39fb853989845b1ba3359aceb68909ffcd18b5cfd0
+ source =
libpfm::git+https://git.code.sf.net/p/perfmon2/libpfm4#tag=v4.14.1
+ source = fix-c23-strpbrk.patch
+ b2sums =
e374c8d1ca79c3645386c78758ebe44f58291dc79540f2007fa4da150816192c16f3337d4b823c01dbf6c2bd455d6ee58a90fb231944240346f81f83009157fe
+ b2sums =
6552134ec8f0de7e57ea243754e59a3084f7f10f0d2825a0e6eb04cb97bdeebcad0260a479ea70723fd1afdf1ccfe3e16a31af0f30e6e0d623273b96f3f773df
pkgname = libpfm
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
# Contributor: George Rawlinson <[email protected]>
pkgname=libpfm
-pkgver=4.13.0+r83+g91970fe
+pkgver=4.14.1
pkgrel=1
pkgdesc='Library to encode performance events for use by perf tool'
arch=('x86_64')
@@ -14,14 +14,15 @@ depends=(
makedepends=(
git
)
-_commit='91970fe6eb4e80b63f77fb54a9592e28a207050c'
-source=("$pkgname::git+https://git.code.sf.net/p/perfmon2/libpfm4#commit=$_commit")
-b2sums=('1fbc4c8143e9f948ea714af22687fb31a07ee2c688c863153c9b276671d8ee179ce0883e012e0ec5b46fbf39fb853989845b1ba3359aceb68909ffcd18b5cfd0')
+source=("$pkgname::git+https://git.code.sf.net/p/perfmon2/libpfm4#tag=v$pkgver"
+ 'fix-c23-strpbrk.patch')
+b2sums=('e374c8d1ca79c3645386c78758ebe44f58291dc79540f2007fa4da150816192c16f3337d4b823c01dbf6c2bd455d6ee58a90fb231944240346f81f83009157fe'
+
'6552134ec8f0de7e57ea243754e59a3084f7f10f0d2825a0e6eb04cb97bdeebcad0260a479ea70723fd1afdf1ccfe3e16a31af0f30e6e0d623273b96f3f773df')
-pkgver() {
+prepare() {
cd "$pkgname"
- git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
+ patch -Np1 -i "$srcdir/fix-c23-strpbrk.patch"
}
build() {
@@ -38,4 +39,3 @@ package() {
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" COPYING
}
-
=====================================
REUSE.toml
=====================================
@@ -3,6 +3,7 @@ version = 1
[[annotations]]
path = [
"PKGBUILD",
+ "fix-c23-strpbrk.patch",
"README.md",
"keys/**",
".SRCINFO",
=====================================
fix-c23-strpbrk.patch
=====================================
@@ -0,0 +1,26 @@
+Description: Preserve const qualifiers returned by C23 string searches.
+ The event delimiter check only needs to test whether a match exists;
+ the test helper only reads the matching PMU separator.
+--- a/lib/pfmlib_common.c
++++ b/lib/pfmlib_common.c
+@@ -1893,8 +1893,7 @@ pfmlib_parse_event(const char *event,
pfmlib_event_desc_t *d)
+ /*
+ * 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
+--- a/tests/validate_x86.c
++++ b/tests/validate_x86.c
+@@ -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;
+
+ memset(&info, 0, sizeof(info));
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/libpfm/-/commit/6fe71253af25a2e85221fa54a7b4d0836c796b5e
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/libpfm/-/commit/6fe71253af25a2e85221fa54a7b4d0836c796b5e
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help