Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 275483

Summary: Portage pretends it is calculating dependencies when it is looking for the package
Product: Portage Development Reporter: Alexandre Nuno Milheiro <nunomilheiro>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexandre Nuno Milheiro 2009-06-26 13:05:21 UTC
When portage outputs the message "Calculating dependencies" it is in fact looking for the package ebuild

Reproducible: Always

Steps to Reproduce:
1. execute:
emerge -p non-existent-ebuild
emerge -p gcc
Actual Results:  
emerge -p nonexistentpackage ; emerge -p portage

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

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "nonexistentpackage".


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

Calculating dependencies... done!
[ebuild   R   ] sys-apps/portage-2.1.6.13 


Expected Results:  
emerge -p nonexistentpackage ; emerge -p portage

Looking for the ebuild for this package... done!

emerge: there are no ebuilds to satisfy "nonexistentpackage".


Looking for the ebuild for this package... done!

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

Calculating dependencies... done!
[ebuild   R   ] sys-apps/portage-2.1.6.13
Comment 1 Sebastian Luther (few) 2009-06-26 13:53:32 UTC
emerge can't know at which ebuilds it needs look at at the beginning. You give it a atom and it calculates which packages are needed for it. At this moment it looks for ebuilds. If it finds one, it reads the ebuild, calculates which packages are needed for it and then reads the ebuilds for the needed packages. Reading ebuilds and calculating dependencies aren't two separated processes.