[pkg-java] r5589 - in trunk/lucene2/debian: . patches patches/old
janpascal-guest at alioth.debian.org
janpascal-guest at alioth.debian.org
Fri Feb 1 13:19:41 UTC 2008
Author: janpascal-guest
Date: 2008-02-01 13:19:40 +0000 (Fri, 01 Feb 2008)
New Revision: 5589
Added:
trunk/lucene2/debian/patches/81_prevent-network-access.dpatch
Removed:
trunk/lucene2/debian/patches/old/20_remove-gdata-server.dpatch
Modified:
trunk/lucene2/debian/changelog
trunk/lucene2/debian/patches/00list
trunk/lucene2/debian/rules
Log:
Removed three empty directories from the -doc package; Disabled one of the contrib/highlighter tests since it needs network access; Removed the gdata patch completely, since gdata is removed from lucene
Modified: trunk/lucene2/debian/changelog
===================================================================
--- trunk/lucene2/debian/changelog 2008-02-01 11:43:04 UTC (rev 5588)
+++ trunk/lucene2/debian/changelog 2008-02-01 13:19:40 UTC (rev 5589)
@@ -1,4 +1,4 @@
-lucene2 (2.3.0+ds1-1) UNRELEASED; urgency=low
+lucene2 (2.3.0+ds1-1) unstable; urgency=low
[ Varun Hiremath ]
* New upstream release
@@ -27,7 +27,7 @@
* Prevent the test run to download anything, which would not work for
autobuilders
- -- Jan-Pascal van Best <janpascal at vanbest.org> Fri, 01 Feb 2008 10:42:29 +0100
+ -- Jan-Pascal van Best <janpascal at vanbest.org> Fri, 01 Feb 2008 14:18:11 +0100
lucene2 (2.2.0-2) unstable; urgency=low
Modified: trunk/lucene2/debian/patches/00list
===================================================================
--- trunk/lucene2/debian/patches/00list 2008-02-01 11:43:04 UTC (rev 5588)
+++ trunk/lucene2/debian/patches/00list 2008-02-01 13:19:40 UTC (rev 5589)
@@ -8,5 +8,4 @@
61_lucli-script.dpatch
70_fix-contrib-regex-libs.dpatch
80_prevent-downloading-data-files.dpatch
-#80_fix-javadocs-classpath.dpatch
-#81_fix-javadocs-links.dpatch
+81_prevent-network-access.dpatch
Added: trunk/lucene2/debian/patches/81_prevent-network-access.dpatch
===================================================================
--- trunk/lucene2/debian/patches/81_prevent-network-access.dpatch (rev 0)
+++ trunk/lucene2/debian/patches/81_prevent-network-access.dpatch 2008-02-01 13:19:40 UTC (rev 5589)
@@ -0,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 81_prevent-network-access.dpatch by Jan-Pascal van Best <janpascal at vanbest.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Disable one of the tests in contrib/highlighter. It seems the XML parser
+## DP: resolves the DTD or xmlns address, causing network access which can cause
+## DP: trouble when running automated builds.
+
+ at DPATCH@
+diff -urNad lucene2~/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java lucene2/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java
+--- lucene2~/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java 2008-01-21 02:29:36.000000000 +0100
++++ lucene2/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java 2008-02-01 14:15:45.000000000 +0100
+@@ -449,6 +449,8 @@
+ * Demonstrates creation of an XHTML compliant doc using new encoding facilities.
+ * @throws Exception
+ */
++
++ /* Disabled for Debian packaging, causes network access during builds
+ public void testEncoding() throws Exception
+ {
+ String rawDocContent = "\"Smith & sons' prices < 3 and >4\" claims article";
+@@ -499,6 +501,7 @@
+ String decodedSnippet=h2.getFirstChild().getNodeValue();
+ assertEquals("XHTML Encoding should have worked:", rawDocContent,decodedSnippet);
+ }
++ */
+
+ public void testMultiSearcher() throws Exception
+ {
Property changes on: trunk/lucene2/debian/patches/81_prevent-network-access.dpatch
___________________________________________________________________
Name: svn:executable
+ *
Deleted: trunk/lucene2/debian/patches/old/20_remove-gdata-server.dpatch
===================================================================
--- trunk/lucene2/debian/patches/old/20_remove-gdata-server.dpatch 2008-02-01 11:43:04 UTC (rev 5588)
+++ trunk/lucene2/debian/patches/old/20_remove-gdata-server.dpatch 2008-02-01 13:19:40 UTC (rev 5589)
@@ -1,78 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 20_remove-gdata-server.dpatch by Jan-Pascal van Best <janpascal at vanbest.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: No description.
-
- at DPATCH@
-diff -urNad trunk~/build.xml trunk/build.xml
---- trunk~/build.xml 2007-06-05 13:18:25.000000000 +0200
-+++ trunk/build.xml 2007-06-05 13:19:51.000000000 +0200
-@@ -28,6 +28,7 @@
- <!-- NOTE: gdata jars only used with jdk 5 but include them even for lower jdk -->
- <fileset dir="contrib">
- <include name="**/*.jar"/>
-+ <exclude name="gdata-server/**/*.jar"/>
- </fileset>
- </path>
-
-@@ -51,10 +52,11 @@
-
- <patternset id="src.dist.patterns"
- includes="src/,build.xml,*build*.xml,docs/,*.txt,contrib/,"
-- excludes="contrib/db/*/lib/,contrib/*/ext-libs/,src/site/build/"
-+ excludes="contrib/db/*/lib/,contrib/*/ext-libs/,src/site/build/,contrib/gdata-server/"
- />
- <patternset id="binary.build.dist.patterns"
- includes="${final.name}.jar,${demo.war.name}.war,${demo.name}.jar,docs/,contrib/*/*.jar"
-+ excludes="contrib/gdata-server/*.jar"
- />
- <patternset id="binary.root.dist.patterns"
- includes="src/demo/,src/jsp/,docs/,*.txt"
-@@ -370,6 +372,7 @@
- <subant target="@{target}" failonerror="@{failonerror}">
- <fileset dir="."
- includes="contrib/*/build.xml"
-+ excludes="contrib/gdata-server/build.xml"
- />
- </subant>
- </sequential>
-@@ -399,7 +402,7 @@
- <attribute name="access"/>
- <attribute name="destdir"/>
- <sequential>
--
-+ <!-- debian-ignore
- <dirset dir="contrib/gdata-server/src/core/src/java" id="gdata-server-core">
- <include name="**" if="build-1-5-contrib" />
- </dirset>
-@@ -409,6 +412,7 @@
- <dirset dir="contrib/gdata-server/src/hivemind/src/java" id="gdata-server-hivemind">
- <include name="**" if="build-1-5-contrib" />
- </dirset>
-+ -->
-
- <javadoc
- overview="src/java/overview.html"
-@@ -459,9 +463,11 @@
- <packageset dir="contrib/wordnet/src/java"/>
- <packageset dir="contrib/xml-query-parser/src/java"/>
- <!-- end alpha sort -->
-+ <!-- debian-ignore
- <packageset refid="gdata-server-core" />
- <packageset refid="gdata-server-gom" />
- <packageset refid="gdata-server-hivemind" />
-+ -->
-
- <!-- If the main javadoc Group listing includes an "Other -->
- <!-- Packages" group after the ones listed here, then those -->
-@@ -476,7 +482,9 @@
- <group title="contrib: Benchmark" packages="org.apache.lucene.benchmark*"/>
- <group title="contrib: DB" packages="org.apache.lucene.store.db*:org.apache.lucene.store.je*:com.sleepycat*"/>
- <group title="contrib: Highlighter" packages="org.apache.lucene.search.highlight*"/>
-+ <!-- debian-ignore
- <group title="contrib: GData Server (Java1.5)" packages="org.apache.lucene.gdata.*"/>
-+ -->
- <group title="contrib: Lucli" packages="lucli*"/>
- <group title="contrib: Memory" packages="org.apache.lucene.index.memory*"/>
- <group title="contrib: Miscellaneous " packages="org.apache.lucene.misc*:org.apache.lucene.queryParser.analyzing*:org.apache.lucene.queryParser.precedence*"/>
Modified: trunk/lucene2/debian/rules
===================================================================
--- trunk/lucene2/debian/rules 2008-02-01 11:43:04 UTC (rev 5588)
+++ trunk/lucene2/debian/rules 2008-02-01 13:19:40 UTC (rev 5589)
@@ -12,6 +12,7 @@
# Build with Sun JDK 1.5
JAVA_HOME := /usr/lib/jvm/java-1.5.0-sun
+# JAVA_HOME := /usr/lib/jvm/java-gcj
DEB_ANT_BUILD_TARGET := javacc jar-core build-contrib war-demo javadocs
DEB_ANT_CHECK_TARGET := test
@@ -66,6 +67,10 @@
mkdir -p $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/
cp -r docs $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/
cp -r build/docs/* $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/
+ # Remove empty directories
+ rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/skin/css
+ rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/skin/scripts
+ rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/docs/skin/translations
install -d $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/demo
install -m 644 build/lucene-demos-$(UPSTREAM_VERSION).jar $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/demo/
install -m 644 build/luceneweb.war $(CURDIR)/debian/liblucene2-java-doc/usr/share/doc/liblucene2-java-doc/demo/
More information about the pkg-java-commits
mailing list