Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377889 - equery depends does not display || dependencies
Summary: equery depends does not display || dependencies
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 15:25 UTC by aditsu
Modified: 2011-08-05 18:06 UTC (History)
0 users

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


Attachments
emerge -pv --depclean &> verbose.log (verbose.log,371.32 KB, text/plain)
2011-08-05 17:20 UTC, aditsu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aditsu 2011-08-05 15:25:24 UTC
# emerge -cp
[...]
 x11-misc/icon-naming-utils
    selected: 0.8.90
   protected: none
     omitted: none

# equery d icon-naming-utils
 * These packages depend on icon-naming-utils:
x11-themes/gnome-icon-theme-3.0.0 (>=x11-misc/icon-naming-utils-0.8.7)

# equery d gnome-icon-theme
 * These packages depend on gnome-icon-theme:
app-text/evince-2.32.0-r3 (>=x11-themes/gnome-icon-theme-2.17.1)

# grep evince /var/lib/portage/world
app-text/evince

Reproducible: Always

Steps to Reproduce:
See description
Comment 1 Samuli Suominen gentoo-dev 2011-08-05 15:30:21 UTC
See `man emerge` for --with-bdeps.   This is normal behavior for buildtime-only depends (DEPEND) to get pruned from system, unrequired at runtime (RDEPEND)
Comment 2 aditsu 2011-08-05 15:43:55 UTC
Thanks for the explanation, but man emerge says:

This defaults to [...] ´y´ for the --depclean action, meaning they will not be removed

Also, x11-misc/icon-naming-utils (and gnome-icon-theme too) was listed in both "emerge -cp --with-bdeps n" and "emerge -cp --with-bdeps y"
Comment 3 aditsu 2011-08-05 15:48:56 UTC
Oh, and I have portage 2.1.10.3
Comment 4 Zac Medico gentoo-dev 2011-08-05 16:56:29 UTC
(In reply to comment #0)
> # equery d gnome-icon-theme
>  * These packages depend on gnome-icon-theme:
> app-text/evince-2.32.0-r3 (>=x11-themes/gnome-icon-theme-2.17.1)

The equery output seems somewhat incomplete. The actual dependency of the ebuild looks like this:

|| ( >=x11-themes/gnome-icon-theme-2.17.1 >=x11-themes/hicolor-icon-theme-0.10 )

This means that gnome-icon-theme is eligible for removal if you have hicolor-icon-theme installed.

If that's not the cause of the issue, the please attach verbose depclean output:

   emerge -pv --depclean &> verbose.log
Comment 5 aditsu 2011-08-05 17:20:05 UTC
Created attachment 282223 [details]
emerge -pv --depclean &> verbose.log

I gave the complete output of "equery d gnome-icon-theme".
Here I'm attaching the output of "emerge -pv --depclean &> verbose.log"
Comment 6 aditsu 2011-08-05 17:34:09 UTC
Indeed, the ebuild dependency is as you said. That means the equery output is misleading?
Comment 7 Zac Medico gentoo-dev 2011-08-05 17:42:52 UTC
(In reply to comment #4)
> (In reply to comment #0)
> > # equery d gnome-icon-theme
> >  * These packages depend on gnome-icon-theme:
> > app-text/evince-2.32.0-r3 (>=x11-themes/gnome-icon-theme-2.17.1)
> 
> The equery output seems somewhat incomplete. The actual dependency of the
> ebuild looks like this:
> 
> || ( >=x11-themes/gnome-icon-theme-2.17.1 >=x11-themes/hicolor-icon-theme-0.10
> )
> 
> This means that gnome-icon-theme is eligible for removal if you have
> hicolor-icon-theme installed.

Your debug output confirms the above explanation:

  x11-themes/hicolor-icon-theme-0.12 pulled in by:
    app-text/evince-2.32.0-r3
    kde-base/kdebase-data-4.7.0
    media-gfx/gimp-2.6.11-r1

So, if you want to keep x11-themes/gnome-icon-theme and its dependencies (such as x11-misc/icon-naming-utils), you'd better add it to your world file:

  emerge --noreplace x11-themes/gnome-icon-theme

(In reply to comment #6)
> Indeed, the ebuild dependency is as you said. That means the equery output is
> misleading?

The dependency is ambiguous, so the information is correct but doesn't give a complete picture. I'll reassign to tools-portage in case they want to do something about that. Maybe there's already an option for that, I don't know.
Comment 8 aditsu 2011-08-05 18:06:14 UTC
I don't need to keep gnome-icon-theme or icon-naming-utils, I don't even really know what they are, I just thought they would break evince. Let's see if equery can be improved.