On Tue, Mar 29, 2005 at 12:15:17PM +0200, Fabian Zeindl wrote:
> Hello
>
> There was a discussion on the gentoo-user-de list about this two
> Useflags: gtk and gtk2. Because not everybody is sure what the mean, so
> if you have -gtk +gtk2 some think that gtk2 should be installed and soon.
There are lots of useflags that don't install anything.
Take the new mp3 useflag for example, used by beep-media-player.
would you expect it to install a program called 'mp3'? :)
> Wouldn't it be better if "gtk" meaned that the newest available gtk
> version ist installed (gtk1 or gtk2) and a flag like oldgtk take the
> older version gtk1.
As soon as gtk3 comes along, you scheme won't work anymore.
Some programs use gtk1 only, some gtk2 only, and a few have
support for both. As there is not much point in using both
of them at runtime, if you use +gtk2, programs that support
both will use gtk2.
I don't know what happens when you have both +gtk1 and +gtk2 set,
but I reckon that still evaluates to using gtk2. You can simply try
this out for yourself. The ldd command will tell you which libraries
a given binary is linked with (see the ldd manpage).
> Another question which occured: Is there a performancedrawback if a
> program is compile with gtk1 AND gtk2 build in? Does this happen when
> someone installs with +gtk +gtk2?
There is no performance penalty.
You can savely install both versions. gtk1 and gtk2 are not 'build' into
a program, they are shared libraries. What happens is that when a program
uses gtk{1,2}, a copy of the gtk{1,2} code is loaded from disk into memory
if it is not already in memory. So all programs compiled against the same
version of gtk use the very same copy of gtk code at runtime, which of
course saves a lot of memory.
> --
> Musik ist niemals illegal: www.fairsharing.de
My music is not illegal either (creative commons) :)
http://binarchy.net/werkstatt
--
stefan PGP Key: 0xF59D25F0
--
[email protected] mailing list