From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-dev+bounces-29943-garchives=archives.gentoo.org@lists.gentoo.org>) id 1JbOzC-0005b1-9D for garchives@archives.gentoo.org; Mon, 17 Mar 2008 23:43:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90B04E0333; Mon, 17 Mar 2008 23:43:20 +0000 (UTC) Received: from smtp27.orange.fr (smtp27.orange.fr [80.12.242.96]) by pigeon.gentoo.org (Postfix) with ESMTP id 4A650E0333 for <gentoo-dev@lists.gentoo.org>; Mon, 17 Mar 2008 23:43:20 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2717.orange.fr (SMTP Server) with ESMTP id C5B031C000DF for <gentoo-dev@lists.gentoo.org>; Mon, 17 Mar 2008 23:56:14 +0100 (CET) Received: from naru.perronet.esiee.net (APuteaux-755-1-20-35.w90-61.abo.wanadoo.fr [90.61.191.35]) by mwinf2717.orange.fr (SMTP Server) with ESMTP id B8C311C000D7 for <gentoo-dev@lists.gentoo.org>; Mon, 17 Mar 2008 23:56:14 +0100 (CET) X-ME-UUID: 20080317225614756.B8C311C000D7@mwinf2717.orange.fr Received: from [10.42.0.5] (su.local [10.42.0.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by naru.perronet.esiee.net (Postfix) with ESMTP id 5D7C99FBCA8 for <gentoo-dev@lists.gentoo.org>; Tue, 18 Mar 2008 00:43:19 +0100 (CET) Subject: Re: [gentoo-dev] [RFC] Major changes to the Gnome2 Eclasses From: Gilles Dartiguelongue <eva@gentoo.org> To: gentoo-dev@lists.gentoo.org In-Reply-To: <47DE9D30.7060107@gentoo.org> References: <47DA25CF.10205@gentoo.org> <47DE9D30.7060107@gentoo.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-XS8pVwywQ2xA4ZaDzBqx" Organization: Gentoo Date: Tue, 18 Mar 2008 00:42:02 +0100 Message-Id: <1205797322.15535.6.camel@su.perronet.esiee.net> Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 X-Archives-Salt: 6c33af56-fc7a-4001-a369-0c5fd1253de7 X-Archives-Hash: f466fcaec8ac6ba8f9fb9085331d26ea --=-XS8pVwywQ2xA4ZaDzBqx Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le lundi 17 mars 2008 =C3=A0 17:32 +0100, R=C3=A9mi Cardona a =C3=A9crit : [snip] > Now, basically, if the portage metadata or QA people could tell me a way=20 > to figure *all* the ebuilds that inherit gnome2 *and* have a=20 > pkg_preinst() function somewhere (either in the ebuild or in an eclass=20 > somewhere) I'd really appreciate it, as I really don't want to read=20 > through thousands of ebuilds to figure it out. Here is my brute force method: $ # extract the list of package defining custom pkg_preinst() $ egrep -r "^.*?_pkg_preinst" /usr/portage/eclass/* |cut -f1 -d: |sed \ "s:/usr/portage/eclass/::g;s:.eclass::g" |sort|uniq| tee \ export-preinst.list $ # extract the list of ebuilds inheriting gnome2 eclass $ find /usr/portage/ -name "*.ebuild" -exec egrep -H "gnome2" {} \; | \ cut -f1 -d: |uniq| tee gnome-inherit.list $ # wheeeeeeee $ for x in $(cat gnome-inherit.list); do for y in \ $(cat export-preinst.list); do egrep --color -H "inherit.*${y}" $x; \ done; egrep --color -H "^pkg_preinst" $x; done | \ tee output-unformated.list $ cat output-unformated.list |cut -f1 -d:|sort|uniq of course YMMV and there might be simpler/faster solutions but oh well... it gave me an output of 62 packages. --=20 Gilles Dartiguelongue <eva@gentoo.org> Gentoo --=-XS8pVwywQ2xA4ZaDzBqx Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQBH3wHK1fmVwcYIWAYRAtU6AJ4l2DDcYTCC9/Q0yhVXv3ld8krJiwCgtf7B GRg/oQ0zGVzb0RNbGk9dDHo= =tf85 -----END PGP SIGNATURE----- --=-XS8pVwywQ2xA4ZaDzBqx-- -- gentoo-dev@lists.gentoo.org mailing list