[lucene2] 68/104: Changes for lucene 2.9.0 final

Kai-Chung Yan seamlik-guest at moszumanska.debian.org
Wed Mar 23 16:27:33 UTC 2016


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

seamlik-guest pushed a commit to branch master
in repository lucene2.

commit 8bdbd0ebf72f8b7f34b8680f149a1a306eb5f09f
Author: Jan-Pascal van Best <janpascal at vanbest.org>
Date:   Thu Oct 8 18:58:33 2009 +0000

    Changes for lucene 2.9.0 final
---
 debian/ant.properties                              |  2 +-
 debian/changelog                                   |  4 +--
 debian/get-orig-source.sh                          | 10 +++---
 debian/patches/00list                              |  2 +-
 .../patches/11_fix-javacc-generated-files.dpatch   | 42 ++++++++++++++++++++++
 .../11_run-javacc-for-contrib-queryparser.dpatch   | 11 +++++-
 debian/rules                                       |  7 ++--
 7 files changed, 64 insertions(+), 14 deletions(-)

diff --git a/debian/ant.properties b/debian/ant.properties
index 3d5b28c..3350870 100644
--- a/debian/ant.properties
+++ b/debian/ant.properties
@@ -2,7 +2,7 @@
 
 # Version number for upstream source; errors in the 
 # upstream source require that it be overridden.
-version=2.9.0~rc0
+version=2.9.0
 
 # javacc settings used by Lucene build
 javacc.home=/usr/share/java
diff --git a/debian/changelog b/debian/changelog
index 09c0ee8..cba463f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,10 @@
-lucene2 (2.9.0~rc0+ds1-1) unstable; urgency=low
+lucene2 (2.9.0+ds1-1) unstable; urgency=low
 
   * New upstream version
   * Updated Debian patches for Lucene 2.9
   * Bumped standards version to 3.8.2 (no changes needed)
 
- -- Jan-Pascal van Best <janpascal at vanbest.org>  Fri, 21 Aug 2009 13:51:10 +0200
+ -- Jan-Pascal van Best <janpascal at vanbest.org>  Sat, 26 Sep 2009 21:24:03 +0200
 
 lucene2 (2.4.1+ds1-1) unstable; urgency=low
 
diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
index b712c1f..77d4031 100755
--- a/debian/get-orig-source.sh
+++ b/debian/get-orig-source.sh
@@ -4,13 +4,11 @@ DEHS=`( uscan --dehs )`
 
 URL=`echo $DEHS | xsltproc debian/uscan-url.xslt -`
 VERSION=`echo $DEHS | xsltproc debian/uscan-upstream-version.xslt -`
-UPSTREAM_VERSION="2.9-dev"
-VERSION="2.9.0~rc0"
 DEBIAN_SOURCE_VERSION="$VERSION+ds1"
 
 DESTDIR=$PWD/..
-SOURCEFILE=$DESTDIR/lucene-$UPSTREAM_VERSION-src.tar.gz
-SIGFILE=$DESTDIR/lucene-$UPSTREAM_VERSION-src.tar.gz.asc
+SOURCEFILE=$DESTDIR/lucene-$VERSION-src.tar.gz
+SIGFILE=$DESTDIR/lucene-$VERSION-src.tar.gz.asc
 SOURCETAR=$DESTDIR/lucene2_$DEBIAN_SOURCE_VERSION.orig.tar
 
 KEYURL="http://www.apache.org/dist/lucene/java/KEYS"
@@ -22,7 +20,7 @@ if [ ! -r "$SOURCEFILE" ]; then
   wget "$URL" -O $SOURCEFILE
 fi
 
-#wget "$URL.asc" -O $SIGFILE
+wget "$URL.asc" -O $SIGFILE
 
 # If necessary, recreate keyring used for signing
 # Only do this if the keyring is not yet downloaded
@@ -38,7 +36,7 @@ fi
 # Check signature
 gpgv --quiet --keyring $KEYRING $SIGFILE $SOURCEFILE
 
-echo "Check whether the archive has been signed by Michael McCandless (CODE SIGNING KEY) <mikemccand at apache.org>, key ID 6E68DA61"
+echo "Check whether the archive has been signed by Mark Robert Miller (CODE SIGNING KEY) <markrmiller at apache.org>, key ID EB0199F8"
 
 # Repackage upstream source file without the third party jars
 TEMPDIR=`mktemp -d`
diff --git a/debian/patches/00list b/debian/patches/00list
index e983181..035620e 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -1,6 +1,6 @@
 01_remove_all_jarfiles.dpatch
 10_fix-javacc-locations.dpatch
-11_run-javacc-for-contrib-queryparser.dpatch
+11_fix-javacc-generated-files.dpatch
 30_fix-contrib-ant-libs.dpatch
 40_fix-contrib-benchmark-libs.dpatch
 45_fix-contrib-collation-libs.dpatch
