Summary: | >=dev-java/java-config-2.1.11 tries to use a JRE for building when set as system vm | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | CONFIRMED --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Agostino Sarubbo
2011-02-06 19:23:26 UTC
sorry for final bad paste Looks like an issue with java-config: java-utils-2.eclass-# variables: java-utils-2.eclass-# EANT_GENTOO_CLASSPATH - calls java-pkg_getjars for the value and adds to the java-utils-2.eclass-# gentoo.classpath property. Be sure to call java-utils-2.eclass-# java-ant_rewrite-classpath in src_unpack. java-utils-2.eclass:# EANT_NEEDS_TOOLS - add tools.jar to the gentoo.classpath. Should only be used java-utils-2.eclass-# for build-time purposes, the dependency is not recorded to java-utils-2.eclass-# package.env! java-utils-2.eclass-# JAVA_PKG_NO_BUNDLED_SEARCH - Don't search for bundled jars or class files java-utils-2.eclass-# *ANT_TASKS - used to determine ANT_TASKS before calling Ant. -- java-utils-2.eclass- for atom in ${gcp}; do java-utils-2.eclass- cp="${cp}:$(java-pkg_getjars ${getjarsarg} ${atom})" java-utils-2.eclass- done java-utils-2.eclass- java-utils-2.eclass: [[ -n "${EANT_NEEDS_TOOLS}" ]] && cp="${cp}:$(java-config --tools)" java-utils-2.eclass- java-utils-2.eclass- if [[ ${cp} ]]; then java-utils-2.eclass- # It seems ant does not like single quotes around ${cp} java-utils-2.eclass- cp=${cp#:} Could you post the output of `java-config --tools'? For me it's: nelchael@s-lappy .../portage/eclass$ java-config --tools /opt/sun-jdk-1.6.0.23/lib/tools.jar The problem is that due to changes for bug 315039, java-config now respect system vm setting for build if possible. And if it's a JRE, it will use it too, although JRE is not enough for building :/ This needs to be fixed. The workaround is to either set icedtea as system VM, or set it as preferred build vm (see http://www.gentoo.org/doc/en/java.xml ) This should not block resin though. (In reply to comment #2) > Could you post the output of `java-config --tools'? For me it's: Nothing output for me FWIW, the commit Caster mentions is https://gitweb.gentoo.org/proj/java-config.git/commit/?id=bdea532f1b4c72ebd369a4560864771bbdc25ccb I am not sure if this still applies and I've just emerged ant-antlr with a JRE a system VM. It also appears that this bug does not attract a lot of visitors. Hence I am lowering the priority of this bug. |