Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351096 - app-emulation/virtualbox-4.0.0 fails to build; kmk: /usr/lib/jvm/java-6-sun/bin/wsimport: Command not found
Summary: app-emulation/virtualbox-4.0.0 fails to build; kmk: /usr/lib/jvm/java-6-sun/b...
Status: RESOLVED DUPLICATE of bug 382061
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-08 09:14 UTC by Zurab Gvishiani
Modified: 2011-11-06 13:18 UTC (History)
6 users (show)

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


Attachments
emerge --info (emergeinfo,4.33 KB, text/plain)
2011-01-08 09:17 UTC, Zurab Gvishiani
Details
full build log (fullbuildlog,256.30 KB, text/plain)
2011-01-08 09:18 UTC, Zurab Gvishiani
Details
emerge -pqv =app-emulation/virtualbox-4.0.0 (emergepqv,168 bytes, text/plain)
2011-01-08 09:21 UTC, Zurab Gvishiani
Details
Proposed ebuild that patches the paths to the jvm regardless of the java use flag (virtualbox-4.0.6-r1.ebuild,10.96 KB, text/plain)
2011-05-04 22:58 UTC, Moritz Schlarb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zurab Gvishiani 2011-01-08 09:14:51 UTC
I was updating today from 3.2.12 which worked fine, using stable amd64 tree with unmasked virtualbox packages. What's also strange i've same behavior as in bug #351090 virtualbox installed as dep icedtea6-bin java-config jre and jdk packages while java use flag is masked by profile.
build fails with 
kmk: /usr/lib/jvm/java-6-sun/bin/wsimport: Command not found
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-4.0.0/work/VirtualBox-4.0.0_OSE/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/jwsglue.list] Error 127
kmk failed
full build log, emerge --info and emerge -pqv attached

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -uDN world
Comment 1 Zurab Gvishiani 2011-01-08 09:17:13 UTC
Created attachment 259271 [details]
emerge --info
Comment 2 Zurab Gvishiani 2011-01-08 09:18:20 UTC
Created attachment 259272 [details]
full build log
Comment 3 Zurab Gvishiani 2011-01-08 09:21:31 UTC
Created attachment 259273 [details]
emerge -pqv =app-emulation/virtualbox-4.0.0
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-01-08 10:27:02 UTC
+*virtualbox-4.0.0-r1 (08 Jan 2011)
+
+  08 Jan 2011; Lars Wendler <polynomial-c@gentoo.org> -virtualbox-4.0.0.ebuild,
+  +virtualbox-4.0.0-r1.ebuild:
+  Replaced java-pkg-2 eclass with java-pkg-opt-2. Thanks to Andreas Fink (bug
+  #351090) and Zurab Gvishiani (bug #351096) for reporting this issue.

Java shouldn't be pulled in now when it's masked.
But I have to do further tests why it fails with icedtea6-bin anyway. So I keep this bug open for now.
Comment 5 Zurab Gvishiani 2011-01-08 12:01:16 UTC
I've forgot to mention that I updated from virtualbox-ose 3.2.12-r3 , maybe this will help to resolve issue.
Comment 6 Zurab Gvishiani 2011-01-08 13:31:31 UTC
I've installed sun-jdk and virtualbox compiled and installed with no issues, then rebooted and now it works well. 
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2011-04-02 10:09:33 UTC
Actually same error in virtualbox-4.0.4-r1, but may be different reasons? Well, I'm building virtualbox with the following USE flags:

[ebuild  N    ] app-emulation/virtualbox-4.0.4-r1  USE="additions headless opengl qt4 sdk vboxwebsrv -alsa -doc -extensions -java -pulseaudio -python -vnc"

But ./Config.kmk still has VBOX_WITH_JWS ?= 1.

configure.log states that ./configure was called with:

#   './configure --with-gcc=x86_64-pc-linux-gnu-gcc --with-g++=x86_64-pc-linux-gnu-g++ --disable-kmods --disable-dbus --disable-alsa --disable-pulse --disable-python --disable-java --enable-webservice --disable-docs --build-headless --disable-opengl'

Do you need anything else? I'll preserve build.log and configure.log in case you'll need them...
Comment 8 Moritz Schlarb 2011-05-04 22:25:12 UTC
The bug still exists in virtualbox-4.0.6!

I use
app-emulation/virtualbox-4.0.6  USE="additions extensions headless opengl python qt4 sdk vboxwebsrv vnc -alsa -doc -java -pulseaudio"

and icedtea6-bin as system-vm.

I get:
  GEN     {T}/vboxjws-gen/jwsgen/jwsglue.list
/usr/lib/jvm/java-6-sun/bin/wsimport -Xnocompile -p org.virtualbox_4_0.jaxws -d /var/tmp/portage/app-emulation/virtualbox-4.0.6/work/VirtualBox-4.0.6_OSE/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/java/jws /var/tmp/portage/app-emulation/virtualbox-4.0.6/work/VirtualBox-4.0.6_OSE/out/linux.amd64/release/bin/sdk/bindings/webservice/vboxwebService.wsdl
kmk: /usr/lib/jvm/java-6-sun/bin/wsimport: Command not found
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-4.0.6/work/VirtualBox-4.0.6_OSE/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/jwsglue.list] Error 127
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2
 * ERROR: app-emulation/virtualbox-4.0.6 failed (compile phase):
 *   emake failed
