niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Distributions » Debian » devel
(Not so fresh) News about locales
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
Denis Barbier
*nix forums beginner


Joined: 22 Jul 2005
Posts: 12

PostPosted: Wed Jul 19, 2006 10:40 am    Post subject: (Not so fresh) News about locales Reply with quote

Hi,

locales.postinst has been modified to write locale variables
into /etc/default/locale instead of /etc/environment; the
latter file is a PAM configuration file, so modifying it
was a policy violation. Most packages have been modified
accordingly, but if you have trouble with some programs,
please file bugs against them. You may also need to manually
copy locale variables from /etc/default/locale into
/etc/environment if you reconfigure the locales package,
this file is no more updated since it is a policy violation.
A new update-locale(Cool program is provided so that /etc/default/locale
can be modified by other maintainer scripts.

A new locales-all package has been introduced in glibc 2.3.6-10,
it contains all supported compiled locale files. The main
reason is that generating UTF-8 locales on low resource machines
is a major pain. It does not need to conflict with locales (because
it contains compiled locale files and not source data files), so
both packages can be installed simultaneously, which means that
locales-all cannot ship an /usr/lib/locale/locale-archive archive.
It currently ships files under /usr/lib/locales-all/ and instructions
on how to use these files can be found in README.Debian. There has
been some discussions on #375829, and my current plan for etch is to
let locales-all ship a compressed /usr/lib/locales-all/supported.tar.gz
tarfile containing current files, and its postinst will uncompress it
and run localedef --add-to-archive on all locales.
We will see after etch how this can be improved.

Denis


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Frank Küster
*nix forums Guru


Joined: 20 Feb 2005
Posts: 432

PostPosted: Wed Jul 19, 2006 11:20 am    Post subject: Re: (Not so fresh) News about locales Reply with quote

Denis Barbier <barbier@linuxfr.org> wrote:

Quote:
Hi,

locales.postinst has been modified to write locale variables
into /etc/default/locale instead of /etc/environment; the
latter file is a PAM configuration file, so modifying it
was a policy violation. Most packages have been modified
accordingly, but if you have trouble with some programs,
please file bugs against them.

localeconfig.postinst does write /etc/environment, is this a bug?

If yes, which package is supposed to handle the file, then? It isn't
registered with dpkg, no other maintainer script except localeconfig's
handles it, and it isn't in /var/lib/ucf/hashfile, either.

Regards, Frank
--
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
Back to top
Denis Barbier
*nix forums beginner


Joined: 22 Jul 2005
Posts: 12

PostPosted: Wed Jul 19, 2006 9:50 pm    Post subject: Re: (Not so fresh) News about locales Reply with quote

On Wed, Jul 19, 2006 at 01:12:32PM +0200, Frank Küster wrote:
Quote:
Denis Barbier <barbier@linuxfr.org> wrote:

Hi,

locales.postinst has been modified to write locale variables
into /etc/default/locale instead of /etc/environment; the
latter file is a PAM configuration file, so modifying it
was a policy violation. Most packages have been modified
accordingly, but if you have trouble with some programs,
please file bugs against them.

localeconfig.postinst does write /etc/environment, is this a bug?

If yes, which package is supposed to handle the file, then? It isn't
registered with dpkg, no other maintainer script except localeconfig's
handles it, and it isn't in /var/lib/ucf/hashfile, either.

You Cc: Progeny folks, so it looks like you believe that localeconf
is the culprit; maybe the contents of this file can shed some light.
This package is unmaintained for years, and is mostly useless nowadays.
I just filed #378941.
Thanks.

Denis


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Frank Küster
*nix forums Guru


Joined: 20 Feb 2005
Posts: 432

PostPosted: Thu Jul 20, 2006 7:20 am    Post subject: Re: (Not so fresh) News about locales Reply with quote

Denis Barbier <barbier@linuxfr.org> wrote:

Quote:
On Wed, Jul 19, 2006 at 01:12:32PM +0200, Frank Küster wrote:
Denis Barbier <barbier@linuxfr.org> wrote:

Hi,

locales.postinst has been modified to write locale variables
into /etc/default/locale instead of /etc/environment; the
latter file is a PAM configuration file, so modifying it
was a policy violation. Most packages have been modified
accordingly, but if you have trouble with some programs,
please file bugs against them.

localeconfig.postinst does write /etc/environment, is this a bug?

If yes, which package is supposed to handle the file, then? It isn't
registered with dpkg, no other maintainer script except localeconfig's
handles it, and it isn't in /var/lib/ucf/hashfile, either.

You Cc: Progeny folks, so it looks like you believe that localeconf
is the culprit; maybe the contents of this file can shed some light.
This package is unmaintained for years, and is mostly useless nowadays.
I just filed #378941.

Thank you, indeed I thought that localeconfig was wrong, but I wasn't
sure. I've written an e-mail to mia@qa.debian.org about the progeny
packages.

Anyway, my other question is not answered: Which packages does handle
/etc/environment? There must be one that creates it upon installations.

Regards, Frank

--
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
Back to top
Christian Perrier
*nix forums Guru Wannabe


Joined: 22 Mar 2005
Posts: 204

PostPosted: Thu Jul 20, 2006 5:30 pm    Post subject: Re: (Not so fresh) News about locales Reply with quote

Quote:
Anyway, my other question is not answered: Which packages does handle
/etc/environment? There must be one that creates it upon installations.


The installer..Smile...or the local admin.

More precisely localechooser's post-base-installer creates
*both* /etc/environment AND /etc/default/locale with LANG set to the
default locale and LANGUAGE set to a a list of alternatives if such a
thing exists in the localechooser reference file (actually for very
few languages, namely both Chinese flavours and Norwegian languages).

So /etc/environment doesn't technically belong to any package.
Back to top
Denis Barbier
*nix forums beginner


Joined: 22 Jul 2005
Posts: 12

PostPosted: Thu Jul 20, 2006 8:30 pm    Post subject: Re: (Not so fresh) News about locales Reply with quote

[Progeny dropped from Cc]

On Thu, Jul 20, 2006 at 09:15:13AM +0200, Frank Küster wrote:
Quote:
Denis Barbier <barbier@linuxfr.org> wrote:

On Wed, Jul 19, 2006 at 01:12:32PM +0200, Frank Küster wrote:
Denis Barbier <barbier@linuxfr.org> wrote:

Hi,

locales.postinst has been modified to write locale variables
into /etc/default/locale instead of /etc/environment; the
latter file is a PAM configuration file, so modifying it
was a policy violation. Most packages have been modified
accordingly, but if you have trouble with some programs,
please file bugs against them.

localeconfig.postinst does write /etc/environment, is this a bug?

If yes, which package is supposed to handle the file, then? It isn't
registered with dpkg, no other maintainer script except localeconfig's
handles it, and it isn't in /var/lib/ucf/hashfile, either.

You Cc: Progeny folks, so it looks like you believe that localeconf
is the culprit; maybe the contents of this file can shed some light.
This package is unmaintained for years, and is mostly useless nowadays.
I just filed #378941.

Thank you, indeed I thought that localeconfig was wrong, but I wasn't
sure. I've written an e-mail to mia@qa.debian.org about the progeny
packages.

Anyway, my other question is not answered: Which packages does handle
/etc/environment? There must be one that creates it upon installations.

This is because in your original mail, I thought that 'the file' was
referring to localeconf.postinst and not /etc/environment ;)

