Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379941 - x11-libs/libnotify: please make installing 'notify-send' optional
Summary: x11-libs/libnotify: please make installing 'notify-send' optional
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-20 09:54 UTC by Michał Górny
Modified: 2013-03-19 16:19 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-20 09:54:13 UTC
libtinynotify[symlink] will install /usr/bin/notify-send symlink, thus I'd appreciate if libnotify had a flag to disable installing a binary there. TIA.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-08-21 15:38:37 UTC
That does not sound like a reasonable thing to do. Why not use an eselect module or use the alternatives eclass (like abiword or vala) or rename this binary in libtinynotify (like uuencode in gmime).
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-21 19:48:38 UTC
When I suggested eselect module, nirbheek told me to just use USE=symlink :P. Also, I hate to create another large, duplicate eselect module for two apps.

And, alternatives.eclass seems to be not a case here.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-08-22 03:42:30 UTC
> And, alternatives.eclass seems to be not a case here.

Using alternatives.eclass would be the best solution, imho, because (a) it requires absolutely no action on the part of the user (e.g. no need to manually choose which package to active the USE flag on), and (b) if both implementations of libnotify are installed on a machine, there is really no reason for the user to care which package's notify-send ends up being used.

So I would simply rename notify-send to notify-send-libnotify and notify-send-libtinynotify in the corresponding packages, and add

alternatives_makesym /usr/bin/notify-send /usr/bin/notify-send-libnotify /usr/bin/notify-send-libtinynotify

to pkg_postinst in both.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-08-22 07:28:33 UTC
To be honest, I don't really see why should we prefer one package over the other. But well, maybe alternatives.eclass will be fine when I implement --hint.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-01-23 01:53:44 UTC
+  23 Jan 2012; Samuli Suominen <ssuominen@gentoo.org> package.use.force:
+  Force USE="symlink" enabled for x11-libs/libnotify while waiting for
+  supporting eselect module wrt #379941

*libnotify-0.7.4-r1 (23 Jan 2012)

  23 Jan 2012; Samuli Suominen <ssuominen@gentoo.org>
  +libnotify-0.7.4-r1.ebuild, metadata.xml:
  Rename notify-send to libnotify-notify-send and symlink it to notify-send
  with USE="symlink" wrt #379941 by Michał Górny
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-01-23 01:55:20 UTC
alternatives.eclass should die with fire... anyway, masked while waiting for someone (wink wink :-) to create eselect-notify-send module 
and can't be unforced before since there can't be a scenario where libnotify is installed and notify-send is not available at all
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2013-03-19 16:19:21 UTC
(In reply to comment #6)
> alternatives.eclass should die with fire... anyway, masked while waiting for
> someone (wink wink :-) to create eselect-notify-send module 

done too, so this is finally now all handled