Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238287 - net-p2p/transmission: "libnotify" USE-flag depends on "gtk"
Summary: net-p2p/transmission: "libnotify" USE-flag depends on "gtk"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High minor
Assignee: Saleem Abdulrasool (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-21 15:14 UTC by Arseny Solokha
Modified: 2009-01-01 17:02 UTC (History)
1 user (show)

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 Arseny Solokha 2008-09-21 15:14:07 UTC
From http://www.transmissionbt.com/about.php:
"The GTK+ interface has been carefully written with the GNOME Human Interface Guidelines in mind. It uses libnotify for torrent notification..."

It means that user must get error message when he will try to do
foo@boo# USE="-gtk libnotify" emerge transmission
,
and this message should return emerge, not configure script.

Reproducible: Always

Steps to Reproduce:
USE="-gtk libnotify" emerge transmission


Expected Results:  
emerge error
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-22 03:12:38 UTC
I don't agree that USE=-gtk pulling in x11-libs/gtk+ means that the ebuild must bail out.

When the net-p2p/transmission ebuild pulls in x11-libs/libnotify, x11-libs/libnotify in turn pulls in x11-libs/gtk+. An `emerge --tree' would make that clear to the enquiring user.
Comment 2 Arseny Solokha 2008-09-22 06:41:46 UTC
(In reply to comment #1)
> I don't agree that USE=-gtk pulling in x11-libs/gtk+ means that the ebuild must
> bail out.
> 
> When the net-p2p/transmission ebuild pulls in x11-libs/libnotify,
> x11-libs/libnotify in turn pulls in x11-libs/gtk+. An `emerge --tree' would
> make that clear to the enquiring user.
>

Do you want to say that every user checks dependency tree before emerging packages?
User may want to build app with libnotify, but without GTK+ support, and duty of emerge is to say that it's impossible.

Comment 3 Justin Clift 2008-09-22 10:24:53 UTC
Um, there's only one libnotify in portage (libnotify-0.4.4.ebuild), and doesn't have a "-gtk" option.

So, if a user builds transmission with libnotify in their USE flags, they're going to get GTK.

No real option around that.

 $ emerge -vp x11-libs/libnotify

Will show the person what will get pulled in when they want to emerge a package, and it's pretty unusual for a person to emerge something blindly without checking first.
Comment 4 taipan67 2008-12-15 13:42:10 UTC
(In reply to comment #2)
> User may want to build app with libnotify, but without GTK+ support, and duty
> of emerge is to say that it's impossible.

The ebuild in the 1.40 version-bump report...

http://bugs.gentoo.org/show_bug.cgi?id=246557

...has the dependencies correctly configured - it doesn't issue any warnings about incorrect USE-flag usage, but at least it ignores the libnotify dependency when the GTK-client isn't required, and thus doesn't pull in the unnecessary packages, yet still builds correctly.

Whether or not the maintainers wish to adjust the existing tree to this behaviour (with minimum-versions amended accordingly) i'll leave up to them...
Comment 5 Arseny Solokha 2008-12-15 14:45:35 UTC
(In reply to comment #4)
> Whether or not the maintainers wish to adjust the existing tree to this
> behaviour (with minimum-versions amended accordingly) i'll leave up to them...

OK. Thank you.

Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-01-01 17:02:36 UTC
Fixed in CVS with 1.42.