Created attachment 331902 [details] Python stactrace of emerge calibre Portage crashes with an internal error during the dependency resolution of app-text/calibre (see attached stack trace). Calibre depends on a non-existent USE flag 'xpdf-headers' in poppler, which is marked with (+) and shouldn't cause any problems. 2.2.0_alpha142 seems to be unaffected, alpha144 and alpha145 show that bug.
This is fixed in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ecae0c4fc46d6bc8054104a99af90bc45d4e7429
Hendrik v. Raven: Could you show output of the following commands (before changing state of your system): emerge -Opv app-text/poppler emerge -Opv app-text/calibre emerge -Opv sys-apps/portage emerge --info eselect python show cat /etc/portage/modules
This is fixed in 2.1.11.35 and 2.2.0_alpha146.
Do you still want the requested emerge outputs?
(In reply to comment #4) > Do you still want the requested emerge outputs? Yes. (The exception does not occur for majority of users.)
Created attachment 331934 [details] System status Here are the requested outputs. I reverted parts of my system to repoduce the bug (did an upgrade since yesteday), and was able to limit the occurence of this bug to the cases in which poppler is build without qt4 USE flag (poppler with qt4 is a dependency of calibre).
OK. It seems that this bug was occurring only when given atom in *DEPEND specifies dependency on also another USE flag, which is in IUSE of target package and has other state (enabled/disabled) than requested. (DEPEND="${target_package}[flag1,flag2(+)]" triggers this bug, while DEPEND="${target_package}[flag1] ${target_package}[flag2(+)]" does not.)