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

atler atler at pld-linux.org
Wed Aug 6 18:14:08 CEST 2025


commit 8ab94aa74d93a51cfbac0b8261873456ae8cc0ef
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Aug 6 17:53:58 2025 +0200

    fix build with libxml2 >= 2.14

 libxml2.14.patch | 13 +++++++++++++
 systemtap.spec   |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/systemtap.spec b/systemtap.spec
index 54316a9..415caaf 100644
--- a/systemtap.spec
+++ b/systemtap.spec
@@ -39,6 +39,7 @@ Patch3:		%{name}-nss.patch
 Patch4:		%{name}-types.patch
 Patch5:		%{name}-install.patch
 Patch6:		%{name}-curl.patch
+Patch7:		libxml2.14.patch
 URL:		https://sourceware.org/systemtap/
 BuildRequires:	autoconf >= 2.71
 BuildRequires:	automake
@@ -341,6 +342,7 @@ Przewodniki i dokumentacja wprowadzająca do SystemTap.
 %patch -P 4 -p1
 %patch -P 5 -p1
 %patch -P 6 -p1
+%patch -P 7 -p1
 
 %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
 	testsuite/systemtap.examples/general/pyexample.py
diff --git a/libxml2.14.patch b/libxml2.14.patch
new file mode 100644
index 0000000..bec09a4
--- /dev/null
+++ b/libxml2.14.patch
@@ -0,0 +1,13 @@
+--- systemtap-5.2/stapvirt.c.orig	2024-11-08 20:25:26.000000000 +0100
++++ systemtap-5.2/stapvirt.c	2025-08-06 17:47:33.426022066 +0200
+@@ -661,8 +661,8 @@
+         goto cleanup_buf;
+     }
+ 
+-    int rc = attach ? virDomainAttachDevice(dom, (const char *) buf->content)
+-                    : virDomainDetachDevice(dom, (const char *) buf->content);
++    int rc = attach ? virDomainAttachDevice(dom, (const char *) xmlBufferContent(buf))
++                    : virDomainDetachDevice(dom, (const char *) xmlBufferContent(buf));
+     if (rc != 0) {
+         err("Couldn't %s the device\n", attach ? "attach" : "detach");
+         ret = -1;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/systemtap.git/commitdiff/c7c2115eb570398afa9064a7a216cad556b99aa8



More information about the pld-cvs-commit mailing list