Created attachment 404524 [details] emerge --info results The javadoc utility reports multiple errors in the doc-javahl section of subversion. The emerge --info and build log will follow in a few minutes.
Created attachment 404526 [details] ebuild log ebuild log
Same issue here with a 1.8 VM: *) Oracle JDK 1.8.0.45 [oracle-jdk-bin-1.8] after switching to a 1.7 VM: chrome ~ # java-config -S 6 Now using oracle-jdk-bin-1.7 as your generation-2 system JVM the javadoc errors disappear and Subversion can be emerged successfully.
(In reply to Vasco Steinmetz from comment #2) > Same issue here with a 1.8 VM: > > *) Oracle JDK 1.8.0.45 [oracle-jdk-bin-1.8] > > after switching to a 1.7 VM: > > chrome ~ # java-config -S 6 > Now using oracle-jdk-bin-1.7 as your generation-2 system JVM > > the javadoc errors disappear and Subversion can be emerged successfully. That's a good tip. I switched the system-VM back to Icedtea 7 and it worked.
This issue has arisen again with =dev-vcs/subversion-1.8.14. Has there been any progress on this?
Java 1.8 has is more strict on javadoc syntax. Technically they are issues to be addressed, but things need not fail due to poor javadoc syntax. The Java 1.8 option -Xdoclint:none relaxes this so javadoc is generated as it was before, despite it not conforming to W3C HTML 4.01 syntax. Need to see about setting -Xdoclint:none when javadocs are being generated. ejavadoc does this, but I do not see where that can come into play during build process. Thus need to see about passing that option to javadoc when the build system goes to generate the javadocs.
I have dev-java/icedtea-3.0.0_pre04-r1 installed and as expected the same problem generating the javadocs. The following patch works for me: --- a/dev-vcs/subversion/subversion-1.9.2.ebuild 2015-09-24 04:31:02.000000000 +0200 +++ b/dev-vcs/subversion/subversion-1.9.2.ebuild 2015-09-26 18:35:55.046403521 +0200 @@ -145,6 +145,10 @@ sed -i -e '1c\#!/usr/bin/env sh' build/transform_libtool_scripts.sh || \ die "/bin/sh is not POSIX shell!" + # bad javadoc syntax breaks on java 1.8 + sed -i -e 's/JAVADOC="$JAVA_BIN\/javadoc"/JAVADOC="$JAVA_BIN\/javadoc -Xdoclint:none"/' \ + build/ac-macros/java.m4 + eautoconf elibtoolize
dev-vcs/subversion-1.9.3 still has the same problem, the same fix from my previous comment is still working.
It's still an issue with subversion-1.8.16, when building with IcedTea 3.0.1.
Created attachment 446502 [details, diff] javadoc-nolint.patch Here is a patch for your convenience. (Note that the ebuild lacks a call to epatch_user, so it isn't as convenient as it could be.) Works for me, tested with subversion-1.8.16.
Still an issue with the recently stabilized subversion-1.9.4 (with icedtea-bin-3.1.0), and the same fix is still working. Is there a particular reason why this hasn't been fixed yet? Just try to emerge subversion with USE="doc java" and see yourself.
*** Bug 594648 has been marked as a duplicate of this bug. ***
commit 4ebaa7e551b2ad695f482b0b1d6d0f66f5d1db9e Author: Lars Wendler <polynomial-c@gentoo.org> Date: Tue Oct 11 15:25:21 2016 dev-vcs/subversion: Fixed creation of docs with USE="java" (bug #551094). Thanks to Alexander Miller for providing a patch. Package-Manager: portage-2.3.1 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> Sorry it took so long fixing this bug. FYI, next release of subversion will get an EAPI-6 ebuild so user patches will be supported by default.
Problem is that now it doesn't work with OLD java.