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

Bug 932012

Summary: dev-lang/scala-2.12.10-r2 fails tests: [error] object Resource is not a member of package javax.annotation
Product: Gentoo Linux Reporter: Jonathan Lovelace <kingjon3377>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED PKGREMOVED    
Severity: normal CC: gentoo, jstein, kingjon3377
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 929942    
Attachments: dev-lang:scala-2.12.10-r2:20240516-112155.log
emerge-info.txt

Description Jonathan Lovelace 2024-05-17 01:14:36 UTC
Created attachment 893116 [details]
dev-lang:scala-2.12.10-r2:20240516-112155.log

=dev-lang/scala-2.12.10-r2 fails its test suite for me:

[error] Failed: Total 1400, Failed 6, Errors 0, Passed 1389, Skipped 5
[error] Failed tests:
[error]         scala.tools.nsc.backend.jvm.opt.MethodLevelOptsTest
[error]         scala.reflect.ClassOfTest
[error]         scala.lang.annotations.RunTest
[error]         scala.tools.nsc.backend.jvm.opt.BoxUnboxTest
[error] (junit/test:test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 298 s, completed May 16, 2024, 7:40:29 AM

Version 2.12.10 passed its tests when it was built on this machine back in February 2022, but from the log of that build, at that time the JDK it was building against was icedtea-8. From what I can find in this build log, it looks to me like at least some of these tests may be objecting to unexpected deprecation warnings that would have been introduced in more recent JDK versions.
Comment 1 Jonathan Lovelace 2024-05-17 01:15:04 UTC
Created attachment 893117 [details]
emerge-info.txt
Comment 2 Volkmar W. Pogatzki 2024-05-18 08:30:00 UTC
(In reply to Jonathan Lovelace from comment #0)
> [...]
> Version 2.12.10 passed its tests when it was built on this machine back in
> February 2022, but from the log of that build, at that time the JDK it was
> building against was icedtea-8. From what I can find in this build log, it
> looks to me like at least some of these tests may be objecting to unexpected
> deprecation warnings that would have been introduced in more recent JDK
> versions.

Have you tried with the ebuild restricted to 'virtual/jdk:1,8'?
Comment 3 Jonathan Lovelace 2024-05-18 12:56:24 UTC
I tried changing the DEPEND line '<=virtual/jdk-11:*' to '<=virtual/jdk-1.8:*', and with that change the test suite did indeed pass.
Comment 4 Volkmar W. Pogatzki 2024-05-21 11:20:16 UTC
Error extracted from the attached build log:
"[error] object Resource is not a member of package javax.annotation"

The package "javax.annotation" aka jsr250 is bundled in 
${DISTDIR}/scala-2.12.10-ivy2-deps.tar.xz and unpacked to 
${WORKDIR}/.ivy/cache/javax.annotation/jsr250-api/jars/jsr250-api-1.0.jar

Not clear why the test can't find it.
Comment 5 Larry the Git Cow gentoo-dev 2024-08-26 11:52:06 UTC
The bug has been closed via the following commit(s):

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

commit 706c530fec731e37653a59578b365d3a50d79260
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2024-08-26 11:51:00 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-08-26 11:51:49 +0000

    dev-lang/scala: treeclean
    
    Closes: https://bugs.gentoo.org/932012 (pkgremoved)
    Closes: https://bugs.gentoo.org/690344 (pkgremoved)
    Closes: https://bugs.gentoo.org/836054 (pkgremoved)
    Closes: https://bugs.gentoo.org/929942 (pkgremoved)
    Closes: https://bugs.gentoo.org/932737 (pkgremoved)
    Closes: https://bugs.gentoo.org/933607 (pkgremoved)
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-lang/scala/Manifest                         |  22 ---
 dev-lang/scala/files/scala-2.12.10-no-git.patch |  37 -----
 dev-lang/scala/files/scala-2.12.4-no-git.patch  |  37 -----
 dev-lang/scala/metadata.xml                     |  14 --
 dev-lang/scala/scala-2.12.10-r2.ebuild          | 190 ---------------------
 dev-lang/scala/scala-2.12.4.ebuild              | 211 ------------------------
 profiles/package.mask                           |   6 -
 7 files changed, 517 deletions(-)