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>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 694246, 549914    
Attachments: Use Atom with dbapi.match_pkgs

Description mike@marineau.org 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/Scheduler.py", line 1306, in _do_merge_exit
    self._task_complete(pkg)
  File "/usr/lib64/python2.7/site-packages/_emerge/Scheduler.py", line 1379, in _task_complete
    blocker_db.discardBlocker(pkg)
  File "/usr/lib64/python2.7/site-packages/_emerge/BlockerDB.py", 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/DbapiProvidesIndex.py", 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/DbapiProvidesIndex.py", 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:

https://github.com/zmedico/portage/tree/bug_554578

It can be installed like this:

echo '=sys-apps/portage-9999 **' >> /etc/portage/package.accept_keywords
portage_LIVE_BRANCH=bug_554578 \
portage_LIVE_REPO=https://github.com/zmedico/portage.git \
emerge -1 =sys-apps/portage-9999

I've posted it for review here:

https://archives.gentoo.org/gentoo-portage-dev/message/3913fe7229d6470f2242ec0471a97cce
Comment 3 mike@marineau.org 2015-07-14 21:14:42 UTC
(In reply to Zac Medico from comment #2)
> This is in the master branch:
> 
> https://gitweb.gentoo.org/proj/portage.git/commit/
> ?id=2afd8f2c533e6e000b5619282a4cd4c71405eb62

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