emerge libtheora fails as follows: make[3]: Entering directory `/var/tmp/portage/libtheora-1.0_alpha4/work/libtheora-1.0alpha4/doc' make[3]: Nothing to be done for `install-exec-am'. mkdir -p -- . /usr/share/doc/libtheora-1.0_alpha4 ACCESS DENIED mkdir: /usr/share/doc/libtheora-1.0_alpha4 mkdir: cannot create directory `/usr/share/doc/libtheora-1.0_alpha4': Permission denied make[3]: *** [install-data-local] Error 1 make[3]: Leaving directory `/var/tmp/portage/libtheora-1.0_alpha4/work/libtheora-1.0alpha4/doc' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/var/tmp/portage/libtheora-1.0_alpha4/work/libtheora-1.0alpha4/doc' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/libtheora-1.0_alpha4/work/libtheora-1.0alpha4/doc' make: *** [install-recursive] Error 1 !!! ERROR: media-libs/libtheora-1.0_alpha4 failed. !!! Function src_install, Line 34, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/tmp/sandbox-media-libs_-_libtheora-1.0_alpha4-24488.log" mkdir: /usr/share/doc/libtheora-1.0_alpha4 -------------------------------------------------------------------------------- Reproducible: Always Steps to Reproduce: Portage 2.0.51-r8 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc1-mm5 i686) ================================================================= System uname: 2.6.10-rc1-mm5 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 29 2004, 13:36:47)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.8.5-r2, 1.6.3, 1.9.3, 1.5, 1.7.9 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="" 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="X aalib alsa apm atm avi berkdb bitmap-fonts cdparanoia cdr crypt dhcp divx4linux doc dvd encode flac foomaticdb gdbm gif gpm gtk2 imagemagick imap imlib jpeg ldap libwww live lzo mad mbox mikmod mjpeg mmx mmx2 motif mpeg ncurses network nls offensive oggvorbis pam pdflib perl png python quicktime readline real sdl slang spell sse sse2 ssl tcltk tcpd tetex theora tiff truetype usb v4l v4l2 x86 xine xml2 xmms xvid zlib"
Changing docdir=/usr/share/doc/${PF} to docdir=usr/share/doc/${PF} fixes this, and johnm has done it in cvs