Summary: | dev-java/commons-logging-1.2-r3: Install failed, No index.html in javadoc directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Volkmar W. Pogatzki <gentoo> |
Component: | Current packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein, liaoyuan |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/23964 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 820869 | ||
Attachments: | build log |
Description
Volkmar W. Pogatzki
2021-10-30 17:44:03 UTC
From the log, it appears that some jars are being excluded from the classpath that is passed to javadoc, and then there are errors from javadoc regarding missing symbols that would probably be found in these jars. (In reply to Nuno Silva from comment #1) > From the log, it appears that some jars are being excluded from the > classpath that is passed to javadoc, and then there are errors from javadoc > regarding missing symbols that would probably be found in these jars. Verified this yesterday, and it was indeed caused by missing dependency JARs in the classpath. This package has several USE flags that control not only the optional dependencies but also which parts of the source tree would be compiled. For example, with USE="-servletapi", servlet-api would not be added to the classpath, and any class that depends on servlet-api would be guaranteed to be not compiled by 'javac' (otherwise there might have been a compiler error bug ticket). But this is not the same for 'javadoc': all source files, been passed into 'javac' or not, would be read by 'javadoc' to generate the documentation. Java 8 seemed to be lax on missing external classes in the classpath, but Java 11 and 17 were not, hence the error was produced. If all optional dependencies are present in the classpath, then this error would no longer appear. This logic translates to the following REQUIRED_USE syntax: REQUIRED_USE="doc? ( avalon-framework avalon-logkit log4j servletapi )" The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=774db98c4095508bab67dbc6ab600a0d17c8d2ed commit 774db98c4095508bab67dbc6ab600a0d17c8d2ed Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2022-01-26 12:08:52 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2022-01-27 08:17:25 +0000 dev-java/commons-logging: REQUIRED_USE="doc? Closes: https://bugs.gentoo.org/820863 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/23964 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> dev-java/commons-logging/commons-logging-1.2-r3.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) |