Fix building against libxml 2.12.0

This commit is contained in:
David King 2023-11-30 09:21:19 +00:00
parent 90e17733d7
commit 308b3309ce
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From b6719aa4a8a0fc3acfd8e7ab339b3493f7251b22 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrg=20Billeter?= <j@bitron.ch>
Date: Fri, 24 Nov 2023 19:47:35 +0100
Subject: [PATCH] xml: Fix build with libxml2 2.12
---
gsf/gsf-libxml.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/gsf/gsf-libxml.h b/gsf/gsf-libxml.h
index 6c3e2e4..c0d618e 100644
--- a/gsf/gsf-libxml.h
+++ b/gsf/gsf-libxml.h
@@ -23,6 +23,7 @@
#define GSF_LIBXML_H
#include <gsf/gsf-fwd.h>
+#include <libxml/parser.h>
#include <libxml/tree.h>
G_BEGIN_DECLS
--
GitLab

View File

@ -7,9 +7,11 @@
Summary: GNOME Structured File library
Name: libgsf
Version: 1.14.51
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPL-2.1-only
Source: https://download.gnome.org/sources/%{name}/1.14/%{name}-%{version}.tar.xz
# https://gitlab.gnome.org/GNOME/libgsf/-/merge_requests/14
Patch: libgsf-1.14.51-libxml2-2.12.0-includes.patch
URL: http://www.gnome.org/projects/libgsf/
BuildRequires: bzip2-devel
@ -171,6 +173,9 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
%endif
%changelog
* Thu Nov 30 2023 David King <amigadave@amigadave.com> - 1.14.51-2
- Fix building against libxml 2.12.0
* Thu Nov 16 2023 Dan Horák <dan[at]danny.cz> - 1.14.51-1
- New upstream release 1.14.51
- Resolves: rhbz#2214335 rhbz#2249742 rhbz#2249979