Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355437 - x11-libs/libnotify bloat dependencies
Summary: x11-libs/libnotify bloat dependencies
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-18 14:46 UTC by Cedric Sodhi
Modified: 2011-02-21 16:58 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cedric Sodhi 2011-02-18 14:46:59 UTC
libnotify has, to my knowledge, again wrong dependencies. It unconditionally ships with notifiaction-daemon which depends on some gnome stuff. This can't be right.

Reproducible: Always

Steps to Reproduce:
Comment 1 Wormo (RETIRED) gentoo-dev 2011-02-18 23:38:14 UTC
I'm not sure I understand the issue -- libnotify ebuild does not require notification-daemon unconditionally, but rather allows use of non-gnome alternatives such as knotify or xfce4-notifyd:

PDEPEND="|| (
    x11-misc/notification-daemon
    xfce-extra/xfce4-notifyd
    >=x11-wm/awesome-3.4.4
    kde-base/knotify
)

Could you explain what I'm missing?
Comment 2 Cedric Sodhi 2011-02-19 08:06:27 UTC
Maybe it's me who is missing something. I understand dependencies as unconditionally needed build- or runtime dependencies. To my understanding, making a library *depend* upon an application which uses it is not correct.

It's true that libnotify makes only sense to have, if you own an application which employs it. However...

1) It's not said that aforementioned applications are the only ones that could be used with libnotify
2) It should not be the responsibility of the package manager to *impose* a choice of applications or even to draw a conclusion such as whether it would not be useful to have a certain program without another

Portage is meant for flexibility (as is, I assume, any other package manager). Anticipating a user's wishes (possibly wrongly) is unasked for.

If you disagree, I will consult the mailing list on this general topic to see how that overall attitude towards portage is. The above should be - and if it's not should be made - a definite policy of portage.
Comment 3 Wormo (RETIRED) gentoo-dev 2011-02-21 06:04:08 UTC
Ok, so the question is not really why libnotify ebuild requires a gnome dependency (which it doesn't) but why it requires any notifier application to be installed.

Take a look at bug 253334  for a discussion of the dependency on a notifier app: the reason turned out to be making sure USE=libnotify works as expected without having to repeat this list of notifier alternatives in every ebuild with that useflag.

Do you have a cleaner alternative to propose, taking USE=libnotify into account? If so, we can go ahead and reassign this bug to libnotify maintainers...
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2011-02-21 16:58:18 UTC
libnotify is the library and meta- package at the same time.  and it's not useful without notification daemon behind dbus call.  any new daemons that provide this dbus service, will be added to the list like others have been so far.