Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348389 - sys-apps/portage-2.2.0_alpha7: AttributeError triggered by SLOT conflict
Summary: sys-apps/portage-2.2.0_alpha7: AttributeError triggered by SLOT conflict
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
: 348815 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-10 23:32 UTC by Günther Hutzl
Modified: 2010-12-16 17:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
combined patch (bug_348389.patch,5.00 KB, patch)
2010-12-16 03:19 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Günther Hutzl 2010-12-10 23:32:46 UTC
I am trying to update @world and get this error message:

 ~ # emerge -auvDN @world

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

Calculating dependencies... done!
[ebuild     UD] media-video/ffmpeg-0.6 [0.6_p25767] USE="3dnow 3dnowext X alsa bzip2 dirac encode faac hardcoded-tables jack jpeg2k mmx mmxext mp3 oss schroedinger sdl speex ssse3 theora threads tools%* v4l v4l2 vaapi vdpau vorbis vpx x264 xvid zlib (-altivec) -amr -bindist -cpudetection -custom-cflags -debug -doc -faad% -gsm -ieee1394 -network -pic -rtmp -static-libs -test (-frei0r%) (-qt-faststart%)" VIDEO_CARDS="nvidia" 0 kB [0=>1]                                                                                                                                                         

Total: 1 package (1 downgrade), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /var/lib/layman/multimedia
Traceback (most recent call last):
  File "/usr/bin/emerge", line 43, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1700, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 300, in action_build
    mydepgraph.display_problems()
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 4747, in display_problems
    self._display_problems()
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 4768, in _display_problems
    self._show_slot_collision_notice()
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 480, in _show_slot_collision_notice
    self._dynamic_config._slot_conflict_handler = slot_conflict_handler(self)
  File "/usr/lib64/portage/pym/_emerge/resolver/slot_collision.py", line 129, in __init__
    self._prepare_conflict_msg_and_check_for_specificity()
  File "/usr/lib64/portage/pym/_emerge/resolver/slot_collision.py", line 237, in _prepare_conflict_msg_and_check_for_specificity
    for flag in violated_atom.use.enabled.union(violated_atom.use.disabled):
AttributeError: 'NoneType' object has no attribute 'enabled'


I am using =sys-apps/portage-2.2.0_alpha7 



Reproducible: Always

Steps to Reproduce:
1. emerge -auvDN @world


Actual Results:  
Traceback like in description

Expected Results:  
Just update world.
Comment 1 Zac Medico gentoo-dev 2010-12-14 12:23:59 UTC
Please post the output of the same command with the emerge --debug option enabled.
Comment 2 Zac Medico gentoo-dev 2010-12-14 12:40:20 UTC
This could be a regression triggered by stricter USE dependency matching behavior, introduced by this commit:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=766988aa56bb1bbd2796f96946e62ed78cdf2599
Comment 3 Zac Medico gentoo-dev 2010-12-15 22:47:56 UTC
*** Bug 348815 has been marked as a duplicate of this bug. ***
Comment 5 Zac Medico gentoo-dev 2010-12-16 03:19:49 UTC
Created attachment 257269 [details, diff]
combined patch

Save as /tmp/bug_348389.patch and apply as follows:

  cd /usr/lib/portage
  patch -p1 < tmp/bug_348389.patch
Comment 6 Lucian Muresan 2010-12-16 11:40:36 UTC
hi, I can confirm the patch works for https://bugs.gentoo.org/show_bug.cgi?id=348815 when using the "-deep" switch. Thanks.
Comment 7 Zac Medico gentoo-dev 2010-12-16 17:12:59 UTC
Thanks for testing. This is fixed in 2.2.0_alpha8.