public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Home directory for the 'portage' user
@ 2019-09-02 17:04 Mike Gilbert
  2019-09-02 17:49 ` Matt Turner
  2019-09-02 18:04 ` [gentoo-dev] " Mike Gilbert
  0 siblings, 2 replies; 3+ 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] 3+ messages in thread

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-02 17:04 [gentoo-dev] Home directory for the 'portage' user Mike Gilbert
2019-09-02 17:49 ` Matt Turner
2019-09-02 18:04 ` [gentoo-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