This is one of a few ebuilds that fail during an emerge -e system when the USERPRIV and USERSANDBOX parameters are used in the FEATURES statement. Removing USERPRIV and USERSANDBOX cures the permissions problem. kaiser ~ # emerge --info Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.14-gentoo-r5 i686) ================================================================= System uname: 2.6.14-gentoo-r5 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.14 distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-march=pentium -pipe -O2 -fweb -frename-registers -fforce-addr -fomit-frame-pointer -ftracer" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium -pipe -O2 -fweb -frename-registers -fforce-addr -fomit-frame-pointer -ftracer -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--sort-common -s" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://******/gentoo-portage" USE="x86 alsa apm arts avi berkdb bitmap-fonts bzip2 crypt cups eds emboss encode expat foomaticdb fortran gdbm geoip gif gpm gstreamer gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS Here is the error: <snip> >>> Unpacking db-4.3.27.tar.gz to /var/tmp/portage/pam-0.78-r3/work * Applying pam-0.75-prompt.patch ... [ ok ] * Applying pam-0.77-lastlog-utmp.patch ... [ ok ] * Applying pam-0.78-unix-hpux-aging.patch ... [ ok ] * Applying pam-0.75-sgml2latex.patch ... [ ok ] * Applying pam-0.78-multicrack.patch ... [ ok ] * Applying pam-0.77-dbpam.patch ... [ ok ] * Applying pam-0.77-unix-passwd-parse.patch ... [ ok ] * Applying pam-0.78-pam_handlers-handle-NULL.patch ... [ ok ] * Applying pam-0.78-console-reset.patch ... [ ok ] * Applying pam-0.78-devfsd.patch ... [ ok ] * Applying pam-0.78-pam_console-config.patch ... [ ok ] * Applying pam-0.77-pam_console-fix-fullpath-in-file-classes.patch ... [ ok ] * Applying pam-0.78-pam_console-static-glib.patch ... [ ok ] * Applying pam-0.78-pam_console_apply-use-correct-device.patch ... [ ok ] * Applying pam-0.78-pam_console-sed-static.patch ... [ ok ] * Applying pam-0.78-pam_console-Makefile-cleanup.patch ... [ ok ] * Applying pam-0.77-pam_xauth-also-set-DISPLAY.patch ... [ ok ] * Applying pam-0.78-nis.patch ... [ ok ] configure.in:414: /usr/bin/m4: ERROR: Cannot create temporary file for diversion: Permission denied autom4te-2.59: /usr/bin/m4 failed with exit status: 1 <snip> from a security standpoint, it might be a good idea for the pluggable authentication module to take advantage of portage's ability to build it securely.
Fix your CAPS LOCK, and don't file zillion of bugs about apparently identical problem... *** This bug has been marked as a duplicate of 120876 ***