Gentoo Archives: gentoo-portage-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Cc: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] Re: Home directory for the 'portage' user
Date: Mon, 02 Sep 2019 18:05:03
Message-Id: CAJ0EP43pZO6G9cURrTrNA+WajT0iS1K8VD26qCA6y3N8OEteUQ@mail.gmail.com
In Reply to: [gentoo-portage-dev] Home directory for the 'portage' user by Mike Gilbert
1 On Mon, Sep 2, 2019 at 1:04 PM Mike Gilbert <floppym@g.o> wrote:
2 >
3 > I would like to create an acct-user package for the 'portage' user,
4 > but I'm having trouble deciding on a home directory.
5 >
6 > baselayout currently sets it to /var/tmp/portage, and this just seems
7 > like a bad idea to me. I'm pretty sure we have a QA policy against
8 > installing files there anyway.
9 >
10 > If we set the home directory to /dev/null, this may cause problems for
11 > unit tests that expect the account to have a valid home directory. For
12 > example, see this bug report for app-shells/ksh, which is about a test
13 > case that fails when the HOME environment variable is unset. It also
14 > fails if the home directory is not a directory (/dev/null).
15 >
16 > https://github.com/att/ast/issues/1391
17 >
18 > /x/portage/app-shells/ksh-2020.0.0_beta1/work/ksh-2020.0.0_beta1-build/src/cmd/ksh93/ksh[5]:
19 > cd: /dev/null: [Not a directory]
20 > <E> builtins[494]: cd with no arguments fails if HOME is unset
21 > <W> builtins[-1]: error_count = 1
22 >
23 > So, I guess we should pick somewhere to create an empty directory for
24 > portage. Any suggestions?
25
26 /var/lib/portage/home was suggested in IRC. If there are any
27 objections to that path, please make them known.