Gentoo Archives: gentoo-dev

From: Denis Dupeyron <calchan@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] Major changes to the Gnome2 Eclasses
Date: Fri, 14 Mar 2008 09:09:18
Message-Id: 7c612fc60803140209s18bbae02j36f40c70f2de87b2@mail.gmail.com
In Reply to: [gentoo-dev] [RFC] Major changes to the Gnome2 Eclasses by "Rémi Cardona"
1 On Fri, Mar 14, 2008 at 8:14 AM, Rémi Cardona <remi@g.o> wrote:
2 > - the gnome2 eclass now has a pkg_preinst, if you do multiple
3 > inherits, make sure that gnome2_pkg_preinst is called too. The
4 > _games_eclass_ is one of those.
5 [...]
6 > *Please* review these eclasses because with a simple grep, I could find
7 > over _1000_packages_ that inherited gnome2.eclass. But many more use
8 > other eclasses that depend on gnome2-utils.
9
10 In case that's of any help, the ugly thing below should lists all
11 eclasses that export pkg_preinst:
12
13 trillian ~ # for ECLASS_ECLASS in /usr/portage/eclass/*.eclass; do
14 echo "${ECLASS_ECLASS}:$(sed -e :a -e '/\\$/N; s/\\\n//; ta'
15 ${ECLASS_ECLASS} | grep EXPORT_FUNCTIONS)"; done | grep pkg_preinst |
16 cut -d . -f 1 | cut -d / -f 5
17 common-lisp
18 games
19 kde
20 kernel-2
21 kernel
22 linux-mod
23 mount-boot
24 myspell
25 mysql
26 perl-module
27 subversion
28 tetex-3
29 toolchain
30 vmware
31 x-modular
32
33 And the even uglier thing below should list all ebuilds that inherit a
34 gnome2* eclass and any of the above:
35
36 trillian ~ # for ECLASS in $(for ECLASS_ECLASS in
37 /usr/portage/eclass/*.eclass; do echo "${ECLASS_ECLASS}:$(sed -e :a -e
38 '/\\$/N; s/\\\n//; ta' ${ECLASS_ECLASS} | grep EXPORT_FUNCTIONS)";
39 done | grep pkg_preinst | cut -d . -f 1 | cut -d / -f 5); do qgrep -H
40 "inherit " | grep " ${ECLASS}" | grep " gnome2"; done | sort | uniq
41 games-arcade/blobwars/blobwars-1.07.ebuild:inherit eutils gnome2-utils games
42 games-arcade/blobwars/blobwars-1.08.ebuild:inherit eutils gnome2-utils games
43 games-board/gnome-mastermind/gnome-mastermind-0.3.ebuild:inherit
44 eutils games gnome2
45 games-board/gnono/gnono-1.9.1.ebuild:inherit autotools eutils gnome2-utils games
46 media-video/vlc/vlc-0.8.6e.ebuild:inherit eutils wxwidgets multilib
47 autotools toolchain-funcs gnome2 nsplugins
48 media-video/vlc/vlc-0.9.0_alpha20080117.ebuild:inherit eutils
49 wxwidgets multilib autotools toolchain-funcs gnome2 nsplugins qt4
50 flag-o-matic
51 media-video/vlc/vlc-0.9.0_alpha20080228.ebuild:inherit eutils
52 wxwidgets multilib autotools toolchain-funcs gnome2 nsplugins qt4
53 flag-o-matic
54 media-video/vlc/vlc-0.9.0_alpha20080309.ebuild:inherit eutils
55 wxwidgets multilib autotools toolchain-funcs gnome2 nsplugins qt4
56 flag-o-matic
57 net-im/pidgin/pidgin-2.3.1.ebuild:inherit flag-o-matic eutils
58 toolchain-funcs multilib perl-app gnome2
59 net-im/pidgin/pidgin-2.4.0.ebuild:inherit flag-o-matic eutils
60 toolchain-funcs multilib perl-app gnome2
61 sci-astronomy/celestia/celestia-1.4.1-r2.ebuild:inherit eutils
62 flag-o-matic gnome2 kde-functions autotools
63 sci-astronomy/celestia/celestia-1.5.0.ebuild:inherit eutils
64 flag-o-matic gnome2 kde-functions autotools
65
66 If you remove from that list vlc, pidgin and celestia which are false
67 positives, that leaves us:
68
69 games-arcade/blobwars/blobwars-1.07.ebuild
70 games-arcade/blobwars/blobwars-1.08.ebuild
71 games-board/gnome-mastermind/gnome-mastermind-0.3.ebuild
72 games-board/gnono/gnono-1.9.1.ebuild
73
74 If I didn't screw up that shouldn't take long to check.
75
76 Denis.

Replies

Subject Author
Re: [gentoo-dev] [RFC] Major changes to the Gnome2 Eclasses "Rémi Cardona" <remi@g.o>