Gentoo Archives: gentoo-user

From: daid kahl <daidxor@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] trouble with virtual/jdk
Date: Fri, 19 Feb 2010 07:11:02
Message-Id: 3ac129341002182310h40055895n1377cdc2a2104f36@mail.gmail.com
In Reply to: [gentoo-user] trouble with virtual/jdk by Allan Gottlieb
1 On 19 February 2010 10:44, Allan Gottlieb <gottlieb@×××.edu> wrote:
2 > When I run
3 >  emerge --ignore-default-opts --pretend --deep --tree --verbose --update --with-bdeps=y world
4 >
5 > I get (after a DeprecationWarning about portage.dep.dep_getkey() that I
6 > believe I can ignore)
7 >
8 > Total: 0 packages, Size of downloads: 0 kB
9 >
10 > !!! The following update has been skipped due to unsatisfied dependencies:
11 >
12 > virtual/jdk:1.5
13 >
14 > !!! All ebuilds that could satisfy "=dev-java/sun-jdk-1.5.0*" have been masked.
15 > !!! One of the following masked packages is required to complete your request:
16 > - dev-java/sun-jdk-1.5.0.22 (masked by: dlj-1.1 license(s))
17 > A copy of the 'dlj-1.1' license is located at '/usr/portage/licenses/dlj-1.1'.
18 >
19 > (dependency required by "virtual/jdk-1.5.0" [ebuild])
20 >
21 > ================================================================
22 >
23 > But I don't see why virtual/jdk-1.5.0 is being referenced (it is not installed)
24 >
25 > I have icedtea6-bin installed and set as my system and user vm.
26 >
27 > I do not get the error when I don't have --with-bdeps=y so it must be
28 > some build dependency.  But how do I find which one?
29 >
30 > # emerge --pretend --verbose --with-bdeps=y --depclean virtual/jdk:1.5
31 >>>> No packages selected for removal by depclean
32 >
33 > # emerge --pretend --verbose --with-bdeps=y --depclean =virtual/jdk-1.5.0
34 >>>> No packages selected for removal by depclean
35 >
36 > # eix virtual/jdk
37 > [I] virtual/jdk
38 >     Available versions:
39 >        (1.4)   [M]1.4.1 [M]1.4.2
40 >        (1.5)   1.5.0
41 >        (1.6)   1.6.0
42 >     Installed versions:  1.6.0(1.6)(23:21:11 04/21/09)
43 >
44 > thanks,
45 > allan
46 >
47 >
48
49 I'm not java expert, but some programs want specific virtual
50 environments (deprecated code mostly I'd guess).
51
52 To not answer your question, throw the following into make.conf and
53 you will circumvent the block (provided you are cool to accept the
54 license):
55
56 ACCEPT_LICENSE="dlj-1.1"
57
58 As far as which package from the dependency tree, then I'm guessing
59 you can use equery depgraph and try to grep the results for the
60 virtual/jdk-1.5.0
61
62 I'm crap at narrowing the outputs of depgraph, but I haven't had many
63 cases where I needed to do this. If I'm depcleaning and updating the
64 world on -uND I trust portage that it needs the things it says.
65
66 ~daid