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

Bug 572944

Summary: java-utils-2.eclass: bogus quotes around argument to depend-java-query in java-pkg_switch-vm
Product: Gentoo Linux Reporter: Olivier Diotte <olivier>
Component: EclassesAssignee: Java team <java>
Status: RESOLVED INVALID    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch removing the quotes

Description Olivier Diotte 2016-01-26 07:13:25 UTC
Created attachment 423902 [details, diff]
Patch removing the quotes

Steps to reproduce:

1. Run the following command: ebuild --debug bsh-2.0_beta4-r4.ebuild clean compile

or

Compare the results of running

depend-java-query --get-vm '>=virtual/jdk-1.4
 java-virtuals/servlet-api:3.0
 readline? ( dev-java/libreadline-java:0 )
 bsf? ( dev-java/bsf:2.3 ) >=dev-java/java-config-2.2.0  source? ( app-arch/zip )  >=dev-java/ant-core-1.8.2:0

vs

depend-java-query --get-vm '>=virtual/jdk-1.4' 'java-virtuals/servlet-api:3.0' 'readline? ( dev-java/libreadline-java:0 )' 'bsf? ( dev-java/bsf:2.3 )' '>=dev-java/java-config-2.2.0'  'source? ( app-arch/zip )'  '>=dev-java/ant-core-1.8.2:0' '>=dev-java/javatoolkit-0.3.0-r2'


What happens:

The following lines appear (among others):

+ printf '%s\n' 'depend-java-query:  NV_DEPEND:	>=virtual/jdk-1.4
	java-virtuals/servlet-api:3.0
	readline? ( dev-java/libreadline-java:0 )
	bsf? ( dev-java/bsf:2.3 ) >=dev-java/java-config-2.2.0  source? ( app-arch/zip )  >=dev-java/ant-core-1.8.2:0
	   
	   
	   >=dev-java/javatoolkit-0.3.0-r2'
+ chgrp portage /var/tmp/portage/dev-java/bsh-2.0_beta4-r4/temp/eclass-debug.log
+ chmod g+w /var/tmp/portage/dev-java/bsh-2.0_beta4-r4/temp/eclass-debug.log
++ depend-java-query --get-vm '>=virtual/jdk-1.4
	java-virtuals/servlet-api:3.0
	readline? ( dev-java/libreadline-java:0 )
	bsf? ( dev-java/bsf:2.3 ) >=dev-java/java-config-2.2.0  source? ( app-arch/zip )  >=dev-java/ant-core-1.8.2:0
	   
	   
	   >=dev-java/javatoolkit-0.3.0-r2'
!!! ERROR: Unable to determine valid vm. Please see http://www.gentoo.org/doc/en/java.xml#doc_chap4
+ GENTOO_VM=


What should happen:

The package builds


Attached is a patch to show where the problem is. With it, bsh compiles for me.
Comment 1 Olivier Diotte 2016-01-26 19:22:45 UTC
After discussing with the Java team, the problem was simply that my system java-vm wasn't set.