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 14:43, Ulrich Mueller wrote:
>>>>>> On Thu, 03 Sep 2020, Florian Schmaus wrote:
> 
>> 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
> 
> Sorry for another nitpick, but it's changing a file in /usr at runtime> Also, does the file belong to any package, or is it an orphan?

It's an orphan.

> Maybe it would be cleaner to generate the file in /etc like the others,
> if necessary with a symlink in /usr/lib/environment.d?

Good point. A symlink wont be necessary. We could also generate the file
in /etc/environment.d

I guess /etc/environment.d is preferred over /usr/lib/environment.d?
I'll make the according changes to the patch.

- Florian
signature.asc (application/pgp-signature, 618 B)
-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEEl3UFnzoh3OFr5PuuIjmn6PWFIFIFAl9Q6I9fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDk3
NzUwNTlGM0EyMURDRTE2QkU0RkJBRTIyMzlBN0U4RjU4NTIwNTIACgkQIjmn6PWF
IFKshQf8DnG1Wim8Q1bDlnQmxpP7Rxx5c9H1eVAiMcn2r3/Pe6sS9kv/YgXF5yrq
WiCwjWfjvAHYrricjcvcZ8uF4F6v2Hkpw7iKpt1U8hXga5D1GxiYXYxfXse5+yC6
7jR1Fbs58majyoYBWX5ZiD614YHnlCj/qw7HB0ZzOpIwja2mhCx98NWNwYUkJChu
iJIVvNmr6zq0jXFGRir/ZtzYKNIwt8foEvJssCZv1CGgPEKULynVB1uNxYHmrtbZ
gOzl2+otOhFpNWEX39FXsXyzbI6hOxy5B7BH5GzonH0hg651s28xP25O6TLHhIyp
A8dg46uqtBwr3RzCnFInxt7zw/DndQ==
=3Ze0
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.