Bug#666525: trying to disable ccache locally, failing

Yann Dirson ydirson at free.fr
Mon Sep 2 20:48:15 UTC 2013


tags 666525 + patch
thanks

On Sat, Aug 31, 2013 at 06:42:01PM +0200, Joel Rosdahl wrote:
> Hi,
> 
> > ccache seems to ignore the request [...] Is there some ccache subtlety
> I'm missing?
> 
> ccache doesn't ignore the request, it just happens to make sure that the
> ccache directory exists before reacting to CCACHE_DISABLE (or
> CCACHE_READONLY)... Looks like it has been that way since day one (well,
> day two, actually:
> http://gitweb.samba.org/?p=ccache.git;a=commit;h=10920460b5b00b77316602eb4e7c998a80464a88
> ).
> 
> I've fixed the bug now (upstream), but there's no workaround in currently
> released ccache versions, I'm afraid.

Well, here is one that, although arguably kludgy, does works for me:
simply forcing the dpkg-architecture run to write somewhere else.

--- /usr/lib/pbuilder/pbuilder-satisfydepends.orig      2013-08-29 23:34:32.000000000 +0200
+++ /usr/lib/pbuilder/pbuilder-satisfydepends   2013-08-31 19:35:14.000000000 +0200
@@ -59,7 +59,7 @@
 
 function checkbuilddep_internal () {
 # Use this function to fulfill the dependency (almost)
-    local ARCH=$($CHROOTEXEC dpkg-architecture -qDEB_HOST_ARCH)
+    local ARCH=$($CHROOTEXEC env CCACHE_DIR=${TMPDIR:-/tmp}/faraway/ccache dpkg-architecture -qDEB_HOST_ARCH)
     local BUILD_DEP_DEB_DIR
     local BUILD_DEP_DEB_CONTROL
     local DEPENDS



More information about the Pbuilder-maint mailing list