From 59082fcfab2b7f4272a0bb0f3a812fc779e9f5ba Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Sat, 2 Jan 2010 17:12:47 +0100 Subject: Add builtin ccache support, enabled by default Add builtin support for using ccache in pbuilder and enable it by default. Ship a new /var/cache/pbuilder/ccache dir and bind-mount and chown it to BUILDUSERID at build time. Install/remove ccache automatically on create/update if CCACHEDIR is set/unset. Update docs and remove old ccache config example. Add a NEWS entry featuring the change. --- pbuilder-updatebuildenv | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pbuilder-updatebuildenv') diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv index 1913efc..eafa3e4 100755 --- a/pbuilder-updatebuildenv +++ b/pbuilder-updatebuildenv @@ -48,6 +48,12 @@ case "`readlink -e "$PBUILDERSATISFYDEPENDSCMD"`" in ;; esac +if [ -n "$CCACHEDIR" ]; then + EXTRAPACKAGES="$EXTRAPACKAGES ccache" +else + EXTRAPACKAGES="$EXTRAPACKAGES ccache-" +fi + if [ -n "$REMOVEPACKAGES" ]; then # FIXME this wont work if the packages have some reverse dependencies; # apt-get can also remove package, either with apt-get remove or purge, or -- cgit v1.2.3