1 |
Hi all, |
2 |
|
3 |
I ported Stuart's confcache patch from portage .50 to .51_rc7 (hope cvs head |
4 |
isn't too different...). I also made a few changes and fixes - see attached |
5 |
changelog if you used the orig patch. |
6 |
|
7 |
What this does: it keeps a central cache for autoconf-generated configure |
8 |
scripts in /var/tmp. When econf is called, it checks the cache's validity |
9 |
against a list of files & md5sums. If any files have changed, the entire |
10 |
cache is cleared. |
11 |
|
12 |
During configure's run, the sandbox logs all files accessed. There is a small |
13 |
patch to libsandbox.c, unchanged from Stuart's version, to allow this. Then, |
14 |
the file/md5sum list is updated. The sandbox log then has to be manually |
15 |
fixed up to remove these entries. |
16 |
|
17 |
Ebuild-side: FEATURES+=confcache enables this. Either use econf, or call |
18 |
confcache_start and confcache_stop before and after your configure run. |
19 |
confcache_start adds the --with-cache=foo parameter to $ECONF_EXTRA; pass |
20 |
that to configure. |
21 |
|
22 |
Embedded people: I've been asked to keep a separate cache for every |
23 |
combination of $CHOST, $CBUILD, $THOST. Please confirm that's how you want |
24 |
it. |
25 |
|
26 |
Myself, I need it to speed up the upcoming split kde ebuilds (eg separate |
27 |
ebuilds for konqueror etc rather than one big kdebase ebuild). |
28 |
|
29 |
Stuart, I hope you're ok with my changes. Basically they just consist of |
30 |
updating the patch for the new version's ebuild.sh and fixing a couple of |
31 |
bugs. |
32 |
|
33 |
Comments welcome (my first patch to portage, hope it works :-). Credit goes to |
34 |
Stuart, really. |
35 |
|
36 |
-- |
37 |
Dan Armak |
38 |
Gentoo Linux developer (KDE) |
39 |
Matan, Israel |
40 |
Public GPG key: http://dev.gentoo.org/~danarmak/danarmak-gpg-public.key |
41 |
Fingerprint: DD70 DBF9 E3D4 6CB9 2FDD 0069 508D 9143 8D5F 8951 |