I have /var in a second partition, with the following schema: apollyon / # ls -l /var lrwxrwxrwx 1 root root 18 2008-09-20 06:01 /var -> /mnt/variable/var/ apollyon / # mount | grep variable /dev/sda5 on /mnt/variable type ext3 (rw,noatime) When I run revdep-rebuild now, I get this: apollyon ~ # revdep-rebuild * Configuring search environment for revdep-rebuild * Working directory expected to be /var/cache/revdep-rebuild, but it is /mnt/variable/var/cache/revdep-rebuild Reproducible: Always Steps to Reproduce: 1. have /var be a symlink 2. revdep-rebuild Actual Results: Error: * Working directory expected to be /var/cache/revdep-rebuild, but it is /mnt/variable/var/cache/revdep-rebuild Expected Results: Successful completion of the program. I had no trouble with app-portage/gentoolkit-0.2.3-r1
(In reply to comment #0) Same problem here with Portage 2.2_rc12 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo-r1 x86_64)
(In reply to comment #1) This seems to be a duplicate of bug 234271 And I found a solution in this thread: http://forums.gentoo.org/viewtopic-p-5150944.html?sid=038520a2ab671f4f628884c723ae9863#5150944 The solution is to bind-mount it: mount -o bind /home/var /var Or in fstab: /home/var /var none bind 0 0
You need to bind mount /var so that it is not a symbolic link. The changes were mandated as part of a security fix to ensure that you could not use a symlink attack on revdep-rebuild. *** This bug has been marked as a duplicate of bug 234271 ***