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. |