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

Bug 102328

Summary: gtk use flags for ethereal are not correct.
Product: Gentoo Linux Reporter: Tony Murray <tonymurray>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tony Murray 2005-08-12 23:17:02 UTC
gtk? (  gtk2? ( >=dev-libs/glib-2.0.4 =x11-libs/gtk+-2* )
         !gtk2? ( =x11-libs/gtk+-1.2* )
         x11-libs/pango
         dev-libs/atk )

is what the current gtk use flags section looks like, which is not correct. One
one of my boxes I have been avoiding gtk-1, so my use flags are set to -gtk +gtk2.
This causes the gtk(2) frontend of ethereal not to be built!!  I think the use
flags should look more like this:

 gtk2? ( >=dev-libs/glib-2.0.4
         =x11-libs/gtk+-2*
         x11-libs/pango
         dev-libs/atk )
 gtk? (  !gtk2? ( =x11-libs/gtk+-1.2* )
         x11-libs/pango
         dev-libs/atk )

Which could add pango and atk to the depends twice, but atleast it works better.
Please commit a fix for this problem :)
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2005-08-12 23:19:44 UTC
Sorry, but that's the way the gtk useflags work.
Comment 2 Tony Murray 2005-08-13 13:33:18 UTC
If that is the way use flags work then why isn't there a gtk1 flag?

Explain how to have gtk2 apps installed without gtk1 apps then...
Comment 3 Tony Murray 2005-10-31 08:46:03 UTC
This is invalid, but gtk use flags should be rectified so everyone understands
what they do.  Here is my idea
flag  effect
+gtk  ok to depend on gtk1 and/or gtk2
-gtk  never depend on gtk if possible
+gtk1 depend only on gtk1 if possible
+gtk2 depend only on gtk2 if possible

-gtk flag overrides all

Also, a function the the gtk.eclass to generate deps would help alot to ensure
consistancy.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-10-31 08:51:51 UTC
(In reply to comment #3)
> This is invalid, but gtk use flags should be rectified so everyone understands
> what they do. 

gtk2 flag is dead and burried (see Bug 106560)