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.
Created attachment 893117 [details] emerge-info.txt
(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'?
I tried changing the DEPEND line '<=virtual/jdk-11:*' to '<=virtual/jdk-1.8:*', and with that change the test suite did indeed pass.
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.
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(-)