FS#29785 - [initscripts] move profile.d/locale.sh to another package

Attached to Project: Arch Linux
Opened by xduugu (xduugu) - Sunday, 06 May 2012, 19:08 GMT
Last edited by Tom Gundersen (tomegun) - Sunday, 03 June 2012, 00:33 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When you use an alternative init system and remove initscripts, because it is unused, you will
be left with a "broken" locale setting (POSIX). Maybe the file /etc/profile.d/locale.sh can be moved to another package like filesystem or even glibc.
This task depends upon

Closed by  Tom Gundersen (tomegun)
Sunday, 03 June 2012, 00:33 GMT
Reason for closing:  Upstream
Additional comments about closing:  Also worked around for now downstream.
Comment by Karol Błażewicz (karol) - Sunday, 06 May 2012, 20:13 GMT
It may not be a bad idea, but initscripts belong to 'base' group and you're expected to have the whole group installed.
Comment by Dave Reisner (falconindy) - Sunday, 06 May 2012, 20:35 GMT
Karol: do you have xfsprogs, jfsutils, reiserfsprogs, ppp, and pcmciautils all installed?

There's other reasons to invalidate this bug report, but your edict that everyone should have base installed is not one of them.
Comment by Karol Błażewicz (karol) - Sunday, 06 May 2012, 20:49 GMT
Nope, I removed them.
As I said, it may not be a bad idea and it's not "my edict" but just a reminder of https://wiki.archlinux.org/index.php/Beginners%27_Guide#Package_groups
Comment by Tom Gundersen (tomegun) - Monday, 07 May 2012, 08:56 GMT
This is a bug in systemd in my opinion. I have been trying to figure it out without much success. locale.sh is a hack, so unless the locale problems with systemd turn out to be by design, I suggest we leave locale.sh in initscripts.
Comment by Matthias Dienstbier (fs4000) - Monday, 07 May 2012, 10:40 GMT
I use pam_env.so for this purpose now. Just write something like "LANG=de_DE.UTF-8" into /etc/environment.

The only thing where this does not work is "su -l" but this should probably be fixed in coreutils.
Comment by Dave Reisner (falconindy) - Monday, 07 May 2012, 10:43 GMT
No that's something you fix in /etc/pam.d/such.
Comment by Tom Gundersen (tomegun) - Friday, 01 June 2012, 14:46 GMT
Regarding systemd: upstream would welcome a patch to add support for locale.conf for user sessions as well as system daemons.

The way it should work is to first look in $XDG_CONFIG/locale.conf, if that file does not exist use /etc/locale.conf instead. However, we should take care not to use both of them. I.e. if the user-specific file exist the system-wide one must be ignored.
Comment by Tom Gundersen (tomegun) - Sunday, 03 June 2012, 00:33 GMT
This is fixed (for the time being) by either installing initscripts or systemd-sysvcompat. Closing, if you want to fix it properly, take it upstream.

Loading...