Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 272373

Summary: dev-java/jffi-0.3-r2: no VM selected, uses system VM
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch adding java-pkg-2_pkg_setup to pkg_setup

Description Martin von Gagern 2009-06-03 07:02:20 UTC
dev-java/jffi-0.3-r2 fails to compile, as it tries to use an 1.5 target release but doesn't list that JDK as a dependency.

-do-compile:
    [javac] Compiling 17 source files to /var/tmp/portage/dev-java/jffi-0.3-r2/work/jffi-0.3/build/classes
    [javac] javac: invalid target release: 1.5
    [javac] Usage: javac <options> <source files>

 * ERROR: dev-java/jffi-0.3-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4412:  Called java-pkg-2_src_compile
 *             environment, line 2426:  Called eant 'jar' '-f' 'build.xml'
 *             environment, line 1026:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *  The die message:
 *   eant failed

GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER="javac"

On my system I have the system VM set like this:
/etc/java-config-2/current-system-vm -> /usr/lib/jvm/blackdown-jdk-1.4.2

The cause of this bug is most likely that java-pkg_init never gets called. To fix this, have the pkg_setup function in the ebuild call java-pkg-2_pkg_setup.
Comment 1 Martin von Gagern 2009-06-03 07:12:23 UTC
Created attachment 193367 [details, diff]
patch adding java-pkg-2_pkg_setup to pkg_setup
Comment 2 Martin von Gagern 2009-06-03 07:15:52 UTC
(In reply to comment #0)
> but doesn't list that JDK as a dependency.

Sorry, that information was wrong. I had missed that dependency upon first reading the ebuild, and forgot to correct my text after I found the real reason.
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-06-03 19:58:47 UTC
Fixed in the revbumps, thanks!