Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   trouble with virtual/jdk (http://www.linux-archive.org/gentoo-user/328516-trouble-virtual-jdk.html)

Allan Gottlieb 02-19-2010 12:44 AM

trouble with virtual/jdk
 
When I run
emerge --ignore-default-opts --pretend --deep --tree --verbose --update --with-bdeps=y world

I get (after a DeprecationWarning about portage.dep.dep_getkey() that I
believe I can ignore)

Total: 0 packages, Size of downloads: 0 kB

!!! The following update has been skipped due to unsatisfied dependencies:

virtual/jdk:1.5

!!! All ebuilds that could satisfy "=dev-java/sun-jdk-1.5.0*" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-java/sun-jdk-1.5.0.22 (masked by: dlj-1.1 license(s))
A copy of the 'dlj-1.1' license is located at '/usr/portage/licenses/dlj-1.1'.

(dependency required by "virtual/jdk-1.5.0" [ebuild])

================================================== ==============

But I don't see why virtual/jdk-1.5.0 is being referenced (it is not installed)

I have icedtea6-bin installed and set as my system and user vm.

I do not get the error when I don't have --with-bdeps=y so it must be
some build dependency. But how do I find which one?

# emerge --pretend --verbose --with-bdeps=y --depclean virtual/jdk:1.5
>>> No packages selected for removal by depclean

# emerge --pretend --verbose --with-bdeps=y --depclean =virtual/jdk-1.5.0
>>> No packages selected for removal by depclean

# eix virtual/jdk
[i] virtual/jdk
Available versions:
(1.4) [M]1.4.1 [M]1.4.2
(1.5) 1.5.0
(1.6) 1.6.0
Installed versions: 1.6.0(1.6)(23:21:11 04/21/09)

thanks,
allan

daid kahl 02-19-2010 06:10 AM

trouble with virtual/jdk
 
On 19 February 2010 10:44, Allan Gottlieb <gottlieb@nyu.edu> wrote:
> When I run
> *emerge --ignore-default-opts --pretend --deep --tree --verbose --update --with-bdeps=y world
>
> I get (after a DeprecationWarning about portage.dep.dep_getkey() that I
> believe I can ignore)
>
> Total: 0 packages, Size of downloads: 0 kB
>
> !!! The following update has been skipped due to unsatisfied dependencies:
>
> virtual/jdk:1.5
>
> !!! All ebuilds that could satisfy "=dev-java/sun-jdk-1.5.0*" have been masked.
> !!! One of the following masked packages is required to complete your request:
> - dev-java/sun-jdk-1.5.0.22 (masked by: dlj-1.1 license(s))
> A copy of the 'dlj-1.1' license is located at '/usr/portage/licenses/dlj-1.1'.
>
> (dependency required by "virtual/jdk-1.5.0" [ebuild])
>
> ================================================== ==============
>
> But I don't see why virtual/jdk-1.5.0 is being referenced (it is not installed)
>
> I have icedtea6-bin installed and set as my system and user vm.
>
> I do not get the error when I don't have --with-bdeps=y so it must be
> some build dependency. *But how do I find which one?
>
> # emerge --pretend --verbose --with-bdeps=y --depclean virtual/jdk:1.5
>>>> No packages selected for removal by depclean
>
> # emerge --pretend --verbose --with-bdeps=y --depclean =virtual/jdk-1.5.0
>>>> No packages selected for removal by depclean
>
> # eix virtual/jdk
> [i] virtual/jdk
> * * Available versions:
> * * * *(1.4) * [M]1.4.1 [M]1.4.2
> * * * *(1.5) * 1.5.0
> * * * *(1.6) * 1.6.0
> * * Installed versions: *1.6.0(1.6)(23:21:11 04/21/09)
>
> thanks,
> allan
>
>

I'm not java expert, but some programs want specific virtual
environments (deprecated code mostly I'd guess).

To not answer your question, throw the following into make.conf and
you will circumvent the block (provided you are cool to accept the
license):

ACCEPT_LICENSE="dlj-1.1"

As far as which package from the dependency tree, then I'm guessing
you can use equery depgraph and try to grep the results for the
virtual/jdk-1.5.0

I'm crap at narrowing the outputs of depgraph, but I haven't had many
cases where I needed to do this. If I'm depcleaning and updating the
world on -uND I trust portage that it needs the things it says.

~daid

Willie Wong 02-19-2010 10:33 AM

trouble with virtual/jdk
 
On Thu, Feb 18, 2010 at 08:44:21PM -0500, Allan Gottlieb wrote:
> When I run
> emerge --ignore-default-opts --pretend --deep --tree --verbose --update --with-bdeps=y world
>

<snip>

> !!! The following update has been skipped due to unsatisfied dependencies:
>
> virtual/jdk:1.5
>
> !!! All ebuilds that could satisfy "=dev-java/sun-jdk-1.5.0*" have been masked.
> !!! One of the following masked packages is required to complete your request:
> - dev-java/sun-jdk-1.5.0.22 (masked by: dlj-1.1 license(s))
> A copy of the 'dlj-1.1' license is located at '/usr/portage/licenses/dlj-1.1'.
>
> (dependency required by "virtual/jdk-1.5.0" [ebuild])
>
> ================================================== ==============
>
> But I don't see why virtual/jdk-1.5.0 is being referenced (it is not installed)

Maybe a deep/build-time dependency of some other program is now
specifying java 1.5 instead of 1.6? Try temporarily accepting the
license and re-run the command to see who is pulling in jdk:1.5?

W
--
Willie W. Wong wwong@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire
et vice versa ~~~ I. Newton

Philip Webb 02-19-2010 12:44 PM

trouble with virtual/jdk
 
100218 Allan Gottlieb wrote:
> When I run
> emerge --ignore-default-opts --pretend --deep --tree --verbose --update --with-bdeps=y world
> I get ...
> !!! The following update has been skipped due to unsatisfied dependencies:
> virtual/jdk:1.5
> !!! All ebuilds that could satisfy "=dev-java/sun-jdk-1.5.0*" have been masked.
> I don't see why virtual/jdk-1.5.0 is referenced (it is not installed) ...
> # eix virtual/jdk
> [i] virtual/jdk
> Available versions:
> (1.4) [M]1.4.1 [M]1.4.2
> (1.5) 1.5.0
> (1.6) 1.6.0
> Installed versions: 1.6.0(1.6)(23:21:11 04/21/09)

I have the same result with Eix, but note Equery :

root:503 ~> equery d virtual/jdk
[ Searching for packages depending on virtual/jdk... ]
app-office/openoffice-3.1.1 (java? =virtual/jdk-1.5*)
(java? =virtual/jdk-1.6*)
dev-db/hsqldb-1.8.0.10 (!java6? =virtual/jdk-1.5*)
(java6? >=virtual/jdk-1.6) ...

My 'make.conf' has 'java', but not 'java6',
so there mb some obscure problem lurking in OO, which I haven't hit yet
(Java in OO is largely for DB & help, isn't it ? ).

BTW can anyone advise what the '*' means in the list above ?

--
========================,,======================== ====================
SUPPORT ___________//___, Philip Webb
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
TRANSIT `-O----------O---' purslowatchassdotutorontodotca

walt 02-19-2010 01:47 PM

trouble with virtual/jdk
 
On 02/19/2010 05:44 AM, Philip Webb wrote:


dev-db/hsqldb-1.8.0.10 (!java6? =virtual/jdk-1.5*)
(java6?>=virtual/jdk-1.6) ...

My 'make.conf' has 'java', but not 'java6',


I'm thinking that !java6 notation means if you *don't* have the
java6 useflag enabled (but do want java) then hsqldb will pull
in jdk1.5 instead of 1.6. Just a guess.

Alan McKinnon 02-19-2010 02:09 PM

trouble with virtual/jdk
 
On Friday 19 February 2010 16:47:09 walt wrote:
> On 02/19/2010 05:44 AM, Philip Webb wrote:
> > dev-db/hsqldb-1.8.0.10 (!java6? =virtual/jdk-1.5*)
> >
> > (java6?>=virtual/jdk-1.6) ...
> >
> > My 'make.conf' has 'java', but not 'java6',
>
> I'm thinking that !java6 notation means if you *don't* have the
> java6 useflag enabled (but do want java) then hsqldb will pull
> in jdk1.5 instead of 1.6. Just a guess.

More than a guess. You are spot on 100% accurate.

--
alan dot mckinnon at gmail dot com

Allan Gottlieb 02-19-2010 02:15 PM

trouble with virtual/jdk
 
At Fri, 19 Feb 2010 17:09:03 +0200 Alan McKinnon <alan.mckinnon@gmail.com> wrote:

> On Friday 19 February 2010 16:47:09 walt wrote:
>> On 02/19/2010 05:44 AM, Philip Webb wrote:
>> > dev-db/hsqldb-1.8.0.10 (!java6? =virtual/jdk-1.5*)
>> >
>> > (java6?>=virtual/jdk-1.6) ...
>> >
>> > My 'make.conf' has 'java', but not 'java6',
>>
>> I'm thinking that !java6 notation means if you *don't* have the
>> java6 useflag enabled (but do want java) then hsqldb will pull
>> in jdk1.5 instead of 1.6. Just a guess.
>
> More than a guess. You are spot on 100% accurate.

Indeed. As I mentioned in a msg sent just before walt's and alan's
arrived, adding java6 to make.conf fixed everything.

allan

daid kahl 02-22-2010 12:24 AM

trouble with virtual/jdk
 
> *root:503 ~> equery d virtual/jdk
> *[ Searching for packages depending on virtual/jdk... ]
> *app-office/openoffice-3.1.1 (java? =virtual/jdk-1.5*)
> * * * * * * * * * * * * * * *(java? =virtual/jdk-1.6*)
> *dev-db/hsqldb-1.8.0.10 (!java6? =virtual/jdk-1.5*)
> * * * * * * * * * * * * (java6? >=virtual/jdk-1.6) ...
>
> My 'make.conf' has 'java', but not 'java6',
> so there mb some obscure problem lurking in OO, which I haven't hit yet
> (Java in OO is largely for DB & help, isn't it ? ).
>
> BTW can anyone advise what the '*' means in the list above ?

Consider cd && ls .*

The star is the same wildcard...

So like a dependency of jdk-1.5* means any java pacakge (full package
here including the version number) with 1.5[anything] is accepted to
meet the dependency in the case you don't use java6.

~daid


All times are GMT. The time now is 10:03 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.