Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434178 - etc-update failed to set ownership on temp dir in prefix
Summary: etc-update failed to set ownership on temp dir in prefix
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-07 01:27 UTC by Christoph Junghans (RETIRED)
Modified: 2012-09-09 07:35 UTC (History)
0 users

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 Christoph Junghans (RETIRED) gentoo-dev 2012-09-07 01:27:25 UTC
In my prefix environment inside a real Gentoo I get

PREFIX: christoph@x61 ~ $ etc-update 
chown: changing ownership of ‘/var/tmp/etc-update-3830’: Operation not permitted
etc-update: ERROR: failed to set ownership on temp dir
PREFIX: christoph@x61 ~ $ type etc-update 
etc-update is hashed (/data/christoph/prefix/usr/sbin/etc-update)

This error boils down two portage variable etc-update uses:

PREFIX: christoph@x61 ~ $ portageq envvar -v PORTAGE_TMPDIR PORTAGE_INST_UID
PORTAGE_TMPDIR='/var/tmp'
PORTAGE_INST_UID='0'

Strangely:

PREFIX: christoph@x61 ~ $ emerge --info | grep PORTAGE_TMPDIR
PORTAGE_TMPDIR="/data/christoph/prefix/var/tmp"
Comment 1 Fabian Groffen gentoo-dev 2012-09-07 06:48:18 UTC
scary, looks like it gets portage (settings) from host -- assuming you didn't use root to install your prefix
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2012-09-08 19:12:44 UTC
(In reply to comment #1)
> scary, looks like it gets portage (settings) from host -- assuming you
> didn't use root to install your prefix
I found it the environment was still polluted by PYTHONPATH="/usr/lib/portage/pym".
Comment 3 Fabian Groffen gentoo-dev 2012-09-09 07:35:11 UTC
hmmm, ok next portage version should be more protective about that kind of stuff.