From 91d468ccd8a3f534a4d99e6681e671879ff9a482 Mon Sep 17 00:00:00 2001 From: David King Date: Wed, 29 Nov 2023 09:10:31 +0000 Subject: [PATCH] Fix building against libxml2 2.12.0 and above --- libcmis.spec | 2 ++ libxmis-0.6.2-libxml2-2.12.0-includes.patch | 23 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 libxmis-0.6.2-libxml2-2.12.0-includes.patch diff --git a/libcmis.spec b/libcmis.spec index 4b2b202..7f79b07 100644 --- a/libcmis.spec +++ b/libcmis.spec @@ -8,6 +8,8 @@ Summary: A C/C++ client library for CM interfaces License: GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1 URL: https://github.com/tdf/libcmis Source: https://github.com/tdf/libcmis/releases/download/v%{version}/%{name}-%{version}.tar.xz +# https://github.com/tdf/libcmis/issues/51 +Patch: libxmis-0.6.2-libxml2-2.12.0-includes.patch BuildRequires: boost-devel BuildRequires: gcc-c++ diff --git a/libxmis-0.6.2-libxml2-2.12.0-includes.patch b/libxmis-0.6.2-libxml2-2.12.0-includes.patch new file mode 100644 index 0000000..b9a9faf --- /dev/null +++ b/libxmis-0.6.2-libxml2-2.12.0-includes.patch @@ -0,0 +1,23 @@ +From 72618e63433c7243e4d9e79a638f19a09402eecc Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner +Date: Tue, 21 Nov 2023 23:10:07 +0100 +Subject: [PATCH] Fix build with libxml2-2.12 (missing include) + +See also: https://github.com/tdf/libcmis/issues/51 +Signed-off-by: Andreas Sturmlechner +--- + inc/libcmis/xml-utils.hxx | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/inc/libcmis/xml-utils.hxx b/inc/libcmis/xml-utils.hxx +index 929385e1..9bd99aed 100644 +--- a/inc/libcmis/xml-utils.hxx ++++ b/inc/libcmis/xml-utils.hxx +@@ -34,6 +34,7 @@ + #include + + #include ++#include + #include + #include + #include