Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Gilles Dartiguelongue <eva@g.o>
Subject: Re: [RFC] Major changes to the Gnome2 Eclasses
Date: Tue, 18 Mar 2008 00:42:02 +0100

 1.1

Le lundi 17 mars 2008 à 17:32 +0100, Rémi Cardona a écrit :
[snip]
> 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:

$ # 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.

-- 
Gilles Dartiguelongue <eva@g.o>
Gentoo
Attachment:
signature.asc (Ceci est une partie de message numériquement signée)
Replies:
Re: [RFC] Major changes to the Gnome2 Eclasses
-- Bo Ørsted Andresen
References:
[RFC] Major changes to the Gnome2 Eclasses
-- Rémi Cardona
Re: [RFC] Major changes to the Gnome2 Eclasses
-- Rémi Cardona
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: [RFC] Major changes to the Gnome2 Eclasses
Next by thread:
Re: [RFC] Major changes to the Gnome2 Eclasses
Previous by date:
The KDE overlay moves forward
Next by date:
Re: [RFC] Major changes to the Gnome2 Eclasses


May 29, 2008

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.