Summary: | dev-lang/nqp-2017.09[java]: Need at least JVM 1.8 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin von Gagern <Martin.vGagern> |
Component: | Current packages | Assignee: | Patrick Lauer <patrick> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kentnl, mimosinnet, perl, rose, tomboy64 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Martin von Gagern
2017-10-30 17:54:03 UTC
dev-lang/nqp-2017.10 affected in the same way. Actually nqp-2017.10 is more problematic than nqp-2017.09. Even with the JAVA_PKG_FORCE_VM=icedtea-8 in place, or with my whole compiler selection overhead dropped (i.e. /etc/java-config-2/build/ removed), I get errors like this: javac -source 1.7 -target 1.7 -source 1.8 -cp … javac: source release 1.8 requires target release 1.8 make: *** [Makefile:245: nqp-runtime.jar] Error 2 GENTOO_VM=icedtea-8 CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea8" JAVACFLAGS="-source 1.7 -target 1.7" COMPILER="" So I had to override the source version, and target as well to play it safe: JAVA_PKG_WANT_SOURCE=1.8 JAVA_PKG_WANT_TARGET=1.8 JAVA_PKG_FORCE_VM=icedtea-8 \ emerge -1 =dev-lang/{nqp,rakudo}-2017.10 The same issue happens with nqp-2017.11. Same issue with dev-lang/nqp-2018.02 Need to edit the ebuild and update the jdk/jre deps to 1.8. The eclasses in Gentoo set source/target based on jdk/jre version found in DEPS/RDEPS. DEPEND -> source, RDEPEND -> target. Thus need to bump both to 1.8 and it should solve the issue. Just need to re-digest after modification, ebuild nqp-9999.ebuild digest. JVM 1.7 is no longer available in tree, and this version of nqp is also no longer available. This bug is thus obsolete. Feel free to re-open if I'm wrong :) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07051bf7565cea2a153d22d3c41205de48ca54ad commit 07051bf7565cea2a153d22d3c41205de48ca54ad Author: Kent Fredric <kentnl@gentoo.org> AuthorDate: 2019-08-07 09:59:09 +0000 Commit: Kent Fredric <kentnl@gentoo.org> CommitDate: 2019-08-07 11:41:45 +0000 dev-lang/nqp: Force JDK/JRE 8 in dependencies Due to jdk/jre-1.7 being mentioned in (R)DEPEND, java-pkg_javac-args injects "-source 1.7 -target 1.7" into the javac invocation, which is silly, as nqp then appends "-source 1.8" to it anyway, resulting in: javac -source 1.7 -target 1.7 -source 1.8 .... And javac then barfs: javac: source release 1.8 requires target release 1.8 Bumping the values in DEPENDS changes the javac invocation to: javac -source 1.8 -target 1.8 -source 1.8 ... Which of course then works. Subsequently, all existing nqp versions (other than -9999) now work for me with USE="java" just fine, where previously they wouldn't work at all. Closes: https://bugs.gentoo.org/631226 Closes: https://bugs.gentoo.org/626486 Closes: https://bugs.gentoo.org/635902 Package-Manager: Portage-2.3.66, Repoman-2.3.16 Signed-off-by: Kent Fredric <kentnl@gentoo.org> .../{nqp-2018.06.ebuild => nqp-2018.06-r1.ebuild} | 4 +- .../{nqp-2018.08.ebuild => nqp-2018.08-r1.ebuild} | 4 +- .../{nqp-2018.09.ebuild => nqp-2018.09-r1.ebuild} | 4 +- .../{nqp-2018.12.ebuild => nqp-2018.12-r1.ebuild} | 4 +- dev-lang/nqp/nqp-2019.03-r1.ebuild | 158 +++++++++++++++++++++ dev-lang/nqp/nqp-2019.03.ebuild | 158 --------------------- dev-lang/nqp/nqp-9999.ebuild | 4 +- 7 files changed, 168 insertions(+), 168 deletions(-) |