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.
Created attachment 193367 [details, diff] patch adding java-pkg-2_pkg_setup to pkg_setup
(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.
Fixed in the revbumps, thanks!