Bug#666525: trying to disable ccache locally, failing

Ivo De Decker ivo.dedecker at ugent.be
Sun Oct 6 12:13:46 UTC 2013


Control: severity -1 important

Hi,

First of all: ccache is no longer the default, so this bug should not be RC.

To reproduce the issue, add the following entries to /etc/pbuilderrc and
rebuild the base tarball (it's only easy to reproduce if ccache is in the base
tarball, and not installed afterwards).

CCACHEDIR="/var/cache/pbuilder/ccache"
EXTRAPACKAGES="ccache"


On Mon, Sep 02, 2013 at 10:48:15PM +0200, Yann Dirson wrote:
> Well, here is one that, although arguably kludgy, does works for me:
> simply forcing the dpkg-architecture run to write somewhere else.

The main issue is that the ccache dir is owned by the build user, but that it
is enabled for all commands, even those running as root. The real solution is
to make sure that ccache is only used when running as the build user. In that
case this issue goes away.

The attached patch should fix that by adding the CCACHE_DIR environment to the
SUTOUSER command. This means that all other commands (including the
dpkg-architecture which is called by pbuilder-satisfydepends) don't run
ccache.

Cheers,

Ivo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pbuilder_ccache_666525.diff
Type: text/x-diff
Size: 1931 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20131006/805b316f/attachment.diff>


More information about the Pbuilder-maint mailing list