libreadline-java has the following dependency tree: urandom ~ # equery depgraph libreadline-java [ Searching for packages matching libreadline-java... ] * dependency graph for dev-java/libreadline-java-0.8.0-r1 `-- dev-java/libreadline-java-0.8.0-r1 `-- sys-libs/ncurses-5.4-r6 `-- sys-libs/gpm-1.20.1-r4 so it can be built without java installed, which leads to build problems of course. Reproducible: Always Steps to Reproduce: 1. emerge unmerge blackdown-jdk libreadline-java 2. emerge libreadline-java 3. it gives an error Actual Results: >>> emerge (2 of 4) dev-java/libreadline-java-0.8.0-r1 to / >>> md5 files ;-) libreadline-java-0.8.0-r1.ebuild >>> md5 files ;-) files/digest-libreadline-java-0.8.0-r1 >>> md5 files ;-) files/termcap-to-ncurses.patch >>> md5 src_uri ;-) libreadline-java-0.8.0-src.tar.gz >>> Unpacking source... >>> Unpacking libreadline-java-0.8.0-src.tar.gz to /var/tmp/portage/libreadline-java-0.8.0-r1/work * Applying termcap-to-ncurses.patch ... [ ok ] >>> Source unpacked. mkdir ./build cd src ; make JAVAC="javac" JC_FLAGS="" java make[1]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src' javac -d ../build `find . -name "*.java"` /bin/sh: javac: command not found make[1]: *** [java] Error 127 make[1]: Leaving directory `/var/tmp/portage/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src' make: *** [build-java] Error 2 !!! ERROR: dev-java/libreadline-java-0.8.0-r1 failed. !!! Function src_compile, Line 30, Exitcode 2 !!! failed to compile !!! If you need support, post the topmost build error, NOT this status message. Expected Results:
it does depend on a jdk, so you by any chance have a JRE as system-vm ? # env-update && source /etc/profile # java-config -f if you do: do # java-config -L # java-config -S blackdown-jdk (or sun- or ibm- or whatever) # env-update && source /etc/profile
Indeed I only had Blackdown JRE installed, no JDKs. So as a naive user I would say it should not allow me to install libreadline-java without installing a JDK before. That's what dependencies are for, right? Maybe it's not a bug in this particular ebuild, but then it's one in Gentoo's java configuration mechanism. Please correct me if I am wrong.
To correct the above reproduction steps: Steps to Reproduce: 1. emerge unmerge <all your JDK packages> 2. emerge blackdown-jre 3. emerge libreadline-java -> build error
the ebuild clearly depends on the jdk you didn't package.provide it or something? # java-config -L [blackdown-jre-1.4.2.02] "Blackdown JRE 1.4.2.02" (/etc/env.d/java/20blackdown- jre-1.4.2.02) # emerge -pv libreadline-java These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] dev-java/blackdown-jdk-1.4.2.02 -browserplugin -doc +mozilla 0 kB [ebuild R ] dev-java/libreadline-java-0.
need more info