From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.3/8.13.3) with ESMTP id j2TAx1lN011859 for ; Tue, 29 Mar 2005 10:59:01 GMT Received: from einhorn.in-berlin.de ([192.109.42.8]) by smtp.gentoo.org with esmtp (Exim 4.43) id 1DGER2-0000TV-NV for gentoo-dev@robin.gentoo.org; Tue, 29 Mar 2005 10:59:00 +0000 X-Envelope-From: stefan@binarchy.net X-Envelope-To: Received: from dice.seeling33.de (pD9E7656B.dip.t-dialin.net [217.231.101.107]) by einhorn.in-berlin.de (8.12.10/8.12.10/Debian-4) with ESMTP id j2TAwqjI031542 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 29 Mar 2005 12:58:53 +0200 Received: by dice.seeling33.de (Postfix, from userid 1000) id AE6031682CE; Tue, 29 Mar 2005 12:58:57 +0200 (CEST) Date: Tue, 29 Mar 2005 12:58:57 +0200 From: Stefan Sperling To: gentoo-dev@robin.gentoo.org Subject: Re: [gentoo-dev] GTK und GTK2 Use Flag Message-ID: <20050329105857.GA9909@stud.seeling33.de> Mail-Followup-To: gentoo-dev@gentoo.org References: <42492AB5.8080903@gmx.at> Precedence: bulk List-Post: , , List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-To: gentoo-dev@gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42492AB5.8080903@gmx.at> User-Agent: Mutt/1.5.8i X-Spam-Score: (-1.349) AWL,BAYES_00,FORGED_RCVD_HELO X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-Archives-Salt: 7f00d9e1-6ad0-48cd-a37e-84673388e5f8 X-Archives-Hash: 699f9497252fe2ac967a8136b576ce1c 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 -- gentoo-dev@gentoo.org mailing list