[packages/libvirt] add missing include to fix build with libxml2 >= 2.12
atler
atler at pld-linux.org
Sun Nov 19 14:06:59 CET 2023
commit 978f8fb171b5bdbd78f3319e1d686e74b5ae484d
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Nov 19 13:14:28 2023 +0100
add missing include to fix build with libxml2 >= 2.12
libvirt.spec | 2 ++
missing-includes.patch | 10 ++++++++++
2 files changed, 12 insertions(+)
---
diff --git a/libvirt.spec b/libvirt.spec
index 6869443..1cfc0e5 100644
--- a/libvirt.spec
+++ b/libvirt.spec
@@ -60,6 +60,7 @@ Patch3: %{name}-path-options.patch
Patch4: %{name}-udevadm-settle.patch
Patch5: vserver.patch
Patch6: bashisms.patch
+Patch7: missing-includes.patch
URL: https://www.libvirt.org/
BuildRequires: acl-devel
BuildRequires: attr-devel
@@ -505,6 +506,7 @@ Moduł sekcji Wiresharka do pakietów libvirt.
%patch4 -p1
%{?with_vserver:%patch5 -p1}
%patch6 -p1
+%patch7 -p1
%if %{with static_libs}
%{__sed} -i '/^libvirt\(_admin\|_lxc\|_qemu\)\?_lib = / s/shared_library/library/' src/meson.build
diff --git a/missing-includes.patch b/missing-includes.patch
new file mode 100644
index 0000000..2ddacb9
--- /dev/null
+++ b/missing-includes.patch
@@ -0,0 +1,10 @@
+--- libvirt-8.10.0/src/util/virxml.c.orig 2022-12-01 10:55:15.000000000 +0100
++++ libvirt-8.10.0/src/util/virxml.c 2023-11-19 13:02:22.189721157 +0100
+@@ -24,6 +24,7 @@
+ #include <math.h> /* for isnan() */
+ #include <sys/stat.h>
+
++#include <libxml/xmlsave.h>
+ #include <libxml/xpathInternals.h>
+
+ #include "virerror.h"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libvirt.git/commitdiff/978f8fb171b5bdbd78f3319e1d686e74b5ae484d
More information about the pld-cvs-commit
mailing list