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

Bug 446666

Summary: Crash during dependency resolution of non existant (+) USE dependency
Product: Portage Development Reporter: Hendrik v. Raven <hendrik>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: hendrik
Priority: Normal Keywords: InVCS, REGRESSION
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 445274    
Attachments: Python stactrace of emerge calibre
System status

Description Hendrik v. Raven 2012-12-09 23:12:31 UTC
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.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2012-12-10 01:07:35 UTC
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
Comment 3 Zac Medico gentoo-dev 2012-12-10 01:39:52 UTC
This is fixed in 2.1.11.35 and 2.2.0_alpha146.
Comment 4 Hendrik v. Raven 2012-12-10 08:07:29 UTC
Do you still want the requested emerge outputs?
Comment 5 Arfrever Frehtes Taifersar Arahesis 2012-12-10 08:48:28 UTC
(In reply to comment #4)
> Do you still want the requested emerge outputs?

Yes. (The exception does not occur for majority of users.)
Comment 6 Hendrik v. Raven 2012-12-10 09:30:33 UTC
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).
Comment 7 Arfrever Frehtes Taifersar Arahesis 2012-12-10 10:53:44 UTC
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.)