Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351090 - >=app-emulation/virtualbox-4.0.0 -java installs java anyway
Summary: >=app-emulation/virtualbox-4.0.0 -java installs java anyway
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-08 08:07 UTC by Andreas Fink
Modified: 2011-01-08 10:24 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Fink 2011-01-08 08:07:33 UTC
>=app-emulation-virtualbox-4 -java pulls java-config as dependency (and with it a whole jdk). This comes from inherit java-pkg-2, which adds java-config to DEPENDS.

Reproducible: Always

Steps to Reproduce:
1. No java installed yet
2. USE=-java emerge -a1 virtualbox

Actual Results:  
virtual/jdk is pushed as a dependency

Expected Results:  
drop the java dependency if -java is used.

As far as I understand it, packages using an optional dependency on java can use 'inherit java-pkg-opt-2' instead of "inherit java-pkg-2'.

In my local repository I changed java-pkg-2 to java-pkg-opt-2 and it built fine and runs correctly. However I did not try to build with java support enabled...
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-01-08 10:24: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.