path: root/man
diff options
authorFlorian Schmaus <flo@geekplace.eu>2020-09-05 09:18:17 +0200
committerZac Medico <zmedico@gentoo.org>2020-09-07 17:01:47 -0700
commit45a5982fe8076066323e91f6b5fe860f3a429f9f (patch)
tree6b6472e9de7a73dac206309145f8bab84af724ca /man
parentman/{portage,make.conf}.5: Files in subdirs are parsed in lexical order (diff)
env-update: create systemd user-session environment definition
Portage's env-update currently transforms the environment information from /etc/env.d into /etc/profile.env, which is typically sourced by every user session, setting up its environment. However, /etc/profile.env is not sourced by systemd user services. Instead, for the definition of a systemd user session environment, the 'environment.d' machinery exists. Unfortunately, up to now, env-update does not produce a profile.env equivalent for this machinery, causing issues for systemd user services. For example, an emacs daemon run as user systemd service does not have a complete PATH (bug #704412 [1]), because some PATH components are injected by packages via /etc/env.d. For example, an LLVM ebuild may set PATH="/usr/lib/llvm/9/bin". This commit changes env-update so that a systemd user session environment configuration file named /etc/environment.d/10-gentoo-env.conf is created. Thanks to Michael 'veremitz' Everitt, Arfrever Frehtes Taifersar Arahesis, Ulrich Müller, Joakim Tjernlund, and Zac Medico for the useful feedback. 1: https://bugs.gentoo.org/704412 Bug: https://bugs.gentoo.org/704416 Signed-off-by: Florian Schmaus <flo@geekplace.eu> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions