Bug#666525: pbuilder fails to create directory under ccache when run with sudo

Maximiliano Curia maxy at debian.org
Sat Sep 8 18:28:28 UTC 2012


Hello.

Well, after a few tries I could reproduce this problem, I'm sure there
are multiple ways this problem would present itself but normally is
easier to find the problem once you have a reproducible path.

With a pbuilder version 0.212 you need to enable ccache, that implies adding:
CCACHEDIR="/var/cache/pbuilder/ccache"
to the /etc/pbuilderrc file

1 - Delete /var/cache/pbuilder
2 - # pbuilder --create
3 - try to build the current elfutils package (not every package fails).

This fails with the error reported in the bug.

The workaround is:

1 - Check that /var/cache/pbuilder/ccache exists, and if doesn't create it.
2 - Run pbuilder --update
3 - Try building elfutils again. If it fails, run pbuilder --update once again.

This will fix the problem (but not the bug!!)



More information about the Pbuilder-maint mailing list