[SCM] lucene-solr packaging branch, master, updated. upstream/3.6.0-12-g5f32792

James Page james.page at ubuntu.com
Mon May 28 11:21:03 UTC 2012


The following commit has been merged in the master branch:
commit a835e4deba86433796312d981b4457fd97e49fb3
Author: James Page <james.page at ubuntu.com>
Date:   Mon May 28 11:50:18 2012 +0100

    Fixup contrib test failures

diff --git a/debian/control b/debian/control
index 50dd100..2c6a2e8 100644
--- a/debian/control
+++ b/debian/control
@@ -49,7 +49,7 @@ Vcs-Browser: http://git.debian.org/?p=pkg-java/lucene-solr.git
 Package: liblucene3-java
 Architecture: all
 Depends: ${misc:Depends}
-Suggests: liblucene3-java-doc
+Suggests: ant, ant-optional, junit4
 Recommends: liblucene3-contrib-java
 Description: Full-text search engine library for Java(TM)
  Lucene is a full-text search engine for the Java(TM) programming language.
@@ -117,7 +117,12 @@ Depends:
  ${misc:Depends}
 Breaks: solr-common (<< 3.6.0-1)
 Replaces: solr-common (<< 3.6.0-1)
-Suggests: libsolr-java-doc
+Suggests:
+ junit4,
+ libeasymock-java,
+ libjetty-extras-java,
+ libjetty-java,
+ libsolr-java-doc
 Description: Enterprise search server based on Lucene - Java libraries
  Solr is an open source enterprise search server based on the Lucene
  Java search library, with XML/HTTP and JSON APIs, hit highlighting,
@@ -134,8 +139,7 @@ Depends:
  default-jre-headless | java5-runtime-headless | java6-runtime-headless,
  libsolr-java (= ${binary:Version}),
  ${misc:Depends}
-Recommends:
- solr-tomcat (= ${binary:Version}) | solr-jetty (= ${binary:Version})
+Recommends: solr-tomcat (= ${binary:Version}) | solr-jetty (= ${binary:Version})
 Description: Enterprise search server based on Lucene3 - common files
  Solr is an open source enterprise search server based on the Lucene
  Java search library, with XML/HTTP and JSON APIs, hit highlighting,
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..43cf469
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,25 @@
+# Maven ignore rules - ignore some Maven dependencies and plugins
+# Format of this file is:
+# [group] [artifact] [type] [version] [classifier] [scope]
+# where each element can be either
+# - the exact string, for example org.apache for the group, or 3.1
+#   for the version. In this case, the element is simply matched
+#   and left as it is
+# - * (the star character, alone). In this case, anything will
+#   match and be left as it is. For example, using * on the
+#  position of the artifact field will match any artifact id
+# All elements much match before a rule can be applied
+# Example rule: match jar with groupid= junit, artifactid= junit
+# and version starting with 3., this dependency is then removed
+# from the POM
+#   junit junit jar s/3\\..*/3.x/
+
+com.ibm.icu         icu4j      * * * *
+javax.mail          mail       * * * *
+jline               jline      * * * *
+net.arnx            jsonic     * * * *
+com.cybozu.labs     langdetect * * * *
+org.apache.tika     *          * * * *
+org.apache.uima     *          * * * *
+org.apache.velocity *          * * * *
+org.carrot2         *          * * * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..224a773
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,25 @@
+# Maven rules - transform Maven dependencies and plugins
+# Forma of this file is:
+# [group] [artifact] [type] [version] [classifier] [scope]
+# where each element can be either
+# - the exact string, for example org.apache for the group, or 3.1
+#   for the version. In this case, the element is simply matched
+#   and left as it is
+# - * (the star character, alone). In this case, anything will
+#   match and be left as it is. For example, using * on the
+#  position of the artifact field will match any artifact id
+# - a regular expression of the form s/match/replace/
+#   in this case, elements that match are transformed using
+#   the regex rule.
+# All elements much match before a rule can be applied
+# Example rule: match jar with groupid= junit, artifactid= junit
+# and version starting with 3., replacing the version with 3.x
+#   junit junit jar s/3\\..*/3.x/
+
+commons-httpclient         commons-httpclient                                         * s/3\..*/3.x/ * *
+javax.activation           s/activation/gnujaf/                                       * s/.*/debian/ * *
+org.apache.geronimo.specs  s/geronimo-stax-api_1.0_spec/geronimo-activation_1.1_spec/ * s/.*/debian/ * *
+org.codehaus.woodstox      s/wstx-asl/woodstox-core-lgpl/                             * s/.*/debian/ * *
+javax.servlet              servlet-api                                                * s/2\..*/2.5/ * *
+junit                      junit                                                      * s/4\..*/4.x/ * *
+org.mortbay.jetty          *                                                          * s/6\..*/6.x/ * *
diff --git a/debian/patches/icu4.4-compat.patch b/debian/patches/icu4.4-compat.patch
index d60a46f..f082e2f 100644
--- a/debian/patches/icu4.4-compat.patch
+++ b/debian/patches/icu4.4-compat.patch
@@ -7,8 +7,8 @@ Forwarded: not-needed
 
 Index: lucene-solr/lucene/contrib/icu/src/test/org/apache/lucene/collation/TestICUCollationKeyFilter.java
 ===================================================================
