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 ) id 1JbQHp-0003MJ-29 for garchives@archives.gentoo.org; Tue, 18 Mar 2008 01:06:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D3B5FE03A5; Tue, 18 Mar 2008 01:06:39 +0000 (UTC) Received: from cicero1.cybercity.dk (cicero1.cybercity.dk [212.242.40.4]) by pigeon.gentoo.org (Postfix) with ESMTP id A61B9E03A5 for ; Tue, 18 Mar 2008 01:06:39 +0000 (UTC) Received: from shuttle.zlin.dk (port78.ds1-abs.adsl.cybercity.dk [212.242.227.17]) by cicero1.cybercity.dk (Postfix) with ESMTP id DB084427C1C for ; Tue, 18 Mar 2008 02:06:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by shuttle.zlin.dk (Postfix) with ESMTP id 75BF810407A for ; Tue, 18 Mar 2008 01:06:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at zlin.dk Received: from shuttle.zlin.dk ([127.0.0.1]) by localhost (shuttle.zlin.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kHuR0kJ6s53b for ; Tue, 18 Mar 2008 01:06:37 +0000 (UTC) Received: from ptr.stud.ies.auc.dk (unknown [10.0.0.4]) by shuttle.zlin.dk (Postfix) with ESMTP id 7855010405A for ; Tue, 18 Mar 2008 01:06:37 +0000 (UTC) From: Bo =?utf-8?q?=C3=98rsted_Andresen?= To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [RFC] Major changes to the Gnome2 Eclasses Date: Tue, 18 Mar 2008 02:06:19 +0100 User-Agent: KMail/1.9.9 References: <47DA25CF.10205@gentoo.org> <47DE9D30.7060107@gentoo.org> <1205797322.15535.6.camel@su.perronet.esiee.net> In-Reply-To: <1205797322.15535.6.camel@su.perronet.esiee.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1653797.v26Xf0mDfF"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200803180206.32086.zlin@gentoo.org> X-Archives-Salt: 5d7619aa-5571-42ff-ae37-fb17a870f8e2 X-Archives-Hash: 401ae5a9a59489a27cc1b2e0bd94ced9 --nextPart1653797.v26Xf0mDfF Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 18 March 2008 00:42:02 Gilles Dartiguelongue wrote: > > Now, basically, if the portage metadata or QA people could tell me a way > > to figure *all* the ebuilds that inherit gnome2 *and* have a > > pkg_preinst() function somewhere (either in the ebuild or in an eclass > > somewhere) I'd really appreciate it, as I really don't want to read > > through thousands of ebuilds to figure it out. > > Here is my brute force method: Wow.. :p > $ # 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 $ grep -l 'EXPORT_FUNCTIONS.*pkg_preinst' $(portageq portdir)/eclass/*.ecla= ss | \ while read eclass; do basename "$eclass" .eclass done | 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 $ inquisitio --repository gentoo --all-versions --compact --keys INHERITED \ --matcher exact gnome2 | cut -d' ' -f2 | tee gnome2-inherited.list [...] > of course YMMV and there might be simpler/faster solutions but oh > well... it gave me an output of 62 packages. While inquisitio may not be faster it is certainly more reliable. Another o= ption is to rely on the metadata cache in an rsync tree where INHERITED is the te= nth line in each entry. =2D-=20 Bo Andresen Gentoo KDE Dev --nextPart1653797.v26Xf0mDfF Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQBH3xWX8/kKEzmwNNoRAuJiAJwJct38JE6NAnGczk2gMpQSPsr/eQCfdMIA MSaDXwwictmRO5Vg1Y6fHVQ= =gCbM -----END PGP SIGNATURE----- --nextPart1653797.v26Xf0mDfF-- -- gentoo-dev@lists.gentoo.org mailing list