[packages/libkqueue] Rel 2. Fix the itimerspec dump format on x32
arekm
arekm at pld-linux.org
Thu Nov 26 09:54:09 CET 2026
commit b8af524e9bbd7a4c48d4dad925c3bec14511dfb0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 26 09:51:04 2026 +0100
Rel 2. Fix the itimerspec dump format on x32
libkqueue-format.patch | 20 ++++++++++++++++++++
libkqueue.spec | 4 +++-
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/libkqueue.spec b/libkqueue.spec
index e8305da..50aa7d4 100644
--- a/libkqueue.spec
+++ b/libkqueue.spec
@@ -2,12 +2,13 @@ Summary: Portable implementation of the kqueue() and kevent() system calls
Summary(pl.UTF-8): Przenośna implementacja wywołań systemowych kqueue() i kevent()
Name: libkqueue
Version: 2.7.0
-Release: 1
+Release: 2
License: BSD (header), ISC (implementation)
Group: Libraries
#Source0Download: https://github.com/mheily/libkqueue/releases
Source0: https://github.com/mheily/libkqueue/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: f08b6a3dede0576e4e40e325ed98249f
+Patch0: %{name}-format.patch
URL: https://github.com/mheily/libkqueue
BuildRequires: cmake >= 3.0
BuildRequires: rpmbuild(macros) >= 1.605
@@ -52,6 +53,7 @@ Statyczna biblioteka libkqueue.
%prep
%setup -q
+%patch -P0 -p1
%build
# 2.7.0 tarball still hardcodes PROJECT_VERSION 2.6.3 (ends up in libkqueue.pc)
diff --git a/libkqueue-format.patch b/libkqueue-format.patch
new file mode 100644
index 0000000..ca18e87
--- /dev/null
+++ b/libkqueue-format.patch
@@ -0,0 +1,20 @@
+# %lu does not match long long __syscall_slong_t on x32 (-Werror=format)
+--- a/src/linux/timer.c 2026-11-26 09:48:43.319999999 +0100
++++ b/src/linux/timer.c 2026-11-26 09:48:43.426662807 +0100
+@@ -68,11 +68,11 @@
+ static __thread char buf[1024];
+
+ snprintf(buf, sizeof(buf),
+- "itimer: [ interval=%lu s %lu ns, next expire=%lu s %lu ns ]",
+- ts->it_interval.tv_sec,
+- ts->it_interval.tv_nsec,
+- ts->it_value.tv_sec,
+- ts->it_value.tv_nsec
++ "itimer: [ interval=%llu s %llu ns, next expire=%llu s %llu ns ]",
++ (unsigned long long)ts->it_interval.tv_sec,
++ (unsigned long long)ts->it_interval.tv_nsec,
++ (unsigned long long)ts->it_value.tv_sec,
++ (unsigned long long)ts->it_value.tv_nsec
+ );
+
+ return (buf);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libkqueue.git/commitdiff/b8af524e9bbd7a4c48d4dad925c3bec14511dfb0
More information about the pld-cvs-commit
mailing list