On Sat, Oct 24, 2009 at 05:09:36PM +0100, Roger Leigh wrote: > On Sat, Oct 24, 2009 at 08:07:04AM -0700, Ryan Niebur wrote: > > On Sat, Oct 24, 2009 at 10:59:03AM -0400, Ryan Kavanagh wrote: > > > Hi list, > > > Has anybody setup ccache in an LVM schroot for sbuild and if so, how? My > > > blocking point is that sbuild uses an LVM snapshot of the schroot to build a > > > package, which means that any cached compiling would get lost at the end of the > > > build. > > > > > > If anybody knows of a way to make this work, or to decrease compile times some > > > other way, please let me know :) > > > > > > > I set my environment for sbuild like this: > > exec env PATH=/usr/lib/ccache:$PATH CCACHE_DIR=/home/ryan52/.ccache/ DISTCC_HOSTS='10.0.0.10 10.0.0.17' CCACHE_PREFIX=distcc DEB_BUILD_OPTIONS=parallel=4 "$@" > > > > /home/ (apparently by default, I don't think I did anything) is bind > > mounted so this is preserved. > > That is the default. You can just edit /etc/schroot/mount-defaults > (fstab format) to add additional bind mounts, or remove ones you > don't want. Great, thanks for the help :) Cheers, Ryan -- |_)|_/ Ryan Kavanagh | GnuPG key | \| \ http://blog.ryanak.ca/ | 4A11C97A (Transitioning from E95EDDC9) () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
Attachment:
signature.asc
Description: Digital signature