From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Iq6me-0000JK-2V for garchives@archives.gentoo.org; Thu, 08 Nov 2007 12:46:56 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lA8Ck58N008164; Thu, 8 Nov 2007 12:46:05 GMT Received: from smtp.ferdyx.org (170.Red-213-96-222.staticIP.rima-tde.net [213.96.222.170]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id lA8CiAUn005867 for ; Thu, 8 Nov 2007 12:44:11 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.ferdyx.org (Postfix) with ESMTP id 8D4A98D307 for ; Thu, 8 Nov 2007 13:45:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ferdyx.org Received: from smtp.ferdyx.org ([127.0.0.1]) by localhost (tungsteno.ferdyx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8nnCeV2xX0uf for ; Thu, 8 Nov 2007 13:45:39 +0100 (CET) Received: from localhost (unknown [213.121.151.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.ferdyx.org (Postfix) with ESMTP id 929FD8D305 for ; Thu, 8 Nov 2007 13:45:38 +0100 (CET) Date: Thu, 8 Nov 2007 12:43:33 +0000 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] eselect_zenity: alpha eselect GUI Message-ID: <20071108124333.2a3dfdc7@blueyonder.co.uk> In-Reply-To: <20071108120742.GK5516@supernova> References: <20071108104813.GI5516@supernova> <20071108105454.1844a75c@blueyonder.co.uk> <20071108120742.GK5516@supernova> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; x86_64-pc-linux-gnu) 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@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/+sxzrHuzSqMk4mcaLoBHt4l"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: f1266a47-3d62-4bde-baf0-727ec13c10cc X-Archives-Hash: 264bb5cee4fc20769287a12a23315340 --Sig_/+sxzrHuzSqMk4mcaLoBHt4l Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 8 Nov 2007 04:07:42 -0800 Donnie Berkholz wrote: > I'll look into that. Got any good starting points (files, functions,=20 > docs)? Well, the whole of the eselect code is small enough that you should be able to understand it pretty quickly... Then it'd just be a case of making the main driver code a bit more flexible so that you can tell it to swap in certain libraries. Incidentally, I suspect it might be worth rewriting the core using some of the techniques that we've discovered when writing Paludis. Things like the fancier signalling die function and the cleaner module path searching would be worth adopting. This would also be a good opportunity to sneak in the more flexible driver that you probably need. Might be worth speaking to whoever maintains Gentoo's branch of eselect these days. One thing in the code, by the way... if [[ ${UID} -ne 0 ]]; then We've always told people not to do that. Capabilities required by eselect modules should be tested by attempting to perform the action, not by some arbitrary query done on UIDs or groups. Being UID 0 doesn't mean you're allowed to do something, and not being UID 0 doesn't mean you're not allowed to do something. --=20 Ciaran McCreesh --Sig_/+sxzrHuzSqMk4mcaLoBHt4l Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHMwR196zL6DUtXhERAsy9AKC2Rg2nZrSwXvQkvtLMrJzexv5fMgCgu7WO ZP5gYFYREpKDwX3nhgM5T8g= =AFaU -----END PGP SIGNATURE----- --Sig_/+sxzrHuzSqMk4mcaLoBHt4l-- -- gentoo-dev@gentoo.org mailing list