Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126748 - merge order does not correctly account for all dependencies
Summary: merge order does not correctly account for all dependencies
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: modular-deps 137654 (view as bug list)
Depends on:
Blocks: 136244 142283
  Show dependency tree
 
Reported: 2006-03-18 17:56 UTC by Patrick McLean
Modified: 2006-07-26 02:22 UTC (History)
6 users (show)

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


Attachments
gnome-craziness.tar.gz (gnome-craziness.tar.gz,2.69 KB, application/octet-stream)
2006-03-18 18:17 UTC, Patrick McLean
Details
add more dependencies to the digraph (more_complete_digraph.patch,1.17 KB, patch)
2006-07-24 20:28 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick McLean gentoo-dev 2006-03-18 17:56:52 UTC
When resolving PDEPENDs, portage doesn't properly calculate the dependencies if the pacakge that is the PDEPEND includes the PDEPEND-ing package in it's dependency tree.

(this is worked around for now, but this still should be fixed)

gnome-base/gnome-vfs pdepends on gnome-base/gnome-mount which deps on gnome-base/libgnomeui which DEPENDs on gnome-base/libgnome which DEPENDs on gnome-base/gnome-vfs, whenever we try to merge the whole mess, it tries to merge gnome-mount before libgnomeui (I will attach an overlay that with modified ebuilds that show this in a minimal way)

portage should see that gnome-mount DEPENDS on libgnomeui and is only PDEPEND'ed on by gnome-vfs so it should delay merging gnome-mount until libgnomeui is merged.
Comment 1 Patrick McLean gentoo-dev 2006-03-18 18:17:21 UTC
Created attachment 82509 [details]
gnome-craziness.tar.gz

Tarball with overlay that minimally displays the problem, gnome 2.14 will need to be unmasked on the test system.

The best minimal test is the following on system with gnome 2.14 unmasked, and the overlay installed:

USE="-* hal" emerge -epv nautilus
Comment 2 Zac Medico gentoo-dev 2006-07-24 20:28:32 UTC
Created attachment 92675 [details, diff]
add more dependencies to the digraph

This patch (in svn r4019) adds more dependencies to the digraph so that they will be accounted for in the merge order calculation.  This patch might make some previously undetected circular dependencies visible.  Hopefully it solves this bug.
Comment 3 Zac Medico gentoo-dev 2006-07-25 11:46:52 UTC
*** Bug 137654 has been marked as a duplicate of this bug. ***
Comment 4 Zac Medico gentoo-dev 2006-07-25 12:28:19 UTC
This has been released in 2.1.1_pre3-r5.
Comment 5 Zac Medico gentoo-dev 2006-07-25 13:23:28 UTC
*** Bug 133671 has been marked as a duplicate of this bug. ***