From: Denis Pronin Date: Fri, 21 Feb 2020 12:55:44 +0000 (+0300) Subject: dev-cpp/clucene: fix building w/ clang and libc++ X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8be274041e9b36d5a4ab436ba8d48cb12d981a34;p=gentoo.git dev-cpp/clucene: fix building w/ clang and libc++ Signed-off-by: Denis Pronin Closes: https://github.com/gentoo/gentoo/pull/14730 Signed-off-by: Michał Górny --- diff --git a/dev-cpp/clucene/clucene-2.3.3.4-r6.ebuild b/dev-cpp/clucene/clucene-2.3.3.4-r6.ebuild index 31b96850ad9e..49e53b0da09d 100644 --- a/dev-cpp/clucene/clucene-2.3.3.4-r6.ebuild +++ b/dev-cpp/clucene/clucene-2.3.3.4-r6.ebuild @@ -33,6 +33,7 @@ PATCHES=( "${FILESDIR}/${P}-contrib.patch" "${FILESDIR}/${P}-pkgconfig.patch" "${FILESDIR}/${P}-gcc6.patch" + "${FILESDIR}/${P}-gmtime.patch" ) src_prepare() { diff --git a/dev-cpp/clucene/files/clucene-2.3.3.4-gmtime.patch b/dev-cpp/clucene/files/clucene-2.3.3.4-gmtime.patch new file mode 100644 index 000000000000..d4c702bf217b --- /dev/null +++ b/dev-cpp/clucene/files/clucene-2.3.3.4-gmtime.patch @@ -0,0 +1,12 @@ +diff -Naur clucene-core-2.3.3.4/src/core/CLucene/document/DateTools.cpp clucene-core-2.3.3.4.new/src/core/CLucene/document/DateTools.cpp +--- clucene-core-2.3.3.4/src/core/CLucene/document/DateTools.cpp 2011-03-17 03:21:07.000000000 +0300 ++++ clucene-core-2.3.3.4.new/src/core/CLucene/document/DateTools.cpp 2020-02-21 15:20:17.382575302 +0300 +@@ -9,6 +9,8 @@ + #include "DateTools.h" + #include "CLucene/util/Misc.h" + ++#include ++ + CL_NS_USE(util) + CL_NS_DEF(document) +