Bug#670651: pbuilder: Ccache setup likely to fail when starting a pbuilder while another is building

Mike Hommey mh+reportbug at glandium.org
Fri Apr 27 15:36:51 UTC 2012


Package: pbuilder
Version: 0.206~bpo60+1
Severity: important

The ccache setup step during pbuilder initialization recursively changes
the permissions of the ccache directory so that it is allowed to write
in it (I guess).
This usually fails when a build is running because of vanishing
temporary files in the ccache directory:

I: Setting up ccache
chown: changing ownership of `/var/cache/pbuilder/build//12026//var/cache/pbuilder/ccache/tmp/file_descr.tmp.build.20691.ii': No such file or directory
chown: changing ownership of `/var/cache/pbuilder/build//12026//var/cache/pbuilder/ccache/tmp/tmp.cpp_stderr.build.20717': No such file or directory
chown: changing ownership of `/var/cache/pbuilder/build//12026//var/cache/pbuilder/ccache/tmp/process_wa.tmp.build.20717.ii': No such file or directory
chown: changing ownership of `/var/cache/pbuilder/build//12026//var/cache/pbuilder/ccache/tmp/tmp.cpp_stderr.build.20691': No such file or directory

Also, for quite big ccaches, this step can usually take a very long time.
It would be better to only change the permissions on the directories
instead of all files. This would be faster, and wouldn't fail that way.

Mike

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash





More information about the Pbuilder-maint mailing list