From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: locales gone Date: Tue, 18 Oct 2016 14:24:51 +0200 Message-ID: <87r37dn8to.fsf@gnu.org> References: <20160925233222.33804eb3@scratchpost.org> <87vaxe5197.fsf@gnu.org> <20161008160006.04ada83c@scratchpost.org> <87oa2rgbi9.fsf@gnu.org> <20161012223733.6e95ca41@scratchpost.org> <87mvi880dk.fsf@gnu.org> <20161013223124.0a8d5712@scratchpost.org> <87insvci2p.fsf@gnu.org> <20161015102108.2fc03c6f@scratchpost.org> <87r37fe4eu.fsf@gnu.org> <20161017192419.GE31629@jasmine> 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]:39129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwTRz-0001Wu-89 for guix-devel@gnu.org; Tue, 18 Oct 2016 08:25:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwTRv-0000sU-4e for guix-devel@gnu.org; Tue, 18 Oct 2016 08:24:59 -0400 In-Reply-To: <20161017192419.GE31629@jasmine> (Leo Famulari's message of "Mon, 17 Oct 2016 15:24:19 -0400") 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" To: Leo Famulari Cc: guix-devel@gnu.org Leo Famulari skribis: > On Mon, Oct 17, 2016 at 11:00:25AM +0200, Ludovic Court=C3=A8s wrote: >> Danny Milosavljevic skribis: >>=20 >> > And if I strace postgres service I get >> > >> > [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.= 23/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such f= ile or directory) >> > [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.= 23/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) =3D 3 >> > [pid 6184] fstat(3, {st_mode=3DS_IFREG|0444, st_size=3D2997, ...}) = =3D 0 >> > [pid 6184] read(3, "# Locale name alias data base.\n#"..., 4096) =3D = 2997 >> > [pid 6184] read(3, "", 4096) =3D 0 >> > [pid 6184] close(3) =3D 0 >> > [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.= 23/lib/locale/en_US.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (N= o such file or directory) >> > [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.= 23/lib/locale/en_US.utf8/LC_COLLATE", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No= such file or directory) >> > [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.= 23/lib/locale/en_US/LC_COLLATE", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such= file or directory) >> > [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.= 23/lib/locale/en.UTF-8/LC_COLLATE", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No s= uch file or directory) >> > [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.= 23/lib/locale/en.utf8/LC_COLLATE", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No su= ch file or directory) >> > [pid 6184] open("/gnu/store/m9vxvhdj691bq1f85lpflvnhcvrdilih-glibc-2.= 23/lib/locale/en/LC_COLLATE", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such fi= le or directory) >> > >> > And indeed those don't exist. >>=20 >> Ooh, I see. To work around an issue in our glibc 2.23 package (that I >> forgot to fix in 2.24), whereby glibc does not look for locale data in >> /run/current-system/locale, commit >> ab3a64507a792e4da0527b423fbc28f8768e736a sets GUIX_LOCPATH in >> /etc/environment. > > Did commit 9f58fe3d1c not fix that issue? Oh you=E2=80=99re right, it=E2=80=99s fixed in =E2=80=98core-updates=E2=80= =99: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build -e '(@@ (gnu packages commencement) glibc-final= )' [...] /gnu/store/1qpfjj4rk11wm6ix098hqbai9wrwb24c-glibc-2.24-debug /gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24 $ strings /gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib/libc.s= o.6 | grep /run/current-system /run/current-system/locale/2.24 /run/current-system/locale/2.24/locale-archive --8<---------------cut here---------------end--------------->8--- For current master the patch might still be helpful. Thanks Leo! Ludo=E2=80=99.