Skip to content

Commit

Permalink
patch clucene
Browse files Browse the repository at this point in the history
Signed-off-by: stdpain <[email protected]>
  • Loading branch information
stdpain committed Sep 4, 2024
1 parent fe6940e commit 2858f0c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions thirdparty/download-thirdparty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,17 @@ if [[ -d $TP_SOURCE_DIR/$BITSHUFFLE_SOURCE ]] ; then
echo "Finished patching $BITSHUFFLE_SOURCE"
fi

#patch clucene
if [[ -d $TP_SOURCE_DIR/$CLUCENE_SOURCE ]] ; then
cd $TP_SOURCE_DIR/$CLUCENE_SOURCE
if [ ! -f "$PATCHED_MARK" ] ; then
patch -p1 < "$TP_PATCH_DIR/clucene-gcc14.patch "
touch "$PATCHED_MARK"
fi
cd -
echo "Finished patching $CLUCENE_SOURCE"
fi

#patch poco
if [[ -d $TP_SOURCE_DIR/$POCO_SOURCE ]] ; then
cd $TP_SOURCE_DIR/$POCO_SOURCE
Expand Down
12 changes: 12 additions & 0 deletions thirdparty/patches/clucene-gcc14.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/core/CLucene/document/DateTools.cpp b/src/core/CLucene/document/DateTools.cpp
index f99ab25..72cb74f 100644
--- a/src/core/CLucene/document/DateTools.cpp
+++ b/src/core/CLucene/document/DateTools.cpp
@@ -8,6 +8,7 @@

#include "DateTools.h"
#include "CLucene/util/Misc.h"
+#include <ctime>

CL_NS_USE(util)
CL_NS_DEF(document)

0 comments on commit 2858f0c

Please sign in to comment.