[pkg-java] r11391 - in trunk/lucene2/debian: . patches

Jan-Pascal van Best janpascal-guest at alioth.debian.org
Sat Jan 23 14:04:20 UTC 2010


Author: janpascal-guest
Date: 2010-01-23 14:04:19 +0000 (Sat, 23 Jan 2010)
New Revision: 11391

Added:
   trunk/lucene2/debian/patches/12_fix-buildd-failure-in-TestTimeLimitingCollector.dpatch
   trunk/lucene2/debian/patches/82_disable-svnversion-calls.dpatch
Modified:
   trunk/lucene2/debian/changelog
   trunk/lucene2/debian/patches/00list
Log:
Disable calling svnversion during package build; Backport upstream fix (svn 834011): fix bug that causes false positive

Modified: trunk/lucene2/debian/changelog
===================================================================
--- trunk/lucene2/debian/changelog	2010-01-22 12:47:05 UTC (rev 11390)
+++ trunk/lucene2/debian/changelog	2010-01-23 14:04:19 UTC (rev 11391)
@@ -1,3 +1,11 @@
+lucene2 (2.9.1+ds1-4) unstable; urgency=low
+
+  * Disable calling svnversion during package build
+  * Backport upstream fix (svn 834011): fix bug that causes false positive
+    failure in the test (Closes: #562308)
+
+ -- Jan-Pascal van Best <janpascal at vanbest.org>  Fri, 22 Jan 2010 12:49:57 +0100
+
 lucene2 (2.9.1+ds1-3) unstable; urgency=low
 
   * Mention in this changelog that CVE-2007-2383 has been fixed

Modified: trunk/lucene2/debian/patches/00list
===================================================================
--- trunk/lucene2/debian/patches/00list	2010-01-22 12:47:05 UTC (rev 11390)
+++ trunk/lucene2/debian/patches/00list	2010-01-23 14:04:19 UTC (rev 11391)
@@ -2,6 +2,7 @@
 05_add-osgi-metadata-in-manifests.dpatch
 10_fix-javacc-locations.dpatch
 11_fix-javacc-generated-files.dpatch
+12_fix-buildd-failure-in-TestTimeLimitingCollector.dpatch
 20_fix-java-compiler-version.dpatch
 30_fix-contrib-ant-libs.dpatch
 31_fix-contrib-ant-test-wrong-encoding.dpatch
@@ -13,4 +14,5 @@
 61_lucli-script.dpatch
 70_fix-contrib-regex-libs.dpatch
 80_prevent-downloading-data-files.dpatch
-81_disable-test-tag-backcompat-tests.dpatch
+#81_disable-test-tag-backcompat-tests.dpatch
+82_disable-svnversion-calls.dpatch

Added: trunk/lucene2/debian/patches/12_fix-buildd-failure-in-TestTimeLimitingCollector.dpatch
===================================================================
--- trunk/lucene2/debian/patches/12_fix-buildd-failure-in-TestTimeLimitingCollector.dpatch	                        (rev 0)
+++ trunk/lucene2/debian/patches/12_fix-buildd-failure-in-TestTimeLimitingCollector.dpatch	2010-01-23 14:04:19 UTC (rev 11391)
@@ -0,0 +1,34 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 12_fix-buildd-failure-in-TestTimeLimitingCollector.dpatch by Jan-Pascal van Best <janpascal at vanbest.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix bug that causes false positive failure in the test
+## DP: Apache Lucene svn revision 834011
+
+ at DPATCH@
+diff -urNad lucene2~/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java lucene2/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java
+--- lucene2~/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java	2009-10-23 17:21:47.000000000 +0200
++++ lucene2/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java	2010-01-22 12:49:03.000000000 +0100
+@@ -80,7 +80,8 @@
+     searcher = new IndexSearcher(directory);
+ 
+     String qtxt = "one";
+-    for (int i = 0; i < docText.length; i++) {
++    // start from 1, so that the 0th doc never matches
++    for (int i = 1; i < docText.length; i++) {
+       qtxt += ' ' + docText[i]; // large query so that search will be longer
+     }
+     QueryParser queryParser = new QueryParser(FIELD_NAME, new WhitespaceAnalyzer());
+diff -urNad lucene2~/src/test/org/apache/lucene/search/TestTimeLimitingCollector.java lucene2/src/test/org/apache/lucene/search/TestTimeLimitingCollector.java
+--- lucene2~/src/test/org/apache/lucene/search/TestTimeLimitingCollector.java	2009-10-23 17:21:47.000000000 +0200
++++ lucene2/src/test/org/apache/lucene/search/TestTimeLimitingCollector.java	2010-01-22 12:44:21.000000000 +0100
+@@ -82,7 +82,8 @@
+     searcher = new IndexSearcher(directory);
+ 
+     String qtxt = "one";
+-    for (int i = 0; i < docText.length; i++) {
++    // start from 1, so that the 0th doc never matches
++    for (int i = 1; i < docText.length; i++) {
+       qtxt += ' ' + docText[i]; // large query so that search will be longer
+     }
+     QueryParser queryParser = new QueryParser(FIELD_NAME, new WhitespaceAnalyzer());


Property changes on: trunk/lucene2/debian/patches/12_fix-buildd-failure-in-TestTimeLimitingCollector.dpatch
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/lucene2/debian/patches/82_disable-svnversion-calls.dpatch
===================================================================
--- trunk/lucene2/debian/patches/82_disable-svnversion-calls.dpatch	                        (rev 0)
+++ trunk/lucene2/debian/patches/82_disable-svnversion-calls.dpatch	2010-01-23 14:04:19 UTC (rev 11391)
@@ -0,0 +1,49 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 82_disable-svnversion-calls.dpatch by Jan-Pascal van Best <janpascal at vanbest.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Remove the calls to svnversion. svnversion is used to include the
+## DP: svn revision of the lucene source in the Manifest files, but calling
+## DP: svnversion may require network access which isn't available in buildds
+
+ at DPATCH@
+diff -urNad lucene2~/common-build.xml lucene2/common-build.xml
+--- lucene2~/common-build.xml	2010-01-22 09:36:40.000000000 +0100
++++ lucene2/common-build.xml	2010-01-22 09:37:27.000000000 +0100
+@@ -99,15 +99,6 @@
+ 
+   <property name="manifest.file" location="${common.dir}/build/MANIFEST.MF"/>
+ 
+-  <!-- 
+-    we attempt to exec svnversion to get details build information
+-    for jar manifests.  this property can be set at runtime to an
+-    explicit path as needed, or ant will just try to find it in the
+-    default PATH. (this is useful for Hudson)
+-  -->
+-  <property name="svnversion.exe" value="svnversion" />
+-  <property name="svn.exe" value="svn" />
+-  
+   <condition property="build-1-5-contrib">
+      <equals arg1="1.5" arg2="${ant.java.version}" />
+   </condition>
+@@ -307,7 +298,7 @@
+ 		<attribute name="Implementation-Title" value="org.apache.lucene"/>
+ 		<!-- impl version can be any string -->
+ 		<attribute name="Implementation-Version"
+-		           value="${version} ${svnversion} - ${DSTAMP} ${TSTAMP}"/>
++		           value="${version} - ${DSTAMP} ${TSTAMP}"/>
+ 		<attribute name="Implementation-Vendor"
+ 		           value="The Apache Software Foundation"/>
+ 		<attribute name="X-Compile-Source-JDK" 
+@@ -347,11 +338,6 @@
+     <element name="manifest-attributes" optional="yes"/>
+   	<element name="metainf-includes" optional="yes"/>
+     <sequential>
+-      <!-- If possible, include the svnversion -->
+-      <exec dir="." executable="${svnversion.exe}"
+-            outputproperty="svnversion" failifexecutionfails="false">
+-        <arg line="."/>
+-      </exec>
+       
+       <build-manifest/>
+     	


Property changes on: trunk/lucene2/debian/patches/82_disable-svnversion-calls.dpatch
___________________________________________________________________
Added: svn:executable
   + *




More information about the pkg-java-commits mailing list