Bug#707400: lintian: FTBFS test failures in java test cases (onlyrun=java)
Package: lintian
Version: 2.5.10.5
Severity: serious
Applies to 2.5.12 as well. Not sure what the cause is. At the
moment, I am not convinced it is related to #707336 (although that
does cause some other test failures for us).
Build log is [1]. The contents of libtesta-java_1.0-1_all.deb
(test-case java-jars) at [2] suggests that all the jar files are
present:
"""
drwxr-xr-x root/root 0 2013-05-09 10:07 ./usr/bin/
-rwxr-xr-x root/root 961 2013-05-09 10:07 ./usr/bin/testc.jar
drwxr-xr-x root/root 0 2013-05-09 10:07 ./usr/lib/
-rw-r--r-- root/root 961 2013-05-09 10:07 ./usr/lib/testb.jar
"""
The jarwrapper dependency is also missing [2] (as desired), but
Lintian seems to be competely ignoring them (maybe coll/java-info was
broken somehow?).
~Niels
[1]
"""
$ time DEB_BUILD_OPTIONS=parallel=8 debian/rules TEST_WORK_DIR=/tmp/lintian-tests runtests onlyrun=java
private/generate-profiles.pl
.... running tests ....
rm -rf "/tmp/lintian-tests"
mkdir "/tmp/lintian-tests"
private/runtests -j 8 java
Using C.UTF-8 locale from /usr/lib/locale
Package tests (tests):
Running java-class-format 1.0-1... building... testing... ok.
Running java-classpath 1.0-1... building... testing... FAILED
--- t/tests/java-classpath/tags 2013-04-16 17:46:25.380109834 +0000
+++ /tmp/lintian-tests/java-classpath/tags.java-classpath 2013-05-09 08:07:17.171711017 +0000
@@ -1,2 +0,0 @@
-W: libcp-missing-java: missing-classpath libdepends-java
-W: libcp-relative-java: classpath-contains-relative-path usr/share/java/cp-relative-1.0.jar: obviously-relative/stuff.jar
Running java-jars 1.0-1... building... testing... FAILED
--- t/tests/java-jars/tags 2013-05-09 08:07:06.827975756 +0000
+++ /tmp/lintian-tests/java-jars/tags.java-jars 2013-05-09 08:07:21.763593479 +0000
@@ -1,8 +1,5 @@
-E: libtesta-java: executable-jar-without-main-class usr/bin/testc.jar
-E: libtesta-java: missing-dep-on-jarwrapper
I: libmanifestless-java: missing-manifest usr/share/java/manifestless-1.0.jar
I: libtestc-java: javalib-but-no-public-jars
W: libcodeless-java: codeless-jar usr/share/java/codeless-1.0.jar
W: libtesta-java: binary-without-manpage usr/bin/testc.jar
W: libtesta-java: executable-not-elf-or-script usr/bin/testc.jar
-W: libtesta-java: jar-not-in-usr-share usr/lib/testb.jar
make: *** [runtests] Error 1
"""
[2]
$ less /tmp/lintian-tests/java-jars/libtesta-java_1.0-1_all.deb
/tmp/lintian-tests/java-jars/libtesta-java_1.0-1_all.deb:
new debian package, version 2.0.
size 2598 bytes: control archive=595 bytes.
378 bytes, 13 lines control
321 bytes, 5 lines md5sums
Package: libtesta-java
Source: java-jars
Version: 1.0-1
Architecture: all
Maintainer: Vincent Fourmond <fourmond@debian.org>
Installed-Size: 5
Section: java
Priority: extra
Description: Various checks about JAR files - part A
This is a test package designed to test various aspects of the
java-related QA code in lintian. First part.
.
This package should not be installed.
*** Contents:
drwxr-xr-x root/root 0 2013-05-09 10:07 ./
drwxr-xr-x root/root 0 2013-05-09 10:07 ./usr/
drwxr-xr-x root/root 0 2013-05-09 10:07 ./usr/share/
drwxr-xr-x root/root 0 2013-05-09 10:07 ./usr/share/java/
-rw-r--r-- root/root 961 2013-05-09 10:07 ./usr/share/java/testa-1.0.jar
drwxr-xr-x root/root 0 2013-05-09 10:07 ./usr/share/doc/
drwxr-xr-x root/root 0 2013-05-09 10:07 ./usr/share/doc/libtesta-java/
-rw-r--r-- root/root 203 2013-05-09 10:07 ./usr/share/doc/libtesta-java/changelog.Debian.gz
-rw-r--r-- root/root 1017 2013-05-09 10:07 ./usr/share/doc/libtesta-java/copyright
drwxr-xr-x root/root 0 2013-05-09 10:07 ./usr/bin/
-rwxr-xr-x root/root 961 2013-05-09 10:07 ./usr/bin/testc.jar
drwxr-xr-x root/root 0 2013-05-09 10:07 ./usr/lib/
-rw-r--r-- root/root 961 2013-05-09 10:07 ./usr/lib/testb.jar
lrwxrwxrwx root/root 0 2013-05-09 10:07 ./usr/share/java/testa.jar -> testa-1.0.jar
Reply to: