Bug#1026255: FTBFS: error: invalid flag: -html4

Hans Joachim Desserud debian at desserud.org
Sat Dec 17 13:18:18 GMT 2022


Source: junit5-system-exit
Version: 1.1.2-3
Severity: serious
Tags: ftbfs patch

Dear Maintainer,

junit5-system-exit currently fails to build from source with the 
following error message:
Starting process 'command 
'/usr/lib/jvm/java-17-openjdk-amd64/bin/javadoc''. Working directory: 
/build/1st/junit5-system-exit-1.1.2 Command: 
/usr/lib/jvm/java-17-openjdk-amd64/bin/javadoc 
@/build/1st/junit5-system-exit-1.1.2/build/tmp/javadoc/javadoc.options
Successfully started process 'command 
'/usr/lib/jvm/java-17-openjdk-amd64/bin/javadoc''
error: invalid flag: -html4
1 error

(for details see 
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/junit5-system-exit.html)

I was able to reproduce this on my Sid system, and the package built 
successfully when replacing the flag, see the attached patch.

Based on the output from javadoc, this option now seems to be the 
default
     -html5        Generate HTML 5 output. This option is no longer 
required.
so alternatively the javadoc section can be trimmed down. Another thing 
is that I haven't checked when the html5 option was introduced or when 
it replaced html4. It builds successfully with the current JDK, but it 
might introduced problems when backporting the package in the future. I 
don't know if this is a concern.

Regardless, the attached patch should fix the build issue or serve as 
the base for a better fix :)

-- System Information:
Debian Release: bookworm/sid
   APT prefers unstable
   APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-5-amd64 (SMP w/3 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled


-- 
mvh / best regards
Hans Joachim Desserud
http://desserud.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-fix-javadoc-option.patch
Type: text/x-diff
Size: 444 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20221217/9713a8fc/attachment.patch>


More information about the pkg-java-maintainers mailing list