Gentoo Archives: gentoo-portage-dev

From: Dan Armak <danarmak@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Re: Port of Stuart's confcache for .51_rc7
Date: Fri, 08 Oct 2004 11:02:18
Message-Id: 200410081302.58585.danarmak@gentoo.org
In Reply to: [gentoo-portage-dev] Re: Port of Stuart's confcache for .51_rc7 by Dan Armak
1 On Friday 08 October 2004 12:59, Dan Armak wrote:
2 > A slightly updated patch is now up at http://dev.gentoo.org/~danarmak/,
3 > updates will go there from now on.
4 >
5 > For some reason I'm not seeing my own mails to gentoo-portage-dev, so if
6 > you receive this there, please take the time to send me a quick
7 > confirmation...
8
9 I did receive this one. In case some of you haven't received the first one
10 either, I'm quoting it here (and note the updated location above):
11
12 I ported Stuart's confcache patch from portage .50 to .51_rc7 (hope cvs head
13 isn't too different...). I also made a few changes and fixes - see attached
14 changelog if you used the orig patch.
15
16 What this does: it keeps a central cache for autoconf-generated configure
17 scripts in /var/tmp. When econf is called, it checks the cache's validity
18 against a list of files & md5sums. If any files have changed, the entire
19 cache is cleared.
20
21 During configure's run, the sandbox logs all files accessed. There is a small
22 patch to libsandbox.c, unchanged from Stuart's version, to allow this. Then,
23 the file/md5sum list is updated. The sandbox log then has to be manually
24 fixed up to remove these entries.
25
26 Ebuild-side: FEATURES+=confcache enables this. Either use econf, or call
27 confcache_start and confcache_stop before and after your configure run.
28 confcache_start adds the --with-cache=foo parameter to $ECONF_EXTRA; pass
29 that to configure.
30
31 Embedded people: I've been asked to keep a separate cache for every
32 combination of $CHOST, $CBUILD, $THOST. Please confirm that's how you want
33 it.
34
35 Myself, I need it to speed up the upcoming split kde ebuilds (eg separate
36 ebuilds for konqueror etc rather than one big kdebase ebuild).
37
38 Stuart, I hope you're ok with my changes. Basically they just consist of
39 updating the patch for the new version's ebuild.sh and fixing a couple of
40 bugs.
41
42 Comments welcome (my first patch to portage, hope it works :-). Credit goes to
43 Stuart, bugs to me (except for sandbox).
44
45 --
46 Dan Armak
47 Gentoo Linux developer (KDE)
48 Matan, Israel
49 Public GPG key: http://dev.gentoo.org/~danarmak/danarmak-gpg-public.key
50 Fingerprint: DD70 DBF9 E3D4 6CB9 2FDD 0069 508D 9143 8D5F 8951