Skip to content

Commit

Permalink
dev-cpp/libcmis: Fix build with dev-libs/libxml2-2.12.0
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/917523
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Nov 21, 2023
1 parent 2b96598 commit 123eca6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions dev-cpp/libcmis/files/libcmis-0.6.2-libxml2-2.12.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 72618e63433c7243e4d9e79a638f19a09402eecc Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <[email protected]>
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 <[email protected]>
---
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 929385e..9bd99ae 100644
--- a/inc/libcmis/xml-utils.hxx
+++ b/inc/libcmis/xml-utils.hxx
@@ -34,6 +34,7 @@
#include <string>

#include <boost/date_time.hpp>
+#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpathInternals.h>
#include <libxml/xmlwriter.h>
--
2.43.0

3 changes: 3 additions & 0 deletions dev-cpp/libcmis/libcmis-0.6.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ BDEPEND="
)
"

# https://github.com/tdf/libcmis/pull/52
PATCHES=( "${FILESDIR}/${P}-libxml2-2.12.patch" ) # bug 917523

src_prepare() {
default
eautoreconf
Expand Down

0 comments on commit 123eca6

Please sign in to comment.