1 |
commit: 8be274041e9b36d5a4ab436ba8d48cb12d981a34 |
2 |
Author: Denis Pronin <dannftk <AT> yandex <DOT> ru> |
3 |
AuthorDate: Fri Feb 21 12:55:44 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 2 09:09:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8be27404 |
7 |
|
8 |
dev-cpp/clucene: fix building w/ clang and libc++ |
9 |
|
10 |
Signed-off-by: Denis Pronin <dannftk <AT> yandex.ru> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/14730 |
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
dev-cpp/clucene/clucene-2.3.3.4-r6.ebuild | 1 + |
15 |
dev-cpp/clucene/files/clucene-2.3.3.4-gmtime.patch | 12 ++++++++++++ |
16 |
2 files changed, 13 insertions(+) |
17 |
|
18 |
diff --git a/dev-cpp/clucene/clucene-2.3.3.4-r6.ebuild b/dev-cpp/clucene/clucene-2.3.3.4-r6.ebuild |
19 |
index 31b96850ad9..49e53b0da09 100644 |
20 |
--- a/dev-cpp/clucene/clucene-2.3.3.4-r6.ebuild |
21 |
+++ b/dev-cpp/clucene/clucene-2.3.3.4-r6.ebuild |
22 |
@@ -33,6 +33,7 @@ PATCHES=( |
23 |
"${FILESDIR}/${P}-contrib.patch" |
24 |
"${FILESDIR}/${P}-pkgconfig.patch" |
25 |
"${FILESDIR}/${P}-gcc6.patch" |
26 |
+ "${FILESDIR}/${P}-gmtime.patch" |
27 |
) |
28 |
|
29 |
src_prepare() { |
30 |
|
31 |
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 |
32 |
new file mode 100644 |
33 |
index 00000000000..d4c702bf217 |
34 |
--- /dev/null |
35 |
+++ b/dev-cpp/clucene/files/clucene-2.3.3.4-gmtime.patch |
36 |
@@ -0,0 +1,12 @@ |
37 |
+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 |
38 |
+--- clucene-core-2.3.3.4/src/core/CLucene/document/DateTools.cpp 2011-03-17 03:21:07.000000000 +0300 |
39 |
++++ clucene-core-2.3.3.4.new/src/core/CLucene/document/DateTools.cpp 2020-02-21 15:20:17.382575302 +0300 |
40 |
+@@ -9,6 +9,8 @@ |
41 |
+ #include "DateTools.h" |
42 |
+ #include "CLucene/util/Misc.h" |
43 |
+ |
44 |
++#include <ctime> |
45 |
++ |
46 |
+ CL_NS_USE(util) |
47 |
+ CL_NS_DEF(document) |
48 |
+ |