Bug#549812: lucene2: FTBFS: annotations are not supported in -source 1.4
Hi, Here is a patch that works for me. It doesn't seem to work with the 2.9.0 on mentors though. Thanks, Barry deFreese #! /bin/sh /usr/share/dpatch/dpatch-run ## 100_javac_source_1.5.dpatch by bdefre...@bddebian3.bddebian.com ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad lucene2-2.4.1+ds1~/common-build.xml lucene2-2.4.1+ds1/common-build.xml --- lucene2-2.4.1+ds1~/common-build.xml 2009-10-27 15:45:20.0 -0400 +++ lucene2-2.4.1+ds1/common-build.xml 2009-10-27 15:45:36.0 -0400 @@ -53,8 +53,8 @@ property name=javac.deprecation value=off/ property name=javac.debug value=on/ - property name=javac.source value=1.4/ - property name=javac.target value=1.4/ + property name=javac.source value=1.5/ + property name=javac.target value=1.5/ property name=javadoc.link value=http://java.sun.com/j2se/1.4/docs/api// property name=javadoc.access value=protected/ diff -urNad lucene2-2.4.1+ds1~/contrib/analyzers/build.xml lucene2-2.4.1+ds1/contrib/analyzers/build.xml --- lucene2-2.4.1+ds1~/contrib/analyzers/build.xml 2009-03-02 12:11:16.0 -0500 +++ lucene2-2.4.1+ds1/contrib/analyzers/build.xml 2009-10-27 15:46:12.0 -0400 @@ -23,8 +23,8 @@ Additional Analyzers /description - property name=javac.source value=1.4 / - property name=javac.target value=1.4 / + property name=javac.source value=1.5 / + property name=javac.target value=1.5 / import file=../contrib-build.xml/ /project ___ pkg-java-maintainers mailing list pkg-java-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers
Bug#549812: lucene2: FTBFS: annotations are not supported in -source 1.4
Source: lucene2 Version: 2.4.1+ds1-1 Severity: serious User: debian...@lists.debian.org Usertags: qa-ftbfs-20091005 qa-ftbfs Justification: FTBFS on amd64 Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part: make[1]: Entering directory `/build/user-lucene2_2.4.1+ds1-1-amd64-jkWpnG/lucene2-2.4.1+ds1' make[1]: Nothing to be done for `update-config'. make[1]: Leaving directory `/build/user-lucene2_2.4.1+ds1-1-amd64-jkWpnG/lucene2-2.4.1+ds1' touch debian/stamp-patched cd . /usr/lib/jvm/java-6-openjdk/bin/java -classpath /usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/ant-nodeps.jar:/usr/share/java/ant-junit.jar:/usr/share/java/junit.jar:/usr/lib/jvm/java-6-openjdk/lib/tools.jar -Dant.home=/usr/share/ant org.apache.tools.ant.Main -Dcompile.debug=true -Dcompile.optimize=true-propertyfile /build/user-lucene2_2.4.1+ds1-1-amd64-jkWpnG/lucene2-2.4.1+ds1/debian/ant.properties javacc jar-core build-contrib war-demo javadocs Buildfile: build.xml clean-javacc: javacc-uptodate-check: javacc-notice: [echo] [echo] One or more of the JavaCC .jj files is newer than its corresponding [echo] .java file. Run the javacc target to regenerate the artifacts. [echo] jflex-uptodate-check: jflex-notice: init: javacc-check: javacc-QueryParser: [javacc] Java Compiler Compiler Version 5.0 (Parser Generator) [javacc] (type javacc with no arguments for help) [javacc] Reading from file /build/user-lucene2_2.4.1+ds1-1-amd64-jkWpnG/lucene2-2.4.1+ds1/src/java/org/apache/lucene/queryParser/QueryParser.jj . . . [javacc] File TokenMgrError.java does not exist. Will create one. [javacc] File ParseException.java does not exist. Will create one. [javacc] File Token.java does not exist. Will create one. [javacc] File CharStream.java does not exist. Will create one. [javacc] Parser generated successfully. javacc-HTMLParser: [javacc] Java Compiler Compiler Version 5.0 (Parser Generator) [javacc] (type javacc with no arguments for help) [javacc] Reading from file /build/user-lucene2_2.4.1+ds1-1-amd64-jkWpnG/lucene2-2.4.1+ds1/src/demo/org/apache/lucene/demo/html/HTMLParser.jj . . . [javacc] Warning: Line 22, Column 3: Bad option name OPTIMIZE_TOKEN_MANAGER. Option setting will be ignored. [javacc] File TokenMgrError.java does not exist. Will create one. [javacc] File ParseException.java does not exist. Will create one. [javacc] File Token.java does not exist. Will create one. [javacc] File SimpleCharStream.java does not exist. Will create one. [javacc] Parser generated with 0 errors and 1 warnings. javacc: javacc-uptodate-check: javacc-notice: jflex-uptodate-check: jflex-notice: init: clover.setup: clover.info: [echo] [echo] Clover not found. Code coverage reports disabled. [echo] clover: common.compile-core: [mkdir] Created dir: /build/user-lucene2_2.4.1+ds1-1-amd64-jkWpnG/lucene2-2.4.1+ds1/build/classes/java [javac] Compiling 330 source files to /build/user-lucene2_2.4.1+ds1-1-amd64-jkWpnG/lucene2-2.4.1+ds1/build/classes/java [javac] /build/user-lucene2_2.4.1+ds1-1-amd64-jkWpnG/lucene2-2.4.1+ds1/src/java/org/apache/lucene/queryParser/CharStream.java:30: annotations are not supported in -source 1.4 [javac] (use -source 5 or higher to enable annotations) [javac] @Deprecated [javac]^ [javac] /build/user-lucene2_2.4.1+ds1-1-amd64-jkWpnG/lucene2-2.4.1+ds1/src/java/org/apache/lucene/queryParser/QueryParser.java:1659: generics are not supported in -source 1.4 [javac] (use -source 5 or higher to enable generics) [javac] private java.util.Listint[] jj_expentries = new java.util.ArrayListint[](); [javac] ^ [javac] 2 errors BUILD FAILED /build/user-lucene2_2.4.1+ds1-1-amd64-jkWpnG/lucene2-2.4.1+ds1/common-build.xml:223: The following error occurred while executing this line: /build/user-lucene2_2.4.1+ds1-1-amd64-jkWpnG/lucene2-2.4.1+ds1/common-build.xml:482: Compile failed; see the compiler error output for details. Total time: 2 seconds make: *** [debian/stamp-ant-build] Error 1 The full build log is available from: http://people.debian.org/~lucas/logs/2009/10/05/lucene2_2.4.1+ds1-1_lsid64.buildlog A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! About the archive rebuild: The rebuild was done on about 50 AMD64 nodes of the Grid'5000 platform, using a clean chroot. Internet was not accessible from the build systems. -- | Lucas Nussbaum | lu...@lucas-nussbaum.net http://www.lucas-nussbaum.net/ | | jabber: lu...@nussbaum.fr GPG: 1024D/023B3F4F | ___