Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 217714 - sys-apps/portage-2.1.4.4: crash on emerge --noreplace git
Summary: sys-apps/portage-2.1.4.4: crash on emerge --noreplace git
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 235844 242928 (view as bug list)
Depends on:
Blocks: 216231
  Show dependency tree
 
Reported: 2008-04-14 19:52 UTC by pat
Modified: 2009-09-07 22:42 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 pat 2008-04-14 19:52:28 UTC
An 'emerge --noreplace git' makes portage crash because 'git' is ambiguous:
'app-misc/git', 'dev-util/git'

Shows a traceback instead of a nice error message. Note the --noreplace option.

Reproducible: Always

Steps to Reproduce:
$ sudo emerge --noreplace -a git


Actual Results:  

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

Calculating dependencies /

!!! Problem in 'dev-util/git' dependencies.
!!! ['app-misc/git', 'dev-util/git'] exceptions
Traceback (most recent call last):
  File "/usr/bin/emerge", line 6971, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 6965, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 6232, in action_build
    retval, favorites = mydepgraph.select_files(myfiles)
  File "/usr/bin/emerge", line 2078, in select_files
    self.mysd = self.select_dep(myroot, myatom, arg=myarg)
  File "/usr/bin/emerge", line 2437, in select_dep
    metadata=selected_pkg[1], rev_dep=rev_deps, arg=arg):
  File "/usr/bin/emerge", line 1784, in create
    all_ebuilds_masked = bool(
  File "/usr/lib64/portage/pym/portage.py", line 7365, in xmatch
    mydep = dep_expand(origdep, mydb=self, settings=self.mysettings)
  File "/usr/lib64/portage/pym/portage.py", line 5358, in dep_expand
    return prefix + cpv_expand(
  File "/usr/lib64/portage/pym/portage.py", line 5583, in cpv_expand
    raise ValueError, matches
ValueError: ['app-misc/git', 'dev-util/git']


Expected Results:  
Show me the alternatives without crash.
Comment 1 Zac Medico gentoo-dev 2008-04-14 21:33:36 UTC
This is fixed in 2.1.5_rc.
Comment 2 Zac Medico gentoo-dev 2008-08-27 09:48:20 UTC
*** Bug 235844 has been marked as a duplicate of this bug. ***
Comment 3 Zac Medico gentoo-dev 2008-10-26 17:43:04 UTC
*** Bug 242928 has been marked as a duplicate of this bug. ***