Java Mailing List Archive

http://www.redhatconfig.com/

Home » Gentoo Linux »

Re: [gentoo-user] confusing emerge output

Allan Gottlieb

2008-04-23

Replies: Find Java Web Hosting

Author LoginPost Reply
At Wed, 23 Apr 2008 09:33:05 +0200 Alan McKinnon <alan.mckinnon@(protected):

> On Wednesday 23 April 2008, Allan Gottlieb wrote:
>> # emerge --verbose --ask --deep --update --newuse --tree world
>>
>> gives just a few packages with dev-java/rhino the last one (first to
>> be merged).
>>
>> But
>>
>>  # emerge --oneshot --ask rhino
>>
>> Gives a bunch of packages with rhino the last one (last to build).
>>
>> Could someone explain?
>
> <snip>
>
>> [ebuild N   ] dev-java/rhino-1.5.5-r4 USE="doc -source" 1,506 kB
>
> <snip>
>
>> [ebuild N   ] dev-java/rhino-1.6.5 USE="doc -examples -source"
>
> See the difference? One is v1.5 the other is v1.6. The explanation is in
> the full output of what rhino is and the openoffice ebuild:
>
> alan@(protected)
> * dev-java/rhino
>    Available versions:
>      (1.5)  1.5.5-r4
>      (1.6)  1.6.5
>      {doc elibc_FreeBSD examples source}
>    Homepage:        http://www.mozilla.org/rhino/
>    Description:      An open-source implementation of JavaScript
> written in Java.
>
> From openoffice-2.4.0.ebuild:
> COMMON_DEPEND="
>         java? ( >=dev-java/bsh-2.0_beta4
>           >=dev-java/xalan-2.7
>           >=dev-java/xalan-serializer-2.7
>           >=dev-java/xerces-2.7
>           =dev-java/xml-commons-external-1.3*
>           >=dev-db/hsqldb-1.8.0.9
>           =dev-java/rhino-1.5* )"
>
> There are two SLOTs for rhino - 1.5 and 1.6
>
> OpenOffice explicitly DEPENDS on the 1.5 SLOT for rhino if you
> have "java" in USE. You probably have that so a deep world emerge will
> pull rhino-1.5* in.
>
> You don't currently have rhino installed so when you issue "emerge
> rhino", portage will check for the latest one and install it. It just
> so happens that in this case, the latest is not the same SLOT that OOo
> wants.

Crystal clear. Thanks for the lucid and careful explanation.

allan
--
gentoo-user@(protected)

©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.