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

Bug 118651

Summary: java.eclass needs to RDEPEND on java-config
Product: Gentoo Linux Reporter: ChrisA <chrisa>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description ChrisA 2006-01-11 05:14:46 UTC
When using binpkg's, java-config is only installed on the buildhost -- not the hosts installing sun-jdk as a binary package. 

It's the java.eclass file, that uses java-config in 'java_pkg_postinst'. 

To reproduce:
1) Build sun-jdk on a buildhost (emerge -bav sun-jdk)

2) Copy the package to a second host (scp /usr/portage/packages/All/sun-jdk-* second-host:/usr/portage/packages/All)

3) On the second-host, run emerge -avgK sun-jdk. After this, sun-jdk _should_ be the default JVM .. but without java-config, this is not possible.

Regards,
ChrisA
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-01-11 07:34:13 UTC
This should actually go into java.eclass, which all the JDK and JRE ebuilds inherit.
Comment 2 ChrisA 2006-01-11 07:43:10 UTC
(In reply to comment #1)
> This should actually go into java.eclass, which all the JDK and JRE ebuilds
> inherit.
> 

Nice - did not know you could do that :)

/me likes Gentoo a lot ..
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-01-14 20:46:12 UTC
I've made the change to java.eclass, and now just need to update all the JREs and JDKs to not DEPEND on java-config themselves.
Comment 4 Josh Nichols (RETIRED) gentoo-dev 2006-01-15 12:30:08 UTC
All JREs and JDKs should be taken care of now. Thanks for reporting.