Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107996 - libreadline-java should depend on JDK
Summary: libreadline-java should depend on JDK
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-03 10:23 UTC by bastian voigt
Modified: 2005-10-04 01:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bastian voigt 2005-10-03 10:23:05 UTC
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:
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2005-10-03 10:28:41 UTC
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

Comment 2 bastian voigt 2005-10-03 10:34:10 UTC
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. 
Comment 3 bastian voigt 2005-10-03 10:36:29 UTC
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 
Comment 4 Thomas Matthijs (RETIRED) gentoo-dev 2005-10-03 10:57:40 UTC
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.
Comment 5 Thomas Matthijs (RETIRED) gentoo-dev 2005-10-04 01:19:23 UTC
need more info