1 |
On Thursday 06 Aug 2015 22:00:35 Neil Bothwick wrote: |
2 |
> On Thu, 6 Aug 2015 21:53:25 +0200, Alan McKinnon wrote: |
3 |
> > > I only have it enabled for LibreOffice, which is a regular victim of |
4 |
> > > @preserved-rebuild causing the same version to be rebuilt. |
5 |
> > |
6 |
> > What sort of improvements do you get? libreoffice here takes about 1h30 |
7 |
> > to build, give or take 10 mins or so. Doesn't seem worth the extra |
8 |
> > hassle of ccache for an hour and a half. |
9 |
> |
10 |
> It varies, but it can more than halve the time taken. Well worth the |
11 |
> minute or two it took to set it up to happen automatically. |
12 |
> |
13 |
> % cat /etc/portage/env/ccache.conf |
14 |
> FEATURES="ccache" |
15 |
> |
16 |
> % cat /etc/portage/package.env/libreoffice |
17 |
> app-office/libreoffice ccache.conf disk-tmpdir.conf |
18 |
> |
19 |
> And don't forget to emerge ccache ;-) |
20 |
> |
21 |
> For completeness, LO also uses and on disk TMPDIR because my tmpfs /tmp |
22 |
> isn't big enough, so |
23 |
> |
24 |
> % cat /etc/portage/env/disk-tmpdir.conf |
25 |
> PORTAGE_TMPDIR="/mnt/scratch" |
26 |
|
27 |
Hmm ... may be I should re-enable it to see if I notice the difference on an |
28 |
old PC I have. I took it off because failed ebuilds would continue to fail - |
29 |
until I remembered to delete the ccache files. |
30 |
|
31 |
-- |
32 |
Regards, |
33 |
Mick |