Gentoo Archives: gentoo-user

From: Helmut Jarausch <jarausch@××××××.be>
To: gentoo-user@l.g.o
Subject: [gentoo-user] JAVACFLAGS - who on earth is setting this flag
Date: Wed, 10 Aug 2016 11:36:20
Message-Id: 2l63Q5RFJHcxOY5nqqOpEC@YJ0oMoaaCOJylk9/E1A1E
Hi,

I want to emerge a package which needs java 1.8.
The Log says

GENTOO_VM=oracle-jdk-bin-1.8  CLASSPATH=""  
JAVA_HOME="/opt/oracle-jdk-bin-1.8.0.102"
JAVACFLAGS="-source 1.7 -target 1.7" COMPILER="javac"

Where is JAVACFLAGS set?

eselect java-vm list   says

   [2]   oracle-jdk-bin-1.8  system-vm

java -version  gives
java version "1.8.0_102"

javac -version gives
javac 1.8.0_102

In the ebuild I have
JAVA_PKG_WANT_SOURCE="1.8"
JAVA_PKG_WANT_TARGET="1.8"

and
DEPEND=">=virtual/jdk-1.8"
RDEPEND=">=virtual/jre-1.8"


but /var/tmp/portage/sci-geosciences/josm-99999/temp/environment   has

declare -x JAVA="/opt/oracle-jdk-bin-1.8.0.102/bin/java"
declare -x JAVAC="/opt/oracle-jdk-bin-1.8.0.102/bin/javac"
declare -x JAVACC_HOME="/usr/share/javacc/"
declare -x JAVACFLAGS="-source 1.7 -target 1.7"


So, who sets this JAVACFLAGS and how can I change this?

Many thanks for a hint,
Helmut

Replies

Subject Author
Re: [gentoo-user] JAVACFLAGS - who on earth is setting this flag Harm Geerts <hgeerts@×××××××××.nl>