Re: Versioned mo file installation

From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>, Devrim GÜNDÜZ <devrim(at)commandprompt(dot)com>, Martin Pitt <mpitt(at)debian(dot)org>
Subject: Re: Versioned mo file installation
Date: 2008-12-05 14:29:56
Message-ID: 49393AE4.6020701@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Solaris currently stores messages into separate directories like
/usr/postgres/8.3/share/locale which solves multiversion problem, but it brings
another problem, because gettext on solaris needs extra directory infrastructure.

I think debians patch is good approach.

Zdenek

Peter Eisentraut napsal(a):
> One issue with packaged multiple-version installations (practiced by
> Debian, Solaris, and soon Fedora?) is that the mo files (translation
> files) should be in a fixed location like /usr/share/locale, which does
> not allow PostgreSQL-version specific subdirectories.
>
> The Debian packages solve this by appending a version number to the mo
> files themselves, as can be seen in this patch:
>
> http://bazaar.launchpad.net/~pitti/postgresql/debian-8.3/annotate/127?file_id=03gettextdomains.pat-20060925215343-vp3e1xxgtg0tzea6-45
>
>
> Solaris packaging is currently looking for a solution, and the Fedora
> initiative might as well? So I figured we could adopt something like
> the above patch as a built-in solution, as a build option or even by
> default.
>
> Comments?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-12-05 14:30:06 Re: Mostly Harmless: Welcoming our C++ friends
Previous Message Zdenek Kotala 2008-12-05 14:22:48 Re: [patch] pg_upgrade script for 8.3->8.4