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

Bug 382823

Summary: sys-apps/portage-2.1.10.11 : Put emerge packagename and emerge --depclean in coherency when resolving dependencies on multislotted packages
Product: Gentoo Linux Reporter: Eric F. GARIOUD <eric-f.garioud>
Component: [OLD] Core systemAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 155723, 381649    

Description Eric F. GARIOUD 2011-09-13 12:37:26 UTC
Following Bug 382721 I reported against nvidia-cuda-toolkit, I think it would be an enhancement of portage if emerge packagename and emerge --depclean were coherent when resolving dependencies.

exempli gratia :

- gcc-4.4.5 emerged with the multislot use flag.
- emerge packagename apparently considers that it fits for satisfying a build specifying a sys-devel/gcc:4.4 runtime dependency.
- But emerge --depclean apparently does not consider things identically and fails processing because :
-----------------------------------------------
* Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   sys-devel/gcc:4.4 pulled in by:
 *     dev-util/nvidia-cuda-toolkit-4.0
----------------------------------------

It would of course be simpler (on the user point of view) if both were considering that gcc-4.4.5 slot satisfies the dependency on a gcc-4.4 slot but if emerge --depclean must / can not be modified that way then emerge packagename should behave identically and should not consider that the dependency is satisfied too. 

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2011-09-15 01:15:42 UTC
*** Bug 382721 has been marked as a duplicate of this bug. ***
Comment 3 Zac Medico gentoo-dev 2011-09-15 06:24:28 UTC
This is fixed in 2.1.10.18 and 2.2.0_alpha58.