Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96988 - enewuser doesn't handle ${ROOT}
Summary: enewuser doesn't handle ${ROOT}
Status: RESOLVED DUPLICATE of bug 42320
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-24 15:26 UTC by Aron Griffis (RETIRED)
Modified: 2005-06-24 18:20 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 Aron Griffis (RETIRED) gentoo-dev 2005-06-24 15:26:50 UTC
If enewuser is called in the context of pkg_*, it ignores ${ROOT} and creates the user on the local system.

This isn't an easy problem to fix, IMHO.  The user needs to be added to ${ROOT}/etc/passwd, but it also needs to be known to the local system so that file ownership can be set correctly when chown is called from the ebuild.  It seems like there's no choice but to (1) find a unique user id that is the same for /etc/passwd and ${ROOT}/etc/passwd, (2) create the user in both places.
Comment 1 SpanKY gentoo-dev 2005-06-24 18:20:10 UTC

*** This bug has been marked as a duplicate of 42320 ***