diff --git a/recipes-filter/libe-book/libe-book/0001-Fix-build-with-ICU-68.patch b/recipes-filter/libe-book/libe-book/0001-Fix-build-with-ICU-68.patch new file mode 100644 index 0000000..fff059a --- /dev/null +++ b/recipes-filter/libe-book/libe-book/0001-Fix-build-with-ICU-68.patch @@ -0,0 +1,38 @@ +From 70a92974df1d3b35811c2354fcec00c791159b82 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Tue, 24 Nov 2020 22:38:21 +0100 +Subject: [PATCH] Fix build with ICU >= 68 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Andreas Müller +--- + src/lib/EBOOKCharsetConverter.cpp | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/src/lib/EBOOKCharsetConverter.cpp b/src/lib/EBOOKCharsetConverter.cpp +index 0d85fa3..2631ba4 100644 +--- a/src/lib/EBOOKCharsetConverter.cpp ++++ b/src/lib/EBOOKCharsetConverter.cpp +@@ -26,6 +26,17 @@ class ConverterException + { + }; + ++// Since icu 68.1 icu we have to: ++#ifndef TRUE ++// Taken from umachibe.h: ++/** ++ * The TRUE value of a UBool. ++ * ++ * @deprecated ICU 68 Use standard "true" instead. ++ */ ++# define TRUE true ++#endif ++ + /** Guess character set of the text. + + @param[in] text the text +-- +2.26.2 + diff --git a/recipes-filter/libe-book/libe-book_0.1.3.bb b/recipes-filter/libe-book/libe-book_0.1.3.bb index 25f31bb..5167c42 100644 --- a/recipes-filter/libe-book/libe-book_0.1.3.bb +++ b/recipes-filter/libe-book/libe-book_0.1.3.bb @@ -5,7 +5,10 @@ LIC_FILES_CHKSUM = " \ file://COPYING;md5=815ca599c9df247a0c7f619bab123dad \ " -SRC_URI = "https://dev-www.libreoffice.org/src/${BPN}-${PV}.tar.xz" +SRC_URI = " \ + https://dev-www.libreoffice.org/src/${BPN}-${PV}.tar.xz \ + file://0001-Fix-build-with-ICU-68.patch \ +" SRC_URI[md5sum] = "2956f1c5e7950b0018979a132165da8b" SRC_URI[sha256sum] = "7e8d8ff34f27831aca3bc6f9cc532c2f90d2057c778963b884ff3d1e34dfe1f9"