commit:     250380cdb85131d3aa4d4961c594ba78b5af9be4
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 24 16:07:27 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Dec 24 16:08:11 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=250380cd

dev-tcltk/tclxml: undefine bool

Closes: https://bugs.gentoo.org/760159
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-tcltk/tclxml/files/tclxml-3.2.7-bool.patch | 26 ++++++++++++++++++++++++++
 dev-tcltk/tclxml/tclxml-3.2.7.ebuild           |  1 +
 2 files changed, 27 insertions(+)

diff --git a/dev-tcltk/tclxml/files/tclxml-3.2.7-bool.patch 
b/dev-tcltk/tclxml/files/tclxml-3.2.7-bool.patch
new file mode 100644
index 00000000000..8d29180f082
--- /dev/null
+++ b/dev-tcltk/tclxml/files/tclxml-3.2.7-bool.patch
@@ -0,0 +1,26 @@
+--- a/tclxml.c 2020-12-24 16:58:20.051675497 +0100
++++ b/tclxml.c 2020-12-24 16:58:49.586185021 +0100
+@@ -20,6 +20,10 @@
+ #include <tclxslt/tclxslt.h>
+ #include <string.h>
+ 
++#ifdef bool
++#undef bool
++#endif
++
+ int Tcldom_libxml2_Init ( Tcl_Interp *interp );
+ 
+ #define TCL_DOES_STUBS \
+--- a/tclxslt-libxslt.c        2020-12-24 16:59:07.004895777 +0100
++++ b/tclxslt-libxslt.c        2020-12-24 16:59:46.280243657 +0100
+@@ -20,6 +20,10 @@
+ #include <libxslt/imports.h>
+ #include <libxslt/security.h>
+ 
++#ifdef bool
++#undef bool
++#endif
++
+ #undef TCL_STORAGE_CLASS
+ #define TCL_STORAGE_CLASS DLLEXPORT
+ 

diff --git a/dev-tcltk/tclxml/tclxml-3.2.7.ebuild 
b/dev-tcltk/tclxml/tclxml-3.2.7.ebuild
index af6d475303e..454695c0e26 100644
--- a/dev-tcltk/tclxml/tclxml-3.2.7.ebuild
+++ b/dev-tcltk/tclxml/tclxml-3.2.7.ebuild
@@ -28,6 +28,7 @@ RESTRICT="test"
 
 PATCHES=(
                "${FILESDIR}"/${PN}-3.2-fix-implicit-declarations.patch
+               "${FILESDIR}"/${P}-bool.patch
 )
 
 src_configure() {

Reply via email to