[packages/collectd] fix build with libxml2 >= 2.14

atler atler at pld-linux.org
Mon Jul 28 21:15:44 CEST 2025


commit a0e6f3280db71ed3444f83e8ed2c2e1d82c4d84b
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Jul 28 21:13:43 2025 +0200

    fix build with libxml2 >= 2.14

 collectd.spec      |  2 ++
 libxml2-2.14.patch | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/collectd.spec b/collectd.spec
index 5c11612..13e6258 100644
--- a/collectd.spec
+++ b/collectd.spec
@@ -207,6 +207,7 @@ Patch2:		noquote.patch
 Patch3:		libgcrypt1.11.patch
 Patch4:		types.patch
 Patch5:		python3.11.patch
+Patch6:		libxml2-2.14.patch
 URL:		http://collectd.org/
 %{?with_ipmi:BuildRequires:	OpenIPMI-devel >= 2.0.14-3}
 BuildRequires:	autoconf
@@ -1381,6 +1382,7 @@ Perl files from Collectd package
 %patch -P3 -p1
 %patch -P4 -p1
 %patch -P5 -p1
+%patch -P6 -p1
 
 %build
 %{__libtoolize} --ltdl
diff --git a/libxml2-2.14.patch b/libxml2-2.14.patch
new file mode 100644
index 0000000..0a1f891
--- /dev/null
+++ b/libxml2-2.14.patch
@@ -0,0 +1,11 @@
+--- collectd-5.9.2/src/virt.c.orig	2019-10-01 14:00:47.000000000 +0200
++++ collectd-5.9.2/src/virt.c	2025-07-28 21:00:57.644935167 +0200
+@@ -2205,7 +2205,7 @@
+   return 0;
+ }
+ 
+-static void virt_eventloop_timeout_cb(int timer ATTRIBUTE_UNUSED,
++static void virt_eventloop_timeout_cb(int timer __attribute__((unused)),
+                                       void *timer_info) {}
+ 
+ static int register_event_impl(void) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/collectd.git/commitdiff/a0e6f3280db71ed3444f83e8ed2c2e1d82c4d84b



More information about the pld-cvs-commit mailing list