From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH 0/2] Avoiding incompatible locale data in LOCPATH Date: Sun, 4 Oct 2015 10:32:14 +0200 Message-ID: <87oagfrq41.fsf@mdc-berlin.de> References: <1443736716-8578-1-git-send-email-ludo@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZieiY-0006lT-MX for guix-devel@gnu.org; Sun, 04 Oct 2015 04:32:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZieiV-0008Uk-GU for guix-devel@gnu.org; Sun, 04 Oct 2015 04:32:26 -0400 In-Reply-To: <1443736716-8578-1-git-send-email-ludo@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, beffa@ieee.org Ludovic Court=C3=A8s writes: > The first patch adds the 'GUIX_LOCPATH' environment variable, the idea = being > that on foreign distros, users could set this variable instead of 'LOCP= ATH', > and the host distro's programs wouldn't break. > > The second patch was suggested by Mark. It basically adds "/2.22" to e= very > directory name specified in LOCPATH, as well as to the default locale > directory. The idea here is that libc would only stumble on compatible > locale data. > > Actually with that second patch, I think 'GUIX_LOCPATH' is unneeded, be= cause > effectively Guix's libc would already be interpreting 'LOCPATH' differe= ntly. > So my inclination would be to apply only the second one. I think that =E2=80=98GUIX_LOCPATH=E2=80=99 would still be useful for for= eign systems using Guix as a package manager. IIUC, the default location where our libc looks for locale data is somewhere under =E2=80=98/run/current-syste= m=E2=80=99, which would have to be created on non-GuixSD systems. If only the LOCPATH patch were applied, users of non-GuixSD systems would have to make sure that =E2=80=98/run/current-system/..../2.22/=E2=80= =99 exists and points to valid locale data. With support for =E2=80=98GUIX_LOCPATH=E2=80= =99 users of this system could just install locale data into a profile and set =E2=80=98GUIX_LOCPATH=E2=80=99 accordingly without having to additionally= manage a symlink named =E2=80=98/run/current-system/.../2.22=E2=80=99. This is especially useful in shared systems where users would otherwise have to ask a system administrator to also provide this additional link so that the Guix libc default lookup location can be satisfied. But maybe I misunderstood. If so, I=E2=80=99d be happy if you could clar= ify. Thanks! ~~ Ricardo