Bug#675843: bad umask for CCACHEDIR

Harald Dunkel harri at afaics.de
Sun Jun 3 16:26:22 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: pbuilder
Version: 0.211

Seems that pbuilder creates private directories for
root in its own ccache dir. This breaks the build,
as in this sample session:

% sudo pbuilder create --configfile ~/.pbuilderrc
% ls -al /home/pbuilder/ccache
total 8
drwxrwxrwx 2 root root 4096 Jun  3 17:58 .
drwxr-xr-x 5 root root 4096 Jun  3 18:01 ..
% sudo pbuilder build --configfile ~/.pbuilderrc --debbuildopts -b mypackage.dsc
:
:
ccache: FATAL: Failed to create /home/pbuilder/ccache/6/b: Permission denied
:
% ls -al /home/pbuilder/ccache/
total 80
drwxrwxrwx 19 1234 1234 4096 Jun  3 18:10 .
drwxr-xr-x  5 root root 4096 Jun  3 18:01 ..
drwxr-xr-x 15 1234 1234 4096 Jun  3 18:12 0
drwxr-xr-x 14 1234 1234 4096 Jun  3 18:12 1
drwxr-xr-x 15 1234 1234 4096 Jun  3 18:12 2
drwxr-xr-x 18 1234 1234 4096 Jun  3 18:12 3
drwxr-xr-x 17 1234 1234 4096 Jun  3 18:12 4
drwxr-xr-x 16 1234 1234 4096 Jun  3 18:12 5
drwxr-xr-x  2 root root 4096 Jun  3 18:09 6
drwxr-xr-x 17 1234 1234 4096 Jun  3 18:12 7
drwxr-xr-x 17 1234 1234 4096 Jun  3 18:12 8
drwxr-xr-x 17 1234 1234 4096 Jun  3 18:12 9
- -rw-r--r--  1 root root  190 Jun  3 18:09 CACHEDIR.TAG
drwxr-xr-x 16 1234 1234 4096 Jun  3 18:12 a
drwxr-xr-x 17 1234 1234 4096 Jun  3 18:12 b
drwxr-xr-x 17 1234 1234 4096 Jun  3 18:12 c
drwxr-xr-x 15 1234 1234 4096 Jun  3 18:12 d
drwxr-xr-x 16 1234 1234 4096 Jun  3 18:12 e
drwxr-xr-x 16 1234 1234 4096 Jun  3 18:12 f
drwxr-xr-x  2 root root 4096 Jun  3 18:09 tmp

Please note the root owner for directory '6'. It should be
1234.

A wild guess would be that one of packages in the dependency
chain runs gcc in its postinst script.


Regards

Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAk/LkC4ACgkQUTlbRTxpHjcyMACfXAAOXEOCrOeL3ECaukACs+0S
pTgAnRXa5RL2Ypk1vYgWPsOh09po6Gx0
=whlt
-----END PGP SIGNATURE-----





More information about the Pbuilder-maint mailing list