Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145232 - double upgrade during emerge -uD
Summary: double upgrade during emerge -uD
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-27 02:05 UTC by Josef Reidinger
Modified: 2006-08-27 03:48 UTC (History)
0 users

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 Josef Reidinger 2006-08-27 02:05:53 UTC
selfexplenation:
localhost user # emerge -avDu world

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

Calculating world dependencies... done!

[ebuild     UD] dev-java/ant-core-1.6.2-r5 [1.6.5-r13] USE="-doc -source" 0 kB
[ebuild     U ] dev-java/ant-tasks-1.6.2-r10 [1.6.2-r9] USE="-javamail -noantlr -nobcel -nobeanutils -nobsf% -nobsh -nocommonslogging -nocommonsnet -nojdepend -nojsch -nojython -nolog4j -nooro -noregexp -norhino -noxalan -noxerces" 0 kB
[ebuild  N    ] dev-java/lucene-1.4.3  USE="junit -doc -jikes -source" 0 kB
[ebuild     U ] dev-java/ant-tasks-1.6.5-r2 [1.6.2-r9] USE="-javamail -noantlr -nobcel -nobeanutils -nobsf% -nobsh -nocommonslogging -nocommonsnet -nojdepend -nojsch -nojython -nolog4j -nooro -noregexp -norhino -noxalan -noxerces" 0 kB
[ebuild  NS   ] dev-util/eclipse-sdk-3.2  USE="gnome opengl -cairo -no-seamonkey" 0 kB


and lucene doesn`t depend on ant-tasks, so why there is double update, which need downgrade ant-core?

emerge -p lucene

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

Calculating dependencies... done!
[ebuild  N    ] dev-java/lucene-1.4.3  USE="junit -doc -jikes -source" 0 kB

Total size of downloads: 0 kB

localhost user # emerge -up ant-tasks

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

Calculating dependencies... done!
[ebuild     U ] dev-java/ant-tasks-1.6.5-r2 [1.6.2-r9] USE="-javamail -noantlr -nobcel -nobeanutils -nobsf% -nobsh -nocommonslogging -nocommonsnet -nojdepend -nojsch -nojython -nolog4j -nooro -noregexp -norhino -noxalan -noxerces" 0 kB

Total size of downloads: 0 kB
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-27 02:10:07 UTC
Because you can't mix different ant-core and ant-tasks versions; read the dev-java/ant-tasks ebuild. Either stick both into package.keywords or none.
Comment 2 Josef Reidinger 2006-08-27 02:26:56 UTC
(In reply to comment #1)
> Because you can't mix different ant-core and ant-tasks versions; read the
> dev-java/ant-tasks ebuild. Either stick both into package.keywords or none.
> 

BUT I have same keywords! both have ~x86
after I upgrade manualy ant-tasks to 1.6.5. it write this! why downgrade both??? and the greatest bug is that eclipse-sdk-3.2 depends on
    >=dev-java/ant-core-1.6.5
    >=dev-java/ant-tasks-1.6.5

so portage downgrade ant-core/tasks and then emerge eclipse which need greatter version!


localhost user # emerge -avDu world

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

Calculating world dependencies... done!
[ebuild     UD] dev-java/ant-core-1.6.2-r5 [1.6.5-r13] USE="-doc -source" 0 kB
[ebuild     UD] dev-java/ant-tasks-1.6.2-r10 [1.6.5-r2] USE="-javamail -noantlr -nobcel -nobeanutils -nobsf -nobsh -nocommonslogging -nocommonsnet -nojdepend -nojsch -nojython -nolog4j -nooro -noregexp -norhino -noxalan -noxerces" 0 kB
[ebuild  N    ] dev-java/lucene-1.4.3  USE="junit -doc -jikes -source" 0 kB
[ebuild  NS   ] dev-util/eclipse-sdk-3.2  USE="gnome opengl -cairo -no-seamonkey" 0 kB

Total size of downloads: 0 kB

my keywords java packages frem packages.keywords

#java packages
dev-java/ant-core ~x86
dev-util/eclipse-sdk ~x86
dev-java/javatoolkit ~x86
dev-java/java-config-wrapper ~x86
dev-java/java-config ~x86
dev-java/sun-jdk ~x86
dev-java/ant-tasks ~x86
virtual/jdk ~x86
dev-java/blackdown-jdk ~x86

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-27 02:36:41 UTC
(In reply to comment #2)
> BUT I have same keywords! both have ~x86
> after I upgrade manualy ant-tasks to 1.6.5. it write this! why downgrade
> both??? 

Because the versions need to match, already explained above. Find out what depends on ant-{core,tasks}-1.6.2 (p.mask <1.6.5 to see). This is not a portage bug, it just follows the dependencies correctly.
Comment 4 Josef Reidinger 2006-08-27 03:19:33 UTC
I think that it`s still bug in portage(but I know that I haven`t ant ~x86), because after masking it write
------
These are the packages that would be merged, in order:

Calculating world dependencies /
!!! All ebuilds that could satisfy "=dev-java/ant-tasks-1.6.2*" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-java/ant-tasks-1.6.2-r10 (masked by: package.mask)
- dev-java/ant-tasks-1.6.2-r9 (masked by: package.mask)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "dev-java/ant-1.6.2-r6" [ebuild])



!!! Problem resolving dependencies for dev-util/eclipse-sdk
!!! Depgraph creation failed.
------

but this is dependency for eclipse 3.1.2!!!
and portage at first downgrade ant-core/tasks to 1.6.2 for eclipse-3.1.2 and then emerge eclipse 3.2 with bad version of ant-core/tasks. I think that it`s bug in dependencies, because it must count with new version of eclipse and not with old and then emerge new.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-08-27 03:25:08 UTC
You need to p.mask <dev-java/ant-1.6.5 as well to get any useful result for what's the real dependency. (And, I hope you don't have 
the dev-java/ant-1.6.2 metabuild mixed w/ dev-java/ant-{tasks,core}-1.6.5.
Comment 6 Josef Reidinger 2006-08-27 03:41:10 UTC
(In reply to comment #5)
> You need to p.mask <dev-java/ant-1.6.5 as well to get any useful result for
> what's the real dependency. (And, I hope you don't have 
> the dev-java/ant-1.6.2 metabuild mixed w/ dev-java/ant-{tasks,core}-1.6.5.
> 

this is useful report, because it is write that`s for eclipse and eclipse3.2 doesn`t depenf on ant so it`s eclipse 3.1.2(depndencies lower) and if I have ant only x86 then it collides (so i add ant to ~x86 and it works).
But still is valid my comment #4 for bad building dependency tree.

-----
eclipse-3.1.2-dependencies
DEPEND="${RDEPEND}
    >=virtual/jdk-1.4.2
    jikes? ( >=dev-java/jikes-1.21 )
    >=dev-java/ant-1.6.2
    >=dev-java/ant-core-1.6.2-r4
    >=sys-apps/findutils-4.1.7
    app-arch/unzip
    app-arch/zip"


Comment 7 Josef Reidinger 2006-08-27 03:44:49 UTC
Upssss, my mistake I overlook, that eclipse is slotted, so old eclipse is still valid. OK, all works.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-08-27 03:48:21 UTC
Please, don't mix stable and ~arch packages in future if you can't cope with the dependencies.