Writing a boatload of new ebuilds for GNUstep, and it was mentioned that I should be aware of userpriv and usersandbox. This is because I sadly _have_ to use addwrite because a gnustep system progam creates a lockfile in the user's home directory during the install. src_compile works fine: Here's some debugging output: * *^%*%*(&^&^*^&^(*&^(*^ * HOME: /var/tmp/portage/homedir * whoami: portage * where? /var/tmp/portage/homedir/GNUstep/Defaults/.GNUstepDefaults.lck * *^%*%*(&^&^*^&^(*&^(*^" src_install does not: * *^%*%*(&^&^*^&^(*&^(*^ * HOME: /var/tmp/portage/homedir * whoami: root * where? /var/tmp/portage/homedir/GNUstep/Defaults/.GNUstepDefaults.lck * *^%*%*(&^&^*^&^(*&^(*^" Granted, this just may be a design consideration, and not a bug, but src_install just install into the image directory, it seems, so why does it need to be root? If it does, then the environment should be updated to reflect that. Reproducible: Always Steps to Reproduce: 1. Write a do nothing ebuild 2. Set FEATURES="userpriv usersandbox" 3. echo $HOME, `whoami` in src_compile and src_install 4. Notice the difference. Actual Results: See details. Expected Results: See details.
portage version?
better yet, emerge info?
sys-apps/portage-2.0.50-r8 -build -multilib
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -funroll-loops" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" 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="-march=pentium4 -O3 -pipe -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv usersandbox" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://128.213.5.34/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo" 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 acl alsa apm avi berkdb crypt cups directfb encode foomaticdb gdbm gif gpm gtk gtk2 guile imlib java jpeg ldap libg++ libwww mad mikmod motif mpeg ncurses nptl oggvorbis opengl oss pam pdflib perl png postgres python quicktime readline ruby sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
I'm currently just testing with userpriv and usersandbox, I do not use though featuers on as a user personally.
Portage remains root for install so that one may change files to root ownership. That may be the extent of the reason.
old IMO invalid