Gentoo Archives: gentoo-portage-dev

From: Florian Schmaus <flo@×××××××××.eu>
To: Ulrich Mueller <ulm@g.o>
Cc: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH v2] env-update: create systemd env configuration if required
Date: Thu, 03 Sep 2020 12:07:51
Message-Id: 4bd5f7fc-ccb5-8671-e087-56e4330cff33@geekplace.eu
In Reply to: Re: [gentoo-portage-dev] [PATCH v2] env-update: create systemd env configuration if required by Ulrich Mueller
1 On 03.09.20 13:30, Ulrich Mueller wrote:
2 >>>>>> On Thu, 03 Sep 2020, Florian Schmaus wrote:
3 >
4 >> This commit changes env-update so that, after profile.env has was
5 >> generated, a systemd user session environment configuration file named
6 >
7 >> /usr/lib/environment.d/gentoo-profile-env.conf
8 >
9 >> is created, if the directory /usr/lib/environment.d exists.
10 >
11 > Maybe a stupid question, but can't this file just source /etc/profile?
12
13 Akin to what 96e0294f0892 ("Add env gen to inject full Gentoo PATH to
14 services") in gentoo-systemd-integration does?
15
16 Unfortunately the answer is 'no', because gentoo-profile-env.conf is not
17 an interactive script, it is just a systemd configuration file.
18
19 > Maintaining the same information twice doesn't look like the right thing
20 > to do.
21
22 It's not really maintaining the information twice. The information is
23 maintained at a single point: /etc/env.d
24 And from there is is transformed by env-update already into two
25 different formats:
26 - /etc/profile.env
27 - /etc/csh.env
28
29 And with that change additionally into
30 - /usr/lib/environment.d/gentoo-profile-env.conf
31
32 - Florian

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies