Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446666 - Crash during dependency resolution of non existant (+) USE dependency
Summary: Crash during dependency resolution of non existant (+) USE dependency
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 445274
  Show dependency tree
 
Reported: 2012-12-09 23:12 UTC by Hendrik v. Raven
Modified: 2012-12-10 10:53 UTC (History)
1 user (show)

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


Attachments
Python stactrace of emerge calibre (calibre.log,2.36 KB, text/plain)
2012-12-09 23:12 UTC, Hendrik v. Raven
Details
System status (portage-2.2_alpha145.regriession.log,6.25 KB, text/plain)
2012-12-10 09:30 UTC, Hendrik v. Raven
Details

Note You need to log in before you can comment on or make changes to this bug.
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.)