From 308b3309ce634f221affea1e5eba8d75da106e4e Mon Sep 17 00:00:00 2001 From: David King Date: Thu, 30 Nov 2023 09:21:19 +0000 Subject: [PATCH] Fix building against libxml 2.12.0 --- libgsf-1.14.51-libxml2-2.12.0-includes.patch | 24 ++++++++++++++++++++ libgsf.spec | 7 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 libgsf-1.14.51-libxml2-2.12.0-includes.patch diff --git a/libgsf-1.14.51-libxml2-2.12.0-includes.patch b/libgsf-1.14.51-libxml2-2.12.0-includes.patch new file mode 100644 index 0000000..4f404d4 --- /dev/null +++ b/libgsf-1.14.51-libxml2-2.12.0-includes.patch @@ -0,0 +1,24 @@ +From b6719aa4a8a0fc3acfd8e7ab339b3493f7251b22 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=BCrg=20Billeter?= +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 ++#include + #include + + G_BEGIN_DECLS +-- +GitLab + diff --git a/libgsf.spec b/libgsf.spec index afc9d53..4dbd556 100644 --- a/libgsf.spec +++ b/libgsf.spec @@ -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 - 1.14.51-2 +- Fix building against libxml 2.12.0 + * Thu Nov 16 2023 Dan HorĂ¡k - 1.14.51-1 - New upstream release 1.14.51 - Resolves: rhbz#2214335 rhbz#2249742 rhbz#2249979