Package: apt Version: 0.8.14.1 Severity: minor Hello, I have some test suites which are run during package build and use apt-cache. This recently started to fail with some dubious errors. I tracked this down to apt-cache now failing to work under fakeroot: $ fakeroot apt-cache policy coreutils E: Could not open file /var/cache/apt/pkgcache.bin - open (13: Permission denied) E: Failed to truncate file - ftruncate (9: Bad file descriptor) E: The package lists or status file could not be parsed or opened. This is with fakeroot 1.16-1, which recently learned about access() [1]. It does work fine with the previous fakeroot 1.15.1-1 still. So it seems apt-cache tries an access() to see whether it can write /var/cache/apt/pkgcache.bin and then fails to actually do so. It's a bit hard to say whether this is a bug in apt, or whether fakeroot shouldn't claim that access() works when it doesn't. Clint seems to have anticipated that in [2] already. It can be worked around easily enough by running apt-cache under "env -u LD_PRELOAD". Thanks, Martin [1] http://packages.qa.debian.org/f/fakeroot/news/20110610T013216Z.html [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629956#20 -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Attachment:
signature.asc
Description: Digital signature