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

Bug 432904

Summary: dev-java/xml-xmlbeans fails to build
Product: Gentoo Linux Reporter: Sebastian Pipping <sping>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: autobuilds   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log

Description Sebastian Pipping gentoo-dev 2012-08-26 20:57:45 UTC
Created attachment 322324 [details]
build log

.
Comment 1 Sebastian Pipping gentoo-dev 2012-08-26 21:05:39 UTC
Comment on attachment 322324 [details]
build log

# find /opt -name javac
/opt/icedtea-bin-7.2.2.1/bin/javac
/opt/icedtea-bin-6.1.11.3/bin/javac
/opt/oracle-jdk-bin-1.7.0.6/bin/javac

# /usr/bin/javac
* javac is not available for oracle-jre-bin-1.7 on x86_64
* IMPORTANT: some Java tools are not available on some VMs on some architectures

So far I'm a little puzzled about this^^^.
Comment 2 Sebastian Pipping gentoo-dev 2012-08-26 21:11:02 UTC
I have updated my system VM from Oracle JRE to JDK and now xmlbeans install just fine.

# java-config --list-available-vms
The following VMs are available for generation-2:
1)	IcedTea JDK 6.1.11.3 [icedtea-bin-6]
2)	IcedTea JDK 7.2.2.1 [icedtea-bin-7]
*)	Oracle JDK 1.7.0.6 [oracle-jdk-bin-1.7]
4)	Oracle JRE 1.7.0.4 [oracle-jre-bin-1.7]

Is there anything that can be done to prevent trouble like this in the future?
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2013-01-13 17:29:26 UTC
Having both jre and jdk in DEPEND may confuse the vm switching code. The result is indeed confusing.

Fixed, thanks for the report.

*xml-xmlbeans-1.0.4_pre20041217-r1 (13 Jan 2013)

  13 Jan 2013; Ralph Sennhauser <sera@gentoo.org>
  +xml-xmlbeans-1.0.4_pre20041217-r1.ebuild:
  Don't leak jre into DEPND, may confuse vm switching code. #432904
  EAPI bump, use slot deps and java_prepare.