1 |
Hi again, |
2 |
|
3 |
I've just come up with a plan for the new eclass based on previous |
4 |
feedback. Basically, I want to commit this patch [1] ASAP. |
5 |
|
6 |
If I commit this right now here's what's going to happen : |
7 |
|
8 |
- ebuilds that use the gnome2 eclass and other eclasses that don't |
9 |
export pkg_preinst() will be fine. Most Gnome packages are thus fine. |
10 |
|
11 |
- ebuilds that have "inherit gnome2 $eclass_foo" [*] will still work |
12 |
for now, but won't work once I commit the rest of the eclass changes |
13 |
|
14 |
- ebuilds that have "inherit $eclass_foo gnome2" [*] won't work as |
15 |
they used to. |
16 |
|
17 |
[*] if $eclass_foo has indeed a pkg_preinst somewhere, like the games |
18 |
eclass. |
19 |
|
20 |
Now, basically, if the portage metadata or QA people could tell me a way |
21 |
to figure *all* the ebuilds that inherit gnome2 *and* have a |
22 |
pkg_preinst() function somewhere (either in the ebuild or in an eclass |
23 |
somewhere) I'd really appreciate it, as I really don't want to read |
24 |
through thousands of ebuilds to figure it out. |
25 |
|
26 |
Thanks |
27 |
|
28 |
Rémi |
29 |
|
30 |
|
31 |
[1] The Patch (tm) |
32 |
|
33 |
--- gnome2.eclass 10 Feb 2008 14:47:14 -0000 1.83 |
34 |
+++ gnome2.eclass 17 Mar 2008 16:30:31 -0000 |
35 |
@@ -106,6 +106,9 @@ |
36 |
rm -fr "${D}/usr/share/applications/mimeinfo.cache" |
37 |
} |
38 |
|
39 |
+gnome2_pkg_preinst() { |
40 |
+} |
41 |
+ |
42 |
gnome2_pkg_postinst() { |
43 |
gnome2_gconf_install |
44 |
fdo-mime_desktop_database_update |
45 |
@@ -131,4 +134,4 @@ |
46 |
fi |
47 |
} |
48 |
|
49 |
-EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm |
50 |
+EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst |
51 |
pkg_postinst pkg_postrm |
52 |
|
53 |
|
54 |
-- |
55 |
Rémi Cardona |
56 |
LRI, INRIA |
57 |
remi.cardona@×××.fr |
58 |
remi@g.o |
59 |
-- |
60 |
gentoo-dev@l.g.o mailing list |