Re: [PATCH v2] env-update: create systemd env configuration if required
Florian Schmaus <[email protected]>
| Newsgroups | gmane.linux.gentoo.portage.devel |
|---|---|
| Message-ID | <[email protected]> |
On 03.09.20 13:30, Ulrich Mueller wrote:
>>>>>> On Thu, 03 Sep 2020, Florian Schmaus wrote:
>
>> This commit changes env-update so that, after profile.env has was
>> generated, a systemd user session environment configuration file named
>
>> /usr/lib/environment.d/gentoo-profile-env.conf
>
>> is created, if the directory /usr/lib/environment.d exists.
>
> Maybe a stupid question, but can't this file just source /etc/profile?
Akin to what 96e0294f0892 ("Add env gen to inject full Gentoo PATH to
services") in gentoo-systemd-integration does?
Unfortunately the answer is 'no', because gentoo-profile-env.conf is not
an interactive script, it is just a systemd configuration file.
> Maintaining the same information twice doesn't look like the right thing
> to do.
It's not really maintaining the information twice. The information is
maintained at a single point: /etc/env.d
And from there is is transformed by env-update already into two
different formats:
- /etc/profile.env
- /etc/csh.env
And with that change additionally into
- /usr/lib/environment.d/gentoo-profile-env.conf
- Florian
signature.asc
(application/pgp-signature, 618 B)
-----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEEl3UFnzoh3OFr5PuuIjmn6PWFIFIFAl9Q3JJfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk3 NzUwNTlGM0EyMURDRTE2QkU0RkJBRTIyMzlBN0U4RjU4NTIwNTIACgkQIjmn6PWF IFLjtgf/VL1RTOVulwzqRnx1qBT2AblpyVdTJkLkoI1OEBPxeyzGZZgb/pg5sqZK 6GirkB/NtY+xjUS8rCPQHagiLcWpURqcGjs9VtGbV3QwmFbGWewmEuYu6SIgWrr4 0GiGU9VFVEvKo/Bc6n1/5DcYbLAIwraIS2ZG/VGumV8iKTtN36lQ6WDa8WtBZved 2iyoVZAk3T7UVIRb1hXfoG+EnLAfbCiQ7zHgSy35fhlU+llsc2xkP6Ad7Ujaxw9v BaaF94XGWK/Ud55x9bijCpXdz0TWj/QNileg8o4CKqlD4YX+6q0Bu8gm/yn78AXD cTZdhfgND7/K0MvFWhE8tcpD/65k5g== =oa1o -----END PGP SIGNATURE-----