---- lucene-solr.orig/lucene/contrib/icu/src/test/org/apache/lucene/collation/TestICUCollationKeyFilter.java	2012-05-28 10:02:19.878070608 +0100
-+++ lucene-solr/lucene/contrib/icu/src/test/org/apache/lucene/collation/TestICUCollationKeyFilter.java	2012-05-28 10:03:17.442563034 +0100
+--- lucene-solr.orig/lucene/contrib/icu/src/test/org/apache/lucene/collation/TestICUCollationKeyFilter.java	2012-05-28 10:05:16.627582079 +0100
++++ lucene-solr/lucene/contrib/icu/src/test/org/apache/lucene/collation/TestICUCollationKeyFilter.java	2012-05-28 10:49:56.000000000 +0100
 @@ -94,6 +94,6 @@
      // orderings - "BFJHD" is the ordering for the ICU Collator for Locale.US.
      testCollationKeySort
@@ -17,3 +17,16 @@ Index: lucene-solr/lucene/contrib/icu/src/test/org/apache/lucene/collation/TestI
 +     "BFJHD", "EACGI", "BJDFH", "BJDHF");
    }
  }
+Index: lucene-solr/lucene/contrib/icu/src/test/org/apache/lucene/collation/TestICUCollationKeyAnalyzer.java
+===================================================================
+--- lucene-solr.orig/lucene/contrib/icu/src/test/org/apache/lucene/collation/TestICUCollationKeyAnalyzer.java	2012-05-23 09:39:25.597827260 +0100
++++ lucene-solr/lucene/contrib/icu/src/test/org/apache/lucene/collation/TestICUCollationKeyAnalyzer.java	2012-05-28 11:00:20.028209522 +0100
+@@ -76,7 +76,7 @@
+     // orderings - "BFJHD" is the ordering for the ICU Collator for Locale.US.
+     testCollationKeySort
+     (usAnalyzer, franceAnalyzer, swedenAnalyzer, denmarkAnalyzer, 
+-     "BFJHD", "ECAGI", "BJDFH", "BJDHF");
++     "BFJHD", "EACGI", "BJDFH", "BJDHF");
+   }
+   
+   public void testThreadSafe() throws Exception {
diff --git a/debian/patches/regex-test-failure.patch b/debian/patches/regex-test-failure.patch
new file mode 100644
index 0000000..feb55e9
--- /dev/null
+++ b/debian/patches/regex-test-failure.patch
@@ -0,0 +1,29 @@
+Description: Upstream ship with version 1.4 of j-regex - however
+ Debian and Ubuntu ship with 1.5 which appears to have a bug in
+ prefix processing see:
+ .
+   https://issues.apache.org/jira/browse/LUCENE-2072
+ .
+ As a result these tests do not pass - so marking as Ignore.
+Author: James Page <james.page at ubuntu.com>
+Forwarded: not-needed
+
+Index: lucene-solr/lucene/contrib/queries/src/test/org/apache/lucene/search/regex/TestJakartaRegexpCapabilities.java
+===================================================================
+--- lucene-solr.orig/lucene/contrib/queries/src/test/org/apache/lucene/search/regex/TestJakartaRegexpCapabilities.java	2012-05-28 11:47:23.896783590 +0100
++++ lucene-solr/lucene/contrib/queries/src/test/org/apache/lucene/search/regex/TestJakartaRegexpCapabilities.java	2012-05-28 11:48:22.813291531 +0100
+@@ -18,12 +18,14 @@
+  */
+ 
+ import org.apache.lucene.util.LuceneTestCase;
++import org.junit.Ignore;
+ 
+ /**
+  * Testcase for {@link JakartaRegexpCapabilities}
+  */
+ public class TestJakartaRegexpCapabilities extends LuceneTestCase {
+ 
++  @Ignore
+   public void testGetPrefix(){
+     JakartaRegexpCapabilities cap = new JakartaRegexpCapabilities();
+     cap.compile("luc[e]?");
diff --git a/debian/patches/series b/debian/patches/series
index 48bba52..b7da83c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ javacc-system.patch
 fix-jar-matches.patch
 disable-ivy.patch
 icu4.4-compat.patch
+regex-test-failure.patch

-- 
lucene-solr packaging



More information about the pkg-java-commits mailing list