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 j2TKiXhd002628 for ; Tue, 29 Mar 2005 20:44:33 GMT Received: from [213.134.113.127] (helo=[10.122.0.61]) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1DGNZf-0002Uk-VE for gentoo-dev@robin.gentoo.org; Tue, 29 Mar 2005 20:44:32 +0000 Subject: Re: [gentoo-dev] GTK und GTK2 Use Flag From: Spider To: gentoo-dev@robin.gentoo.org In-Reply-To: <42492AB5.8080903@gmx.at> References: <42492AB5.8080903@gmx.at> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-w1gBqHJudHbqn7ykRwRA" Organization: Gentoo Date: Tue, 29 Mar 2005 22:49:00 +0200 Message-Id: <1112129340.3694.13.camel@Darkmere> 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 X-Mailer: Evolution 2.2.1.1 X-Archives-Salt: 4ba91666-3336-427e-924d-802b10354f90 X-Archives-Hash: cb8a98613ce0682f9ee0aaa268f3374b --=-w1gBqHJudHbqn7ykRwRA Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2005-03-29 at 12:15 +0200, Fabian Zeindl wrote: > Hello >=20 > 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. >=20 > 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. >=20 > 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? Common misconception, it tends to crop up once every 6 months or so since I ever was foolish enough not to stomp a hard policy and beat the people who want gtk+-1.2 support with a sledgehammer. Okay. Here's the deal and the logic: USE=3D"gtk" I want gtk support. Legacy. classic. Doesn't matter if the version is gtk+-1.2 or 2.0. ( When it was introduced, there was only gtk+-1.2, and that was it) Then came a few, troublesome beasts and started to make our days annoying. Mozilla was one of them, gFtp another. Enough of them cropped up that used -both- gtk+-1.2 and gtk+-2 interfaces _AS A TRANSITION PERIOD_ The gtk+-1.2 interfaces were planned to be deprecated when the new and shiney(!) interfaces were usable, and have so been done. The gtk2 USE flag came up for -only- theese packages. Nothing else.=20 Its a mistake, abusing the redundancy that boolean nested flags work with, however, I was young, naive, and expected people to be able to comprehend written instructions and nested logic blocks. DEPEND=3D"gtk? (=20 gtk2? ( >=3Dx11-libs/gtk+-2.0 ) =20 !gtk2? ( =3Dx11-libs/gtk+-1.2* )) !gtk? ( sys-libs/ncurses )" is obvious and fairly logical in my mind, and is the code that describes what the gtk2 USE flag is for. Along with the following descriptions: gtk - Adds support for x11-libs/gtk+ (The GIMP Toolkit) gtk2 - Use gtk+-2.0.0 over gtk+-1.2 in cases where a program supports both. If someone can suggest a better formulation for this, please go ahead. Lets face it, gtk+-1.2 is _deprecated_ and all packages that use it should either be taken out and shot in the head, ( for mercy's sake, that and utf8 ) or updated to track the new and maintained library API.=20 We all know this isn't feasible, most projects are just recently wiping stale code for interfaces ( Hi mozilla! ) and as such, the mistake is left to stay. -Changing- existing logic is -not- going to solve this solution cleanly. We suggested to remove the gtk2 flag, (make it default) and implement : USE=3D"shoot-me-in-the-head-with-deprecated-libraries-please" instead, however people considered it as offending our users for some reason. As for the discussion of USE=3D"-gtk +gtk2" : there is one case where this could be a acceptable and will produce expected results. That is when there is only a gtk+ interface, no alternative ( ergo, the -gtk is ignored ) and there is a choice between gtk+-1.2 or 2.0 (the gtk2 selection flag) However, this is such a corner case only because the "gtk" flag is completely ignored. =20 //Spider =09 --=20 begin .signature Tortured users / Laughing in pain See Microsoft KB Article Q265230 for more information. end --=-w1gBqHJudHbqn7ykRwRA Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCSb88ZS9CZTi033kRAlABAKCIDLfvNDvWXWcQWjKrh5+dFDH+UwCdHMKH 6+4xoXjzqpVzoBcWTl6RPDc= =otgp -----END PGP SIGNATURE----- --=-w1gBqHJudHbqn7ykRwRA-- -- gentoo-dev@gentoo.org mailing list