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

Bug 554578

Summary: emerge always raises attribute error with soname deps enabled
Product: Portage Development Reporter: mike <mike>
Component: Binary packages supportAssignee: Portage team <dev-portage>
Severity: normal Keywords: InVCS
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 694246, 549914    
Attachments: Use Atom with dbapi.match_pkgs

Description 2015-07-12 03:38:25 UTC
Created attachment 406578 [details, diff]
Use Atom with dbapi.match_pkgs

A plain string atom is passed to code assuming Atom:

  File "/usr/lib64/python2.7/site-packages/_emerge/", line 1306, in _do_merge_exit
  File "/usr/lib64/python2.7/site-packages/_emerge/", line 1379, in _task_complete
  File "/usr/lib64/python2.7/site-packages/_emerge/", line 120, in discardBlocker
    for cpv_match in self._fake_vartree.dbapi.match_pkgs("=%s" % (pkg.cpv,)):
  File "/usr/lib64/python2.7/site-packages/_emerge/resolver/", line 85, in match_pkgs
    return [self._db._cpv_map[cpv] for cpv in self.match(atom)]
  File "/usr/lib64/python2.7/site-packages/_emerge/resolver/", line 39, in match
    if atom.soname:
AttributeError: 'unicode' object has no attribute 'soname'
Comment 1 Zac Medico gentoo-dev 2015-07-12 05:09:48 UTC
There's a patch in the following branch:

It can be installed like this:

echo '=sys-apps/portage-9999 **' >> /etc/portage/package.accept_keywords
portage_LIVE_BRANCH=bug_554578 \
portage_LIVE_REPO= \
emerge -1 =sys-apps/portage-9999

I've posted it for review here:
Comment 3 2015-07-14 21:14:42 UTC
(In reply to Zac Medico from comment #2)
> This is in the master branch:
> ?id=2afd8f2c533e6e000b5619282a4cd4c71405eb62

I can confirm that the current master works for me. Thanks!
Comment 4 Brian Dolbec gentoo-dev 2015-09-22 01:23:19 UTC
Released in portage-2.2.21