Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41313 - java-config errors
Summary: java-config errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 17:35 UTC by Spider (RETIRED)
Modified: 2004-04-27 05:36 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 Spider (RETIRED) gentoo-dev 2004-02-11 17:35:30 UTC
Sort of strange, and I can't place theese.
"clean" stage3 + emerge -v portage; emerge -vu python, python-updater (means I got X, tcl and so on)


from "emerge -kvp --debug kde" :
ldap
encode
cups
oggvorbis
opengl
ssl
pam
ldap
motif
encode
cups
oggvorbis
opengl
ssl
pam
java
/usr/sbin/ebuild.sh: line 1: java-config: command not found
ldap
motif
encode
cups
oggvorbis
opengl
ssl
pam
java
/usr/sbin/ebuild.sh: line 1: java-config: command not found


and true. java-config isn't installed, so why does ebuild.sh call for it?
Comment 1 Adrian Almenar 2004-02-12 04:19:03 UTC
Spider i think this is a portage bug, instead of a java-config bug.
Comment 2 SpanKY gentoo-dev 2004-02-12 10:33:09 UTC
it's a kde bug ... many of their ebuilds put code into global scope (and in this case, java-config is called in global scope)

this, btw, is not a good thing :P
Comment 3 Spider (RETIRED) gentoo-dev 2004-02-12 11:30:03 UTC
Well, thats suspectible, even if I had expected that the new portage would whine about "java-config in global scope"  and churn out the ebuild in question.  
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2004-02-12 12:18:29 UTC
If this is kde's fault, and it's known, can someone explain it to me rather than assume I know?
Comment 5 Spider (RETIRED) gentoo-dev 2004-02-12 13:27:30 UTC
sure. here for example, kdebindings :

DEPEND="=kde-base/kdebase-${PV}*
        =x11-libs/gtk+-1.2*
        dev-lang/perl
        python? ( dev-lang/python )
        java? ( virtual/jdk )
        =dev-libs/glib-1.2*
        ~kde-base/kdenetwork-${PV}
        mozilla? ( net-www/mozilla )"

use python                                                                     || myconf="$myconf --without-python"
use java        && myconf="$myconf --with-java=`java-config --jdk-home`"        || myconf="$myconf --without-java"


See that "--with-java" .. .line?   At this point in time DEPEND isn't satisfied, its still doing deptracking,  which means that java-config isn't installed.

Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2004-02-12 13:37:16 UTC
Gotcha - so adding a bash test for the existance of java-config prior to rnning it would be a step in the right direction?
Comment 7 Spider (RETIRED) gentoo-dev 2004-02-12 14:53:08 UTC
move those statements inside src_configure instead
by doing "bash -x foobuild.ebuild"  -no- code should be executed, not even to evaluate variables, so the correct path is to have the flags inside something like

src_compile() {
use java && myconf=`java-config --`
kde_src_compile()
}

or akin.
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2004-04-27 05:36:13 UTC
this is fixed in the latest kde ebuilds.