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

Bug 653250

Summary: emerge --depclean tries to remove needed package oxygen-icons
Product: Portage Development Reporter: Marius Stoica <Letto2>
Component: Core - DependenciesAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal CC: grknight, Letto2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info

Description Marius Stoica 2018-04-15 16:54:30 UTC
I tried to run emerge -a --depclean and it tried to remove oxygen-icons, even tough there are a lot of packages that depend on it

$ equery depends kde-frameworks/oxygen-icons
 * These packages depend on kde-frameworks/oxygen-icons:
... long list of packages, among them are kdebase-meta and plasma-meta

$ equery depends kde-frameworks/oxygen-icons | wc -l
149

$ sudo emerge -a --depclean


>>> These are the packages that would be unmerged:

 kde-frameworks/oxygen-icons
    selected: 5.44.0 
   protected: none 
     omitted: none 

All selected packages: =kde-frameworks/oxygen-icons-5.44.0




Reproducible: Always
Comment 1 Marius Stoica 2018-04-15 16:56:25 UTC
Created attachment 527532 [details]
emerge-info
Comment 2 Brian Evans (RETIRED) gentoo-dev 2018-04-15 17:05:24 UTC
Prove it really is needed.

Don't rely on 'equery depends' as it cheats and shows what might depend and not does depend based on USE flags or other settings.
Comment 3 Zac Medico gentoo-dev 2018-04-15 17:57:11 UTC
You'll get differing results with equery depends because it does not account for USE flags in the Dependencies._parser method:

https://gitweb.gentoo.org/proj/gentoolkit.git/tree/pym/gentoolkit/dependencies.py?h=gentoolkit-0.4.2#n285
Comment 4 Andreas Sturmlechner gentoo-dev 2021-10-02 15:12:22 UTC
I doubt this is legit.

ecm.eclass has this:

> # gui applications need breeze or oxygen for basic iconset, bug #564838
> RDEPEND+=" || (
>         kde-frameworks/breeze-icons:*
>         kde-frameworks/oxygen-icons:*
> )"