The latter is a PAM configuration file, so I would say that libpam-runtime
'owns' it. But this file does not have to exist, it is optional, this is
why libpam-runtime does not create it.
It used to be created by d-i when user performs an installation in a
language different than English. When the locales package have been
modified, Christian and I decided to let d-i create both files
(/etc/environment and /etc/default/locale) until most packages have
been patched. Maybe it is time to finish this transition, and modify
d-i to no more create /etc/environment, this can surely be done after
d-i beta3.

Denis


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
The time now is Thu Dec 04, 2008 4:04 am | All times are GMT
navigation Forum index » *nix » Linux » Distributions » Debian » devel
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts /etc/X11/X already customeizes on a fresh install hendrik@topoi.pooq.com Debian 2 Tue Jul 18, 2006 1:40 pm
No new posts Dr. Dobb's Python-URL! - weekly Python news and links (Ju... Craig Ringer python 1 Mon Jul 17, 2006 2:57 pm
No new posts Dr. Dobb's Python-URL! - weekly Python news and links (Ju... Craig Ringer python 0 Wed Jul 12, 2006 12:25 am
No new posts DECW archive: some (good) news Patrick MOREAU, CENA Athi VMS 0 Fri Jul 07, 2006 12:43 pm
No new posts Any news of Sue ? JF Mezei VMS 3 Wed Jul 05, 2006 8:19 am

Best Credit Cards | Loans | Home Loan | Credit Cards | Mortgage Calculator
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2719s ][ Queries: 16 (0.1263s) ][ GZIP on - Debug on ]