[scilab] 22/29: Add patch to handle the lucene 4.10 api

Julien Puydt julien.puydt at laposte.net
Wed Nov 22 17:19:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository scilab.

commit 27d33971a268f3a3bcf2e623b21d820f7258c266
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Thu Nov 16 00:15:20 2017 +0100

    Add patch to handle the lucene 4.10 api
---
 debian/changelog                 |  1 +
 debian/patches/lucene_4.10.patch | 23 +++++++++++++++++++++++
 debian/patches/series            |  1 +
 3 files changed, 25 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 411e999..cbdcef3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -29,6 +29,7 @@ scilab (6.0.0-1) UNRELEASED; urgency=medium
     - Refresh patch for gcc 7.
     - Refresh patch to fix the build with OCaml 4.05.
     - Add new build-depends. 
+    - Add patch to handle the lucene 4.10 api. 
 
  -- Julien Puydt <julien.puydt at laposte.net>  Tue, 14 Nov 2017 16:46:25 +0100
 
diff --git a/debian/patches/lucene_4.10.patch b/debian/patches/lucene_4.10.patch
new file mode 100644
index 0000000..61bffec
--- /dev/null
+++ b/debian/patches/lucene_4.10.patch
@@ -0,0 +1,23 @@
+Description: adapt the code to lucene 4.10 api
+Author: Julien Puydt
+Forwarded: no
+
+--- a/modules/xcos/src/java/org/scilab/modules/xcos/palette/PaletteSearchManager.java
++++ b/modules/xcos/src/java/org/scilab/modules/xcos/palette/PaletteSearchManager.java
+@@ -32,6 +32,7 @@
+ import org.apache.lucene.index.IndexWriterConfig.OpenMode;
+ import org.apache.lucene.store.Directory;
+ import org.apache.lucene.store.RAMDirectory;
++import org.apache.lucene.util.Version;
+ import org.scilab.modules.xcos.palette.model.PaletteBlock;
+ import org.scilab.modules.xcos.palette.model.PaletteNode;
+ import org.scilab.modules.xcos.palette.model.PreLoaded;
+@@ -60,7 +61,7 @@
+         try {
+             Directory ramDir = new RAMDirectory();
+             analyzer = new StandardAnalyzer();
+-            IndexWriterConfig config = new IndexWriterConfig(analyzer);
++            IndexWriterConfig config = new IndexWriterConfig(Version.LATEST, analyzer);
+             config.setOpenMode(OpenMode.CREATE);
+             writer = new IndexWriter(ramDir, config);
+         } catch (IOException ex) {
diff --git a/debian/patches/series b/debian/patches/series
index c9458ee..b87a0e2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ libjogl2-java-2.3.2.diff
 hdf5-1.10-api.patch
 gcc-7.patch
 fix-ocaml-4.05.patch
+lucene_4.10.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/scilab.git



More information about the debian-science-commits mailing list