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

Bug 649668

Summary: sys-apps/portage: emerge spends time calculating dependencies even if later will die due to ambiguous name
Product: Portage Development Reporter: Pacho Ramos <pacho>
Component: Core - DependenciesAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: fturco
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pacho Ramos gentoo-dev 2018-03-05 18:11:42 UTC
I have seen that emerge spends time calculating dependencies for later dying with:
# emerge tree
Calculating dependencies |

  
[ Results for search key : tree ]
*  app-text/tree
      Latest version available: 1.7.0
      Latest version installed: [ Not Installed ]
      Size of files: 46 KiB
      Homepage:      http://mama.indstate.edu/users/ice/tree/
      Description:   Lists directories recursively, and produces an indented listing of files
      License:       GPL-2

*  dev-cpp/tree
      Latest version available: 2.81
      Latest version installed: [ Not Installed ]
      Size of files: 1.140 KiB
      Homepage:      http://www.aei.mpg.de/~peekas/tree/
      Description:   An STL-like tree class
      License:       || ( GPL-2 GPL-3 )

[ Applications found : 4 ]

!!! The short ebuild name "tree" is ambiguous. Please specify
!!! one of the above fully-qualified ebuild names instead.

... done!

Wouldn't it be possible to die earlier? As soon as detecting that there are more than one package with the same name :/, otherwise it is spending time calculating dependencies that later it won't use for anything

Thanks a lot