dev-lang/scala-2.12.4 on paludis fails during src_compile with > [info] Compiling 157 Scala sources and 3 Java sources to /var/tmp/paludis/dev-lang-scala-2.12.4/work/scala-2.12.4/build/quick/classes/reflect... > [error] /var/tmp/paludis/dev-lang-scala-2.12.4/work/scala-2.12.4/src/reflect/scala/reflect/internal/util/AlmostFinalValue.java:13: unmappable character for encoding ASCII > [error] /var/tmp/paludis/dev-lang-scala-2.12.4/work/scala-2.12.4/src/reflect/scala/reflect/internal/util/AlmostFinalValue.java:13: unmappable character for encoding ASCII > [error] (reflect/compile:compileIncremental) javac returned nonzero exit code > [error] Total time: 119 s, completed Aug 30, 2018 12:04:36 AM It triggers as the fallback charset when LC_CTYPE is not defined is not UTF-8 but ISO8859-1, as defined in icedtea-3.6-jdk-a05e38417041.tar.xz:jdk-a05e38417041/src/solaris/native/java/lang/java_props_md.c:GetJavaProperties From PMS > The package manager must ensure that the LC_CTYPE and LC_COLLATE locale categories are equivalent to the POSIX locale, as far as characters in the ASCII range (U+0000 to U+007F) are concerned. [Only for EAPI >= 6] It seems that paludis doesn't implement it correctly, treating EAPI 6 as previous ones (so undefined). In scala-2.12.4.ebuild, in src_compile, there is a line trying to fix it, probably dangling from previous EAPI implementation > export LANG="en_US.UTF-8" So, we can either drop the fix which shouldn't trigger as using a recent EAPI, or we can fix it fully to allow for an old package manager to compile it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b668f7b1d0e89f4bd3dda5d22a6b7f0971f2bd70 commit b668f7b1d0e89f4bd3dda5d22a6b7f0971f2bd70 Author: tharvik <tharvik@users.noreply.github.com> AuthorDate: 2018-08-29 13:54:28 +0000 Commit: Mark Wright <gienah@gentoo.org> CommitDate: 2019-12-29 06:16:22 +0000 dev-lang/scala: fix compile's encoding Closes: https://bugs.gentoo.org/664866 Closes: https://github.com/gentoo/gentoo/pull/9732 Signed-off-by: Mark Wright <gienah@gentoo.org> dev-lang/scala/scala-2.12.4.ebuild | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)