Fix build for libxml2 2.12.1

This commit is contained in:
Richard W.M. Jones 2023-11-27 14:37:05 +00:00
parent 68563e35e7
commit 861a872c86
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From 706236b7f8087f0486596d70ac6973d02028eab1 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Mon, 27 Nov 2023 14:07:13 +0000
Subject: [PATCH] common: Update submodule
Pulls in this commit required for libxml2 2.12.1:
mlxml: Include <libxml/parser.h> for xmlReadMemory
---
common | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Submodule common e711121607..6185aa8431:
diff --git a/common/mlxml/xml-c.c b/common/mlxml/xml-c.c
index 715c3bb..e024bd8 100644
--- a/common/mlxml/xml-c.c
+++ b/common/mlxml/xml-c.c
@@ -34,6 +34,7 @@
#include <caml/memory.h>
#include <caml/mlvalues.h>
+#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <libxml/uri.h>
--
2.42.0

View File

@ -26,7 +26,7 @@
Summary: Tools to access and modify virtual machine disk images
Name: guestfs-tools
Version: 1.51.5
Release: 1%{?dist}
Release: 2%{?dist}
License: GPL-2.0-or-later AND LGPL-2.0-or-later
# Build only for architectures that have a kernel
@ -48,6 +48,8 @@ Source1: http://download.libguestfs.org/guestfs-tools/%{source_directory}/
Source2: libguestfs.keyring
%endif
Patch1: 0001-common-Update-submodule.patch
%if 0%{patches_touch_autotools}
BuildRequires: autoconf, automake, libtool, gettext-devel
%endif
@ -405,6 +407,9 @@ end
%changelog
* Mon Nov 27 2023 Richard W.M. Jones <rjones@redhat.com> - 1.51.5-2
- Fix build for libxml2 2.12.1
* Thu Nov 02 2023 Richard W.M. Jones <rjones@redhat.com> - 1.51.5-1
- New development version 1.51.5