Bug#666525: Bumping severity to RC
Jurij Smakov
jurij at wooyd.org
Sun Aug 19 14:47:31 UTC 2012
retitle 666525 pbuilder fails to create directory under ccache when run with sudo
severity 666525 serious
thanks
Hello,
I just ran into this bug. On a freshly installed testing system I ran
sudo pbuilder --create --distribution sid --mirror http://ftp.ie.debian.org/debian
and then ran a build with:
sudo pbuilder build *.dsc
Package build gets to the compilation stage and fails with error
messages:
[...]
gcc -m32 -Os -Wall -I. -I../include -fomit-frame-pointer -fno-strict-aliasing -DSMALL_RELOC=0x280000 -DLARGE_RELOC=0x380000 -fno-stack-protector -c printf.c
ccache: FATAL: Failed to create /var/cache/pbuilder/ccache/a/c: Permission denied
make[2]: *** [printf.o] Error 1
make[2]: Leaving directory `/tmp/buildd/silo-1.4.14+git20120819/build-tree/common'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/tmp/buildd/silo-1.4.14+git20120819/build-tree'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Here are the permissions of relevant directories:
jurij at debian:~$ ls -la /var/cache/pbuilder/
total 93404
drwxr-xr-x 9 root root 4096 Aug 19 15:12 .
drwxr-xr-x 10 root root 4096 Aug 19 13:44 ..
drwxr-xr-x 2 root root 12288 Aug 19 15:17 aptcache
-rw-r--r-- 1 root root 95597991 Aug 19 15:12 base.tgz
drwxr-xr-x 2 root root 4096 Aug 19 15:17 build
drwxr-xr-x 12 1234 1234 4096 Aug 19 15:17 ccache
drwxr-xr-x 2 root root 4096 May 30 11:04 pbuildd
drwxr-xr-x 2 root root 4096 May 30 11:04 pbuilder-mnt
drwxr-xr-x 2 root root 4096 May 30 11:04 pbuilder-umlresult
drwxr-xr-x 2 root root 4096 May 30 11:04 result
jurij at debian:~$ ls -la /var/cache/pbuilder/ccache/
total 52
drwxr-xr-x 12 1234 1234 4096 Aug 19 15:17 .
drwxr-xr-x 9 root root 4096 Aug 19 15:12 ..
drwxr-xr-x 2 1234 1234 4096 Aug 19 15:17 1
drwxr-xr-x 2 1234 1234 4096 Aug 19 15:17 3
drwxr-xr-x 2 1234 1234 4096 Aug 19 15:17 4
drwxr-xr-x 2 1234 1234 4096 Aug 19 15:17 5
drwxr-xr-x 2 1234 1234 4096 Aug 19 15:17 8
drwxr-xr-x 2 1234 1234 4096 Aug 19 15:17 9
drwxr-xr-x 2 root root 4096 Aug 19 15:14 a
drwxr-xr-x 2 1234 1234 4096 Aug 19 15:17 b
-rw-r--r-- 1 root root 190 Aug 19 15:14 CACHEDIR.TAG
drwxr-xr-x 2 1234 1234 4096 Aug 19 15:17 e
drwxr-xr-x 2 root root 4096 Aug 19 15:14 tmp
jurij at debian:~$
I don't think it's acceptable to release a package which fails a basic
operation with default settings (I did not create or modify
~/.pbuilderrc or any other related configuration files), hence the RC
severity. Looking around, I see a number of discussions mentioning
similar problems, for example:
http://lists.debian.org/debian-devel/2012/05/msg00223.html
In case it matters, these tests were carried out on a sparc system.
Best regards,
--
Jurij Smakov jurij at wooyd.org
Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC
More information about the Pbuilder-maint
mailing list