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

Bug 656492

Summary: =sys-apps/portage-2.3.39: portage/util/_dyn_libs/soname_deps.py line 111 _intersect(): AttributeError: 'set' object has no attribute 'items'
Product: Portage Development Reporter: Bernd Feige <Bernd.Feige>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: REGRESSION
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 694246, 651804    

Description Bernd Feige 2018-05-25 13:57:51 UTC
Hello, portage-2.3.39 seems to have been unmasked despite multiple problems. When installing net-print/hplip-plugin, I receive the error noted above, which is due to the ".items()" method being used on something which really is a set().

Due to this, emerge hangs in AsynchronousTask.py and must be hard killed.

Downgrading to portage-2.3.38 allows hplip-plugin to install.
Comment 1 Larry the Git Cow gentoo-dev 2018-05-25 16:12:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=466cc6c60fcf1d56049af7a1d37fc959f6808351

commit 466cc6c60fcf1d56049af7a1d37fc959f6808351
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-05-25 16:07:33 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-05-25 16:10:34 +0000

    SonameDepsProcessor: fix 'set' object has no attribute 'items' (bug 656492)
    
    Use collections.defaultdict to ensure that requires_map
    contains correct defaults.
    
    Fixes: 1364cd44e7a6 ("SonameDepsProcessor: handle internal libs without DT_SONAME (bug 646190)")
    Bug: https://bugs.gentoo.org/656492

 pym/portage/util/_dyn_libs/soname_deps.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2018-05-25 16:21:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deb276c80dd8c2a7362b924b43d1c073d1e0a093

commit deb276c80dd8c2a7362b924b43d1c073d1e0a093
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-05-25 16:19:11 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-05-25 16:19:51 +0000

    sys-apps/portage: version bump to 2.3.40
    
      #656492 - AttributeError: 'set' object has no attribute 'items'
    
    Closes: https://bugs.gentoo.org/656492
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 sys-apps/portage/Manifest                                         | 2 +-
 sys-apps/portage/{portage-2.3.39.ebuild => portage-2.3.40.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)