with FEATURES="userpriv usersandbox", emerge of db-4.1.25_p1-r4 fails Reproducible: Always Steps to Reproduce: 1. emerge db 2. 3. Actual Results: >>> Test phase [not enabled]: sys-libs/db-4.1.25_p1-r4 touch: cannot touch `.tested': Permission denied !!! ERROR: sys-libs/db-4.1.25_p1-r4 failed. !!! Function dyn_test, Line 940, Exitcode 1 !!! Failed to 'touch .tested' in /var/tmp/portage/db-4.1.25_p1-r4 Expected Results: emerge proceed to completion Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r12-prw-r6 i686) ================================================================= System uname: 2.6.9-gentoo-r12-prw-r6 i686 AMD Athlon(TM) XP 2700+ Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1,sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://mirror.uni-c.dk/gentoo/ http://mirror.datapipe.net/gentoo ftp://mir.zyrianes.net/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl alsa apm arts avi berkdb bitmap-fonts cdparanoia crypt cscope cups encode esd fam flac foomaticdb fortran gdbm gif gnome gphoto2 gpm gtk gtk2 imagemagick imlib ipv6 java jpeg junit kde ldap libwww mad mikmod motif mozilla mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sasl sdl slang spell ssl svga tcltk tcpd tiff truetype xml2 xmms xv zlib video_cards_radeon linguas_en_GB"
It seems there is a permission problem with your building directory. userpriv+usersandbox is not the cause as I allways use it too. Did you run filesystem operations on your /var/tmp directory paralel to merging db? Do you use acl's on the /var/tmp/portage dir? Could you past the output of: "ls -la /var/tmp/portage/db-4.1.25_p1-r4"?
I do not recall running any filesystem operations on /var/tmp and I don't know what acls are. paul@wyvern paul $ ls -la /var/tmp/portage/db-4.1.25_p1-r4 total 41 drwxr-xr-x 5 portage portage 184 Jan 3 20:04 . drwxrwxr-x 1195 portage portage 41552 Jan 3 20:04 .. -rw-r--r-- 1 root root 0 Dec 31 18:44 .tested -rw-r--r-- 1 portage portage 0 Jan 3 20:04 .unpacked drwxr-xr-x 2 portage portage 88 Jan 3 20:04 build-info drwxrws--- 2 portage portage 112 Jan 3 20:05 temp drwx------ 3 portage portage 80 Jan 3 20:04 work I deleted .tested and the emerge runs OK now. I have no idea how I ended up with a .tested with that ownership. Thanks for your help.