Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55074 - wrong user in src_install for userpriv / usersandbox
Summary: wrong user in src_install for userpriv / usersandbox
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-24 13:19 UTC by Armando Di Cianno (RETIRED)
Modified: 2005-05-04 17:59 UTC (History)
1 user (show)

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 Armando Di Cianno (RETIRED) gentoo-dev 2004-06-24 13:19:21 UTC
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.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-06-24 23:37:50 UTC
portage version?
Comment 2 Brian Harring (RETIRED) gentoo-dev 2004-06-24 23:40:48 UTC
better yet, emerge info?
Comment 3 Armando Di Cianno (RETIRED) gentoo-dev 2004-06-25 06:26:56 UTC
sys-apps/portage-2.0.50-r8  -build -multilib
Comment 4 Armando Di Cianno (RETIRED) gentoo-dev 2004-06-25 06:27:39 UTC
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"
Comment 5 Armando Di Cianno (RETIRED) gentoo-dev 2004-06-25 06:28:14 UTC
I'm currently just testing with userpriv and usersandbox, I do not use though featuers on as a user personally.
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2004-10-09 21:47:53 UTC
Portage remains root for install so that one may change files to root ownership.
That may be the extent of the reason.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2005-05-04 17:59:48 UTC
old IMO invalid