[systemd-devel] [PATCH] gentoo: locale-setup support.

Lennart Poettering lennart at poettering.net
Mon Sep 20 13:58:21 PDT 2010


On Sun, 19.09.10 21:32, Gustavo Sverzut Barbieri (barbieri at profusion.mobi) wrote:

Heya,

> Use locale variables from /etc/profile.env as Gentoo's openrc
> runscript does (tool that is used by /etc/init.d/* services).

Hmpf. I am still a bit torn about this. We are not a shell, and
interpreting those "export" lines looks like a call for desaster,
because we don't actually really understand shell syntax here. For
example, if somebody says "export LC_NUMERIC=$LC_TIME", then we'll choke
on this. 

I am not convinced that it is smart to claim we supported something
which we really don't.

I'd recommend to just officially acknoweledge that systemd and openrc
deviate here, and document it. In most cases the difference should be
invisible anyway, since the user shell eventually pulls in these
settings for all user apps.

In the long run I'd like to get rid of all these little differences
between the distros anyway (i.e. all those little #ifdef TARGET_FEDORA
and #ifdef TARGET_GENTOO), so maybe one should see this as a chance to
say that Gentoo here is already one step further than the other distros?

Sorry if this is disappointing!

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list