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. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
Attachment:
signature.asc
Description: Digital signature