Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320513 - >www-client/opera-10.50 - redundant dependency on x11-libs/gtk+
Summary: >www-client/opera-10.50 - redundant dependency on x11-libs/gtk+
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-19 06:22 UTC by Nikolaj Šujskij
Modified: 2010-05-20 15:38 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 Nikolaj Šujskij 2010-05-19 06:22:47 UTC
Since first 10.5x alpha builds Opera needs neither Qt nor GTK+ toolkit to run, just mimics one of them, but ebuilds define strict dependency on =x11-libs/gtk+-2*. I think we could request a list of required dependecies from Opera devs.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-20 02:41:08 UTC
It's not quite redundant - the default file dialogs are horrible. What I will do is introduce the gtk and kde USE flags and make the RDEPEND entries depend on those USE flags.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-20 02:56:26 UTC
When the opera 10.50 builds started coming, only the gtk backend was finished as </usr/[LIBDIR]/opera/liboperagtk.so>. There was no choice of a proper backend so I chose to RDEPEND on the output of both that file and the opera binary itself.

Since a couple of versions there is a liboperakde4.so in the same directory that handles KDE related stuff. Opera should itself be able to determine whether you run a GNOME or KDE desktop (or perhaps something completely different) or which toolkit you really prefer. Theoretically...

It's all still a work in progress so I might as well break stuff now while it's still alpha, and masked - =www-client/opera-10.54_pre6336-r1 now has IUSE+="gtk kde" and gtk really means GNOME here, because liboperagtk.so loads a lot more than just GTK+ libraries. USE=gtk means you get enough for some rather nice GNOME based file dialogs and USE=kde means you get a rather nice KDE type file dialog (including Qt, just so you know ;-) .
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-20 03:01:53 UTC
I changed my mind and changed the ebuild again to use USE=gnome instead of USE=gtk. That's CVS revision 1.4.
Comment 4 Nikolaj Šujskij 2010-05-20 09:02:58 UTC
Yes, USE flags would be the solution, thank you.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-20 12:15:53 UTC
Well, what do you know. All of a sudden I found myself without plugin support. So I changed it around again: for plugins (say, Flash) you _need_ the GTK+ libraries so USE=gtk is now enabled by default. And I also changed the name back from USE=gnome, because of the confusion that might cause in light of it being enabled by default. Also, I described both USE flags better in metadata.xml. I am sure this is going to cause a desktop flamewar so I thought I'd rather document it here.
Comment 6 Nikolaj Šujskij 2010-05-20 15:38:49 UTC
> Well, what do you know. All of a sudden I found myself without plugin support.
> for plugins (say, Flash) you _need_ the GTK+ libraries so USE=gtk is now enabled by default.

 I'm not sure I've grasped you. www-plugins/adobe-flash depends on GTK+ itself, what do Opera's USE flags got to do with Flash?