diff --git a/debian/patches/11_fix-javacc-generated-files.dpatch b/debian/patches/11_fix-javacc-generated-files.dpatch
new file mode 100755
index 0000000..582037f
--- /dev/null
+++ b/debian/patches/11_fix-javacc-generated-files.dpatch
@@ -0,0 +1,42 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 11_fix-javacc-generated-files.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 lucene2~/contrib/queryparser/build.xml lucene2/contrib/queryparser/build.xml
+--- lucene2~/contrib/queryparser/build.xml	2009-10-08 18:23:39.000000000 +0200
++++ lucene2/contrib/queryparser/build.xml	2009-10-08 18:24:45.000000000 +0200
+@@ -54,8 +54,8 @@
+   	                         match="^  public ParseException\(Token currentTokenVal.*$(\s\s[^}].*\n)*  \}"
+   	                         replace="  public ParseException(Token currentTokenVal,

+   	        int[][] expectedTokenSequencesVal, String[] tokenImageVal) {

+-  	    super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, initialise(

+-  	      currentTokenVal, expectedTokenSequencesVal, tokenImageVal)));

++  	    super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, new Object[]{initialise(

++  	      currentTokenVal, expectedTokenSequencesVal, tokenImageVal)}));

+   	    this.currentToken = currentTokenVal;

+   	    this.expectedTokenSequences = expectedTokenSequencesVal;

+   	    this.tokenImage = tokenImageVal;

+@@ -72,7 +72,7 @@
+   	    <replaceregexp file="src/java/org/apache/lucene/queryParser/standard/parser/ParseException.java"
+   	                         match="^  public ParseException\(\).*$(\s\s[^}].*\n)*  \}"
+   	                         replace="  public ParseException() {

+-  	    super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, "Error"));

++  	    super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, new Object[]{"Error"}));

+   	  }"
+   	                         flags="gm"
+   	                         byline="false"/>
+@@ -88,6 +88,11 @@
+   	                         replace="  static private String add_escapes(String str) {"
+   	                         flags="g"
+   	                         byline="false"/>
++  	    <replaceregexp file="src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParser.java"
++  	                         match="Message message = new MessageImpl\(QueryParserMessages.INVALID_SYNTAX_CANNOT_PARSE, query, tme.getMessage\(\)\);"
++  	                         replace="Message message = new MessageImpl(QueryParserMessages.INVALID_SYNTAX_CANNOT_PARSE, new Object[]{query, tme.getMessage()});"
++  	                         flags="g"
++  	                         byline="false"/>
+   </target>
+ 
+ </project>
diff --git a/debian/patches/11_run-javacc-for-contrib-queryparser.dpatch b/debian/patches/11_run-javacc-for-contrib-queryparser.dpatch
index ffd65f1..417e767 100755
--- a/debian/patches/11_run-javacc-for-contrib-queryparser.dpatch
+++ b/debian/patches/11_run-javacc-for-contrib-queryparser.dpatch
@@ -8,7 +8,16 @@
 diff -urNad lucene2~/build.xml lucene2/build.xml
 --- lucene2~/build.xml	2009-08-20 23:05:16.000000000 +0200
 +++ lucene2/build.xml	2009-08-20 23:05:18.000000000 +0200
-@@ -574,7 +574,7 @@
+@@ -568,13 +568,16 @@
+       <fileset dir="src/java/org/apache/lucene/queryParser" includes="*.java">
+         <containsregexp expression="Generated.*By.*JavaCC"/>
+       </fileset>
++      <fileset dir="contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser" includes="*.java">
++        <containsregexp expression="Generated.*By.*JavaCC"/>
++      </fileset>
+       <fileset dir="src/demo/org/apache/lucene/demo/html" includes="*.java">
+         <containsregexp expression="Generated.*By.*JavaCC"/>
+       </fileset>
      </delete>
    </target>
  
diff --git a/debian/rules b/debian/rules
index d177dec..c8c14d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,13 +15,13 @@ JAVA_HOME := /usr/lib/jvm/java-6-openjdk
 
 DEB_ANT_BUILD_TARGET := javacc jar-core build-contrib war-demo javadocs
 DEB_ANT_CHECK_TARGET := test
-DEB_ANT_CLEAN_TARGET := clean
+DEB_ANT_CLEAN_TARGET := clean clean-javacc
 
 # Needed for running javacc and the unit tests
 DEB_JARS = ant-nodeps ant-junit junit
 
 # Upstream Lucene name
-UPSTREAM_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | grep -o "^[^+]*")
+UPSTREAM_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | grep -o "^[^+]*" | sed -e "s/~/-/" )
 UPSTREAM_BASENAME := lucene-$(UPSTREAM_VERSION)
 CHANGESFILE = ../lucene2_$(DEB_VERSION)_$(DEB_BUILD_ARCH).changes
 
@@ -40,7 +40,8 @@ clean::
 	rm -f debian/KEYS
 	# remove all javacc-generated files from src and contrib, except those
 	# that are not regenerated properly 
-	fgrep -Rl "Generated By:JavaCC:" $(CURDIR)/src/ $(CURDIR)/contrib/ | grep -v analysis/standard/ParseException.java\\\|precedence\\\|surround | xargs rm -f
+	# Now done in build.xml target clean-javacc
+	#fgrep -Rl "Generated By:JavaCC:" $(CURDIR)/src/ $(CURDIR)/contrib/ | grep -v analysis/standard/ParseException.java\\\|precedence\\\|surround | xargs rm -f
 
 install/liblucene2-java::
 	# Install the libraries into the liblucene2-java package

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/lucene2.git



More information about the pkg-java-commits mailing list