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
Description: Replace html4 option with html5
The html4 option has been removed/replaced in newer JDKs, causing a build
failure.
---
Forwarded: no
--- junit5-system-exit-1.1.2.orig/build.gradle
+++ junit5-system-exit-1.1.2/build.gradle
@@ -74,6 +74,6 @@ publishing {
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
- options.addBooleanOption('html4', true)
+ options.addBooleanOption('html5', true)
}
}