Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572944 - java-utils-2.eclass: bogus quotes around argument to depend-java-query in java-pkg_switch-vm
Summary: java-utils-2.eclass: bogus quotes around argument to depend-java-query in jav...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-01-26 07:13 UTC by Olivier Diotte
Modified: 2016-01-26 19:22 UTC (History)
0 users

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


Attachments
Patch removing the quotes (0001-eclass-java-utils-2.eclass-fix-java-pkg_switch-vm.patch,1.07 KB, patch)
2016-01-26 07:13 UTC, Olivier Diotte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.