Emerging dev-db/mysql-5.0.60 fails with the attached message. However, I do have userpriv in FEATURES. >>> Emerging (1 of 3) dev-db/mysql-5.0.60 to / * mysql-5.0.60.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * mysql-extras-20080529.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking mysql-5.0.60.tar.gz ;-) ... [ ok ] * checking mysql-extras-20080529.tar.bz2 ;-) ... [ ok ] * * ERROR: dev-db/mysql-5.0.60 failed. * Call stack: * ebuild.sh, line 49: Called pkg_setup * ebuild.sh, line 1263: Called mysql_pkg_setup * mysql.eclass, line 474: Called die * The specific snippet of code: * die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." * The die message: * Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root. * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.60/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.0.60/temp/die.env'. * Reproducible: Always Portage 2.1.5.2 (default/linux/x86/2008.0/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.25-gentoo-r1 i686) ================================================================= System uname: 2.6.25-gentoo-r1 i686 AMD Athlon(tm) XP 1800+ Timestamp of tree: Thu, 29 May 2008 16:46:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.4-r1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.25-r3 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -ggdb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect distlocks fixpackages parallel-fetch sandbox sfperms splitdebug strict test unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://src.gentoo.pl/ http://gentoo.prz.rzeszow.pl/ http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/" LANG="pl_PL.UTF-8" LC_ALL="pl_PL.UTF-8" LDFLAGS="" LINGUAS="pl" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/kadu-stable /usr/portage/local/overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X a52 aac acl acpi alsa amarok apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cjk cli cracklib crypt cups curl dbus dlloader dri dv dvd dvdr dvdread emboss encode evo exif fam fbcon ffmpeg firefox flac foomaticdb fortran gdbm gif glitz gphoto2 gpm gstreamer hal iconv ieee1394 irmc isdnlog jabber java java5 javascript jpeg kde kdehiddenvisibility kerberos kipi libnotify mad matroska midi mikmod mime mmx mng mp3 mpeg mplayer mudflap musepack mysql ncurses nls nptl nptlonly nsplugin nvidia offensive ogg openal opengl openmp pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4 quicktime rdesktop readline real realmedia reflection samba sdl session spell spl sse ssl startup-notification subversion svg tcpd theora threads tiff truetype unicode usb utempter vcd videos vnc vorbis win32codecs x264 x86 xattr xcomposite xine xml xorg xprint xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="nvidia none" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Is that the entire build log?
Seems like pkg_setup() is run as root. :) http://devmanual.gentoo.org/ebuild-writing/functions/pkg_setup/index.html says: Function pkg_setup Purpose Pre-build environment configuration and checks Sandbox Disabled Privilege root Called for ebuild, binary
Yes, this is the entire build log. From what you posted, I think a fix would be to revert that change in mysql.eclass (so that in pkg_setup the only test would be for the userpriv feature, not for the current user being root), is that correct?
I made it non-fatal in pkg_setup for now.