Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 831294

Summary: dev-java/cpptasks-1.0_beta5-r1 installs files with broken symlink
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: fordfrog, liaoyuan
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/23828
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-01-16 10:24:39 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-java/cpptasks-1.0_beta5-r1 installs files with broken symlink.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-16 10:24:41 UTC
CC'ing also the author of the commit (7d14b292281458826b2292aa75a2380cb710cc0d)
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-16 10:24:42 UTC
Created attachment 762296 [details]
build.log

build log and emerge --info
Comment 3 Yuan Liao (Leo3418) 2022-01-16 15:41:26 UTC
Seems to be related to https://bugs.gentoo.org/820869 -- issue with javadoc generation on JDK 11
Comment 4 Larry the Git Cow gentoo-dev 2022-01-17 09:30:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5cafff5294e38d8661b1c2468c7479f5aef4229

commit a5cafff5294e38d8661b1c2468c7479f5aef4229
Author:     Yuan Liao <liaoyuan@gmail.com>
AuthorDate: 2022-01-16 16:54:32 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2022-01-17 09:28:26 +0000

    dev-java/cpptasks: Fix Javadoc generation on JDK 11+
    
    The 'javadoc' program shipped in JDK 11+ requires all classes used by
    the input source files to be present in the classpath passed to it.
    This has caused numerous other bugs alike, including 780531, 788109,
    and 820863.
    
    Closes: https://bugs.gentoo.org/831294
    Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/23828
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/cpptasks/cpptasks-1.0_beta5-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 5 Yuan Liao (Leo3418) 2022-01-17 16:24:08 UTC
For ebuilds that use java-ant-2.eclass, any similar issues can usually be fixed by rewriting the classpath for the "javadoc" tag as well as "javac" tag.  This way, the build classpath will be applied to Javadoc generation as well, which should eliminate "package does not exist" errors issued by the 'javadoc' program.

--- a/dev-java/cpptasks/cpptasks-1.0_beta5-r1.ebuild
+++ b/dev-java/cpptasks/cpptasks-1.0_beta5-r1.ebuild
@@ -36,6 +36,7 @@ RDEPEND="
 "
 
 JAVA_ANT_REWRITE_CLASSPATH="yes"
+JAVA_ANT_CLASSPATH_TAGS="javac javadoc"
 
 EANT_BUILD_TARGET="jars"
 EANT_TEST_TARGET="run-tests -Djunit-available=true"