[Libreoffice-commits] core.git: external/libetonyek
Stephan Bergmann
sbergman at redhat.com
Mon Oct 27 14:06:49 PDT 2014
external/libetonyek/ExternalProject_libetonyek.mk | 2 +-
external/libetonyek/UnpackedTarball_libetonyek.mk | 6 +++++-
external/libetonyek/assert.patch | 20 ++++++++++++++++++++
3 files changed, 26 insertions(+), 2 deletions(-)
New commits:
commit e7682068a184d5233229533585f9bd06298c7731
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Oct 27 22:06:10 2014 +0100
Pass ENABLE_DEBUG into external/libetonyek
(and consequently fix the argument type of one assert invocation)
Change-Id: I8bf5f024cc104a3885f7b9bf6ed63b9f6259d47b
diff --git a/external/libetonyek/ExternalProject_libetonyek.mk b/external/libetonyek/ExternalProject_libetonyek.mk
index 84d6e7f..0d281b5 100644
--- a/external/libetonyek/ExternalProject_libetonyek.mk
+++ b/external/libetonyek/ExternalProject_libetonyek.mk
@@ -30,7 +30,7 @@ $(call gb_ExternalProject_get_state_target,libetonyek,build) :
--enable-static \
--disable-shared \
--without-docs \
- --disable-debug \
+ $(if $(ENABLE_DEBUG),--enable-debug,--disable-debug) \
--disable-werror \
--disable-weffc \
--without-tools \
diff --git a/external/libetonyek/UnpackedTarball_libetonyek.mk b/external/libetonyek/UnpackedTarball_libetonyek.mk
index 7a8746c..448e41e 100644
--- a/external/libetonyek/UnpackedTarball_libetonyek.mk
+++ b/external/libetonyek/UnpackedTarball_libetonyek.mk
@@ -11,6 +11,10 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,libetonyek))
$(eval $(call gb_UnpackedTarball_set_tarball,libetonyek,$(ETONYEK_TARBALL)))
-$(eval $(call gb_UnpackedTarball_set_patchlevel,libetonyek,1))
+$(eval $(call gb_UnpackedTarball_set_patchlevel,libetonyek,0))
+
+$(eval $(call gb_UnpackedTarball_add_patches,libetonyek, \
+ external/libetonyek/assert.patch \
+))
# vim: set noet sw=4 ts=4:
diff --git a/external/libetonyek/assert.patch b/external/libetonyek/assert.patch
new file mode 100644
index 0000000..39d68db
--- /dev/null
+++ b/external/libetonyek/assert.patch
@@ -0,0 +1,20 @@
+--- src/lib/EtonyekDocument.cpp
++++ src/lib/EtonyekDocument.cpp
+@@ -7,6 +7,8 @@
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
++#include <cassert>
++
+ #include <boost/scoped_ptr.hpp>
+ #include <boost/shared_ptr.hpp>
+ #include <boost/logic/tribool.hpp>
+@@ -179,7 +181,7 @@
+ info.input->seek(0, RVNG_SEEK_SET);
+ }
+
+- assert(!isGzipped);
++ assert(bool(!isGzipped));
+
+ return probeXMLImpl(info.input, probe, type, info);
+ }
More information about the Libreoffice-commits
mailing list