Comment 9 Moritz Schlarb 2011-05-04 22:48:56 UTC
And I think I found the problem!
The path that the ebuild uses for searching wsimport is definitely not customized to my system!
It should either be 
/usr/lib/jvm/icedtea6-bin/bin/wsimport or /usr/lib/jvm/sun-jre-bin-1.6/bin/wsimport
but it looks for it in 
/usr/lib/jvm/java-6-sun/bin/wsimport
which is the default path in the source configure file.

And that is because in line 167 in virtualbox-4.0.6.ebuild, the path gets only fixed, if USE=java is set!
Verified that by simply enabling java.

I would attach an updated ebuild, but it seems to me, that the problem lies deeper...
The ebuild has no build time dependency on jre, but obviously, there is one!

Could someone take another look into it?
Comment 10 Moritz Schlarb 2011-05-04 22:56:13 UTC
Okay, I'm sorry!
I didn't look correctly...
It has a RDEPEND on virtual/jre!

But that would still leave the src_prepare part of that ebuild some kind of wrong. The JVM-path in Config.kmk should be sed'ed regardless of the java use flag.

Does the maintainer agree with that?
Comment 11 Moritz Schlarb 2011-05-04 22:58:28 UTC
Created attachment 272143 [details]
Proposed ebuild that patches the paths to the jvm regardless of the java use flag
Comment 12 Leonardo 2011-07-23 06:56:36 UTC
This happened to me, but it was about javac not being found. I am using i686 btw.
Setting system-vm to sun-jdk solves the problem, but the user shall be warned of this somehow.
Comment 13 Balint SZENTE 2011-07-27 14:41:45 UTC
I can confirm this problem also with VirtualBox 4.1.0. I have no JDK and no JRE installed.

# emerge -pv virtualbox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    #] app-emulation/virtualbox-4.1.0  USE="additions alsa extensions headless opengl python sdk vboxwebsrv -doc -java -pulseaudio -qt4 -vnc"

Build fails with:
GEN     {T}/vboxjws-gen/jwsgen/jwsglue.list
/usr/lib/jvm/java-6-sun/bin/wsimport -Xnocompile -p org.virtualbox_4_1.jaxws -d /var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/java/jws /var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/out/linux.amd64/release/bin/sdk/bindings/webservice/vboxwebService.wsdl
kmk: /usr/lib/jvm/java-6-sun/bin/wsimport: Command not found
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-4.1.0/work/VirtualBox-4.1.0_OSE/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/jwsglue.list] Error 127
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2

After all, does VirtualBox's build system depend on JRE? If vboxwebsrv needs java, than it should be set.
Comment 14 Jesse Adelman 2011-08-03 23:31:42 UTC
Getting bit by missing path to wsimport, too (with virtualbox-4.1.0 ebuild). However, does it matter that java-config actually contains /usr/bin/wsimport? Can that be used instead?

homeserver-02 ~ # java-config -L
The following VMs are available for generation-2:
1)      IcedTea6-bin 1.9.7 [icedtea6-bin]
*)      Sun JDK 1.6.0.26 [sun-jdk-1.6]
3)      Sun JRE 1.6.0.26 [sun-jre-bin-1.6]
homeserver-02 ~ #

homeserver-02 ~ # which wsimport
/usr/bin/wsimport
homeserver-02 ~ # ls -la /usr/bin/wsimport 
lrwxrwxrwx 1 root root 13 May  5 01:37 /usr/bin/wsimport -> run-java-tool
homeserver-02 ~ #

homeserver-02 ~ # equery b /usr/bin/wsimport
 * Searching for /usr/bin/wsimport ... 
dev-java/java-config-2.1.11-r3 (/usr/bin/wsimport -> run-java-tool)
dev-java/java-config-2.1.11-r3 (/usr/bin/run-java-tool)
homeserver-02 ~ #

Thanks.
Comment 15 André Larsson 2011-08-14 07:47:19 UTC
(In reply to comment #10)
> Okay, I'm sorry!
> I didn't look correctly...
> It has a RDEPEND on virtual/jre!
> 
> But that would still leave the src_prepare part of that ebuild some kind of
> wrong. The JVM-path in Config.kmk should be sed'ed regardless of the java use
> flag.
> 
> Does the maintainer agree with that?

It only has RDEPEND on virtual/jre if USE="java" is set.
I don't have it set, and have the same problem with app-emulation/virtualbox-4.0.12

I tried again with USE="-vboxwebsrv" and it worked. But i kind of want the web server, since I don't have qt.

So it should also depend on java if vboxwebsrv is set.
Comment 16 jannis 2011-10-06 05:34:51 UTC
Had the same problem trying to emerge virtualbox-4.1.4 on a machine w/o java but needed the vboxwebsrv.
Maybe this bug is a duplicate of #366215 ?
Comment 17 Balint SZENTE 2011-10-25 19:25:09 UTC
Actually this is a duplicate of bug 382061 and it was fixed. Maybe this ticket must be closed as well.
Comment 18 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-11-06 13:18:24 UTC

*** This bug has been marked as a duplicate of bug 382061 ***