]> git.pld-linux.org Git - packages/libvirt.git/commitdiff
add missing include to fix build with libxml2 >= 2.12
authorJan Palus <atler@pld-linux.org>
Sun, 19 Nov 2023 12:14:28 +0000 (13:14 +0100)
committerJan Palus <atler@pld-linux.org>
Sun, 19 Nov 2023 12:14:28 +0000 (13:14 +0100)
libvirt.spec
missing-includes.patch [new file with mode: 0644]

index 6869443087b1f9529291151c399c24fe7fc36d63..1cfc0e5ff527e9024dba653bfd4a911e49286039 100644 (file)
@@ -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 (file)
index 0000000..2ddacb9
--- /dev/null
@@ -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"
This page took 0.18439 seconds and 4 git commands to generate.