Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72748 - xterm-196 can't touch .tested so fails install
Summary: xterm-196 can't touch .tested so fails install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-28 10:38 UTC by Peter Ruskin
Modified: 2004-12-05 12:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Ruskin 2004-11-28 10:38:27 UTC
/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"
Comment 1 Søren Chrestensen 2004-11-28 10:52:26 UTC
Its because of your FEATURES="userpriv usersandbox" and wrong permissions on your system. 

Not gentoo's fault.
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-28 11:30:31 UTC
Try to rm /var/tmp/portage/* -R and remerge, reopen if it does not work after that (most unlikely)
Comment 3 Peter Ruskin 2004-11-28 11:45:08 UTC
Yes, after `rm /var/tmp/portage/* -R`, remerge went OK (even with FEATURES="userpriv usersandbox").  However I'd appreciate knowing what caused this.
Comment 4 Werner, Péter 2004-12-05 12:10:28 UTC
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.)