[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using ccache with sbuild/schroot



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.

-- 
_________________________
Ryan Niebur
ryanryan52@gmail.com

Attachment: signature.asc
Description: Digital signature


Reply to: