Bug#879851: lintian: package-installs-java-bytecode check produces too many false-positives
Package: lintian
Version: 2.5.55
Severity: normal
Hi,
The Lintian error package-installs-java-bytecode produces too many
false-positives at the moment.
The concerns about this warning were already raised on debian-java
last month.
https://lists.debian.org/debian-java/2017/09/msg00061.html
Feel free to clone this bug report as needed.
- The Lintian check should only trigger package-installs-java-bytecode
when the number of classes detected in the binary package exceeds 20
- do not trigger package-installs-java-bytecode if the path contains
"WEB-INF", "demo", "doc", "example", "sample" or "test".
- verify if the .class files are really Java class files (by checking
the 0xCAFEBABE header, this will avoid false positives like
apertium-eo-fr and grass-core).
- lower the severity of package-installs-java-bytecode to pendatic or info
We think the original idea of https://bugs.debian.org/873211 was to
detect prebuilt class files in source packages without corresponding
source. We suggest to modify
source-contains-prebuilt-java-object
to also detect .class files instead.
Regards,
Markus
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.13.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages lintian depends on:
ii binutils 2.29.1-5
ii bzip2 1.0.6-8.1
ii diffstat 1.61-1+b1
ii dpkg 1.19.0.4
ii file 1:5.32-1
ii gettext 0.19.8.1-4
ii intltool-debian 0.35.0+20060710.4
ii libapt-pkg-perl 0.1.33
ii libarchive-zip-perl 1.59-1
ii libclass-accessor-perl 0.34-1
ii libclone-perl 0.38-2+b2
ii libdpkg-perl 1.19.0.4
ii libemail-valid-perl 1.202-1
ii libfile-basedir-perl 0.07-1
ii libipc-run-perl 0.96-1
ii liblist-moreutils-perl 0.416-1+b3
ii libparse-debianchangelog-perl 1.2.0-12
ii libperl5.26 [libdigest-sha-perl] 5.26.0-8
ii libtext-levenshtein-perl 0.13-1
ii libtimedate-perl 2.3000-2
ii liburi-perl 1.72-2
ii libxml-simple-perl 2.24-1
ii libyaml-libyaml-perl 0.63-2+b2
ii man-db 2.7.6.1-2
ii patchutils 0.3.4-2
ii perl 5.26.0-8
ii t1utils 1.40-2
ii xz-utils 5.2.2-1.3
Versions of packages lintian recommends:
ii libperlio-gzip-perl 0.19-1+b4
Versions of packages lintian suggests:
pn binutils-multiarch <none>
ii dpkg-dev 1.19.0.4
ii libhtml-parser-perl 3.72-3+b2
ii libtext-template-perl 1.47-1
-- no debconf information
Reply to: