Bug#834671: libxalan2-java: FTBFS in testing (Error: could not match input)

Santiago Vila sanvila at debian.org
Wed Aug 17 22:21:05 UTC 2016


Package: src:libxalan2-java
Version: 2.7.1-9
Severity: serious

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh_listpackages: -s/--same-arch is deprecated; please use -a/--arch instead
test -x debian/rules
mkdir -p "."
rm -f lib/BCEL.jar lib/regexp.jar
ln -s /usr/share/java/bcel.jar lib/BCEL.jar
ln -s /usr/share/java/regexp.jar lib/regexp.jar
jh_linkjars
jh_build -J   
touch debian/jh_build_stamp
cd . && /usr/lib/jvm/default-java/bin/java -classpath /usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/xml-apis.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/bsf.jar:/usr/share/java/bcel.jar:/usr/share/java/cup.jar:/usr/share/java/regexp.jar:/usr/share/java/stylebook.jar:/usr/share/java/JLex.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D -Dant.home=/usr/share/ant org.apache.tools.ant.Main -Dcompile.debug=true -Dcompile.optimize=true -propertyfile /<<PKGBUILDDIR>>/debian/ant.properties jar xsltc.unbundledjar javadocs docs
Buildfile: /<<PKGBUILDDIR>>/build.xml


[... snipped ...]

    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 7 warnings

xalan-interpretive.compile:
     [echo] Compiling Xalan interpretive classes
    [javac] /<<PKGBUILDDIR>>/build.xml:404: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 114 source files to /<<PKGBUILDDIR>>/build/classes
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 3 warnings
     [copy] Copying 12 files to /<<PKGBUILDDIR>>/build/classes
     [copy] Copying 1 file to /<<PKGBUILDDIR>>/build/classes/org/apache/xalan/res

xsltc.prepare:
     [echo] Compiling XSLTC utilities
    [javac] /<<PKGBUILDDIR>>/build.xml:452: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 2 source files to /<<PKGBUILDDIR>>/build/classes
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 3 warnings

xsltc.java_cup:
     [echo] java_cup preparsing
     [java] Exception in thread "main" java.lang.Error: Error: could not match input
     [java] 	at java_cup.Lexer.zzScanError(Lexer.java:728)
     [java] 	at java_cup.Lexer.next_token(Lexer.java:1058)
     [java] 	at java_cup.parser.scan(parser.java:417)
     [java] 	at java_cup.runtime.lr_parser.parse(lr_parser.java:578)
     [java] 	at java_cup.Main.parse_grammar_spec(Main.java:477)
     [java] 	at java_cup.Main.main(Main.java:186)
     [java] 	at org.apache.xalan.xsltc.util.JavaCupRedirect.main(JavaCupRedirect.java:90)

BUILD FAILED
/<<PKGBUILDDIR>>/build.xml:481: Java returned: 1

Total time: 8 seconds
/usr/share/cdbs/1/class/ant.mk:39: recipe for target 'debian/stamp-ant-build' failed
make: *** [debian/stamp-ant-build] Error 1
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

Because this source package only generates "Arch: all" packages, this
is the same as a FTBFS bug in the usual sense and the fact that I was
using "dpkg-buildpackage -A" is quite irrelevant.

For this particular package, I've also checked that it fails to build
from source in the reproducible builds site:

https://tests.reproducible-builds.org/

Thanks.



More information about the pkg-java-maintainers mailing list