/var/tmp/portage/xterm-196/.tested is owned by root:root instead of portage:portage, so it fails emerge with "can't touch .tested - permission denied". I had to `chown portage:portage /var/tmp/portage/xterm-196/.tested` then `ebuild /usr/portage/x11-terms/xterm/xterm-196.ebuild install` and `ebuild /usr/portage/x11-terms/xterm/xterm-196.ebuild qmerge`. # emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r6i686) ================================================================= System uname: 2.6.9-gentoo-r6 i686 AMD Athlon(tm) XP 2200+ 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-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /sbin /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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks emergemail fixpackages nostrip notitles sandboxsfperms userpriv usersandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow S3TC X aac aalib acpi acpi4linux apm arts artswrappersuid audiofile avi berkdb bitmap-fonts bzlib calendar cddb cdparanoia cdr codecs cups curl curlwrappers dbase devmap divx4linux dmx doc dv dvd dvdr dvdread encode escreen esd exif faac faad fam fbcon ffmpeg flac foomaticdb ftpgif gimp gimpprint gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml imagemagick imlib innodb interbase iodbc java javascript jbig joystick jp2 jpeg jpeg2k junit kde libg++ libwww live lzw-tiff mad maildir mbox mikmod mime mmx mmx2 mng monkey mono motif mozcalendar moznocompose moznoirc mozsvg mp3mpeg mysql mysqli nas ncurses network nls no_wxgtk1 nocardbus nomac nptl oav odbc oggvorbis opengl oss pam pcre pdflib perl png posix postgres ppds python qt quicktime readline rtc samba scanner sdl slang slp sox spell sqlite sse ssl svg tcltk tcpd tga theora tiff timidity truetype unicodeusb vanilla videos vim-with-x wmf x86 xbase xine xml2 xmms xpm xprint xv xvid yv12 zlib"
Its because of your FEATURES="userpriv usersandbox" and wrong permissions on your system. Not gentoo's fault.
Try to rm /var/tmp/portage/* -R and remerge, reopen if it does not work after that (most unlikely)
Yes, after `rm /var/tmp/portage/* -R`, remerge went OK (even with FEATURES="userpriv usersandbox"). However I'd appreciate knowing what caused this.
I had the same problem with a fresh Gentoo install with several (3-5) packages. >>> Test phase [not enabled]: x11-base/xorg-x11-6.8.0-r3 touch: cannot touch `.tested': Permission denied /var/tmp/portage/xorg-x11-6.8.0-r3/.tested was owned by root instead of portage.I think the reason is that at the beginning of the installation procedure FEATURES="userpriv usersandbox" was not in /etc/make.conf (I forgot USE="-X" from emerge rp-pppoe, so I got xorg-x11 that time.) I hope the following will fix it: chown portage:portage /var/tmp/portage/*/.tested However this behaviour is not OK. It's at least a bug of the installation manual, but I think this should be tested by emerge before the build. And more, it seems to me that after the error the whole build runs again even if I touch .tested by hand after fixing the ownership. That is another (minor) bug in my opinion. (I'm new to Gentoo this is my first still ongoing install, it's possible that I misunderstood something.)