public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] Home directory for the 'portage' user
@ 2019-09-02 17:04 Mike Gilbert
  2019-09-02 18:04 ` [gentoo-portage-dev] " Mike Gilbert
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Gilbert @ 2019-09-02 17:04 UTC (permalink / raw
  To: Gentoo Dev; +Cc: gentoo-portage-dev

I would like to create an acct-user package for the 'portage' user,
but I'm having trouble deciding on a home directory.

baselayout currently sets it to /var/tmp/portage, and this just seems
like a bad idea to me. I'm pretty sure we have a QA policy against
installing files there anyway.

If we set the home directory to /dev/null, this may cause problems for
unit tests that expect the account to have a valid home directory. For
example, see this bug report for app-shells/ksh, which is about a test
case that fails when the HOME environment variable is unset. It also
fails if the home directory is not a directory (/dev/null).

https://github.com/att/ast/issues/1391

/x/portage/app-shells/ksh-2020.0.0_beta1/work/ksh-2020.0.0_beta1-build/src/cmd/ksh93/ksh[5]:
cd: /dev/null: [Not a directory]
<E> builtins[494]: cd with no arguments fails if HOME is unset
<W> builtins[-1]: error_count = 1

So, I guess we should pick somewhere to create an empty directory for
portage. Any suggestions?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-portage-dev] Re: Home directory for the 'portage' user
  2019-09-02 17:04 [gentoo-portage-dev] Home directory for the 'portage' user Mike Gilbert
@ 2019-09-02 18:04 ` Mike Gilbert
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Gilbert @ 2019-09-02 18:04 UTC (permalink / raw
  To: Gentoo Dev; +Cc: gentoo-portage-dev

On Mon, Sep 2, 2019 at 1:04 PM Mike Gilbert <floppym@gentoo.org> wrote:
>
> I would like to create an acct-user package for the 'portage' user,
> but I'm having trouble deciding on a home directory.
>
> baselayout currently sets it to /var/tmp/portage, and this just seems
> like a bad idea to me. I'm pretty sure we have a QA policy against
> installing files there anyway.
>
> If we set the home directory to /dev/null, this may cause problems for
> unit tests that expect the account to have a valid home directory. For
> example, see this bug report for app-shells/ksh, which is about a test
> case that fails when the HOME environment variable is unset. It also
> fails if the home directory is not a directory (/dev/null).
>
> https://github.com/att/ast/issues/1391
>
> /x/portage/app-shells/ksh-2020.0.0_beta1/work/ksh-2020.0.0_beta1-build/src/cmd/ksh93/ksh[5]:
> cd: /dev/null: [Not a directory]
> <E> builtins[494]: cd with no arguments fails if HOME is unset
> <W> builtins[-1]: error_count = 1
>
> So, I guess we should pick somewhere to create an empty directory for
> portage. Any suggestions?

/var/lib/portage/home was suggested in IRC. If there are any
objections to that path, please make them known.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-02 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-02 17:04 [gentoo-portage-dev] Home directory for the 'portage' user Mike Gilbert
2019-09-02 18:04 ` [gentoo-portage-dev] " Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox