Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/clucene/files/
Date: Mon, 14 Jun 2021 15:08:52
Message-Id: 1623683300.6ad363bb19b264c0e3405a38c1969c5bc9b259d0.juippis@gentoo
1 commit: 6ad363bb19b264c0e3405a38c1969c5bc9b259d0
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 14 15:08:20 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 14 15:08:20 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ad363bb
7
8 dev-cpp/clucene: add the .patch file to fix clang build issue
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 .../clucene/files/clucene-2.3.3.4-fix-clang.patch | 35 ++++++++++++++++++++++
13 1 file changed, 35 insertions(+)
14
15 diff --git a/dev-cpp/clucene/files/clucene-2.3.3.4-fix-clang.patch b/dev-cpp/clucene/files/clucene-2.3.3.4-fix-clang.patch
16 new file mode 100644
17 index 00000000000..f743fa8c448
18 --- /dev/null
19 +++ b/dev-cpp/clucene/files/clucene-2.3.3.4-fix-clang.patch
20 @@ -0,0 +1,35 @@
21 +--- /src/core/CLucene/queryParser/QueryParser.cpp.original 2018-08-02 15:11:33.157174224 +0200
22 ++++ /src/core/CLucene/queryParser/QueryParser.cpp 2018-08-02 15:12:33.189175705 +0200
23 +@@ -79,7 +79,7 @@
24 + _T("<RANGEEX_GOOP>")
25 + };
26 +
27 +-const int32_t QueryParser::jj_la1_0[] = {0x180,0x180,0xe00,0xe00,0x1f69f80,0x48000,0x10000,0x1f69000,0x1348000,0x80000,0x80000,0x10000,0x18000000,0x2000000,0x18000000,0x10000,0x80000000,0x20000000,0x80000000,0x10000,0x80000,0x10000,0x1f68000};
28 ++const int32_t QueryParser::jj_la1_0[] = {0x180,0x180,0xe00,0xe00,0x1f69f80,0x48000,0x10000,0x1f69000,0x1348000,0x80000,0x80000,0x10000,0x18000000,0x2000000,0x18000000,0x10000,(int32_t)0x80000000,0x20000000,(int32_t)0x80000000,0x10000,0x80000,0x10000,0x1f68000};
29 + const int32_t QueryParser::jj_la1_1[] = {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x0,0x0,0x0,0x0};
30 +
31 + struct QueryParser::JJCalls {
32 +--- /src/core/CLucene/queryParser/QueryParserTokenManager.cpp.original 2018-08-02 15:14:27.104178515 +0200
33 ++++ /src/core/CLucene/queryParser/QueryParserTokenManager.cpp 2018-08-02 15:15:10.399179583 +0200
34 +@@ -15,9 +15,9 @@
35 +
36 + CL_NS_DEF(queryParser)
37 +
38 +-const int64_t QueryParserTokenManager::jjbitVec2[]={0x0L, 0x0L, _ILONGLONG(0xffffffffffffffff), _ILONGLONG(0xffffffffffffffff)};
39 ++const int64_t QueryParserTokenManager::jjbitVec2[]={0x0L, 0x0L, (int64_t)_ILONGLONG(0xffffffffffffffff), (int64_t)_ILONGLONG(0xffffffffffffffff)};
40 + const int64_t QueryParserTokenManager::jjbitVec0[] = {
41 +- _ILONGLONG(0xfffffffffffffffe), _ILONGLONG(0xffffffffffffffff), _ILONGLONG(0xffffffffffffffff), _ILONGLONG(0xffffffffffffffff)
42 ++ (int64_t)_ILONGLONG(0xfffffffffffffffe), (int64_t)_ILONGLONG(0xffffffffffffffff), (int64_t)_ILONGLONG(0xffffffffffffffff), (int64_t)_ILONGLONG(0xffffffffffffffff)
43 + };
44 + const int32_t QueryParserTokenManager::jjnextStates[]={
45 + 15, 17, 18, 29, 32, 23, 33, 30, 20, 21, 32, 23, 33, 31, 34, 27,
46 +--- /src/core/CLucene/document/DateTools.cpp.original 2018-08-02 15:20:28.903187441 +0200
47 ++++ /src/core/CLucene/document/DateTools.cpp 2018-08-02 15:20:35.441187602 +0200
48 +@@ -8,6 +8,7 @@
49 +
50 + #include "DateTools.h"
51 + #include "CLucene/util/Misc.h"
52 ++#include <time.h>
53 +
54 + CL_NS_USE(util)
55 + CL_NS_DEF(document)