From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Subject: bug#30185: [PATCH] [core-updates] Put locales where libc will find them Date: Sat, 20 Jan 2018 22:45:28 +0100 Message-ID: References: <87po64ql7j.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c042a969309fb05633c1dc1" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ed0xi-0005Wa-4c for bug-guix@gnu.org; Sat, 20 Jan 2018 16:46:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ed0xf-0007fK-1t for bug-guix@gnu.org; Sat, 20 Jan 2018 16:46:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56729) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ed0xe-0007fC-Tw for bug-guix@gnu.org; Sat, 20 Jan 2018 16:46:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ed0xe-0000tw-H0 for bug-guix@gnu.org; Sat, 20 Jan 2018 16:46:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87po64ql7j.fsf@netris.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Mark H Weaver Cc: 30185@debbugs.gnu.org --94eb2c042a969309fb05633c1dc1 Content-Type: text/plain; charset="UTF-8" I remember having a similar issue, and a patch was included to look for locales in version major+minor instead of the whole version string. This was tacked at: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29537 I think this might be relevant to this. 2018-01-20 22:22 GMT+01:00 Mark H Weaver : > On my mips64el-linux GuixSD system, now updated to something close to > core-updates (but with binutils-2.25.1), guile prints this warning: > > guile: warning: failed to install locale > > and 'locale' prints: > > mhw@yeeloong ~$ locale > locale: Cannot set LC_CTYPE to default locale: No such file or directory > locale: Cannot set LC_MESSAGES to default locale: No such file or > directory > locale: Cannot set LC_ALL to default locale: No such file or directory > LANG=en_US.utf8 > LC_CTYPE="en_US.utf8" > LC_NUMERIC="en_US.utf8" > [...] > > strace shows attempts to open files in /run/current-system/locale/2.26, > which was not included in my built system. Instead I have: > > /run/current-system/locale/2.26.105-g0890d5379c > > This matches the version field of our 'glibc' package in core-updates, > but it's not where libc is looking. > > I've attached a patch that fixes the problem for me. > What do you think? > > Mark > > --94eb2c042a969309fb05633c1dc1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I remember having a similar issue, and a patch was include= d to look for locales in version major+minor instead of the whole version s= tring.

I think this might be relevant to this.<= /div>

2018-0= 1-20 22:22 GMT+01:00 Mark H Weaver <mhw@netris.org>:
On my mips64el-linux GuixSD system, now updated to = something close to
core-updates (but with binutils-2.25.1), guile prints this warning:

=C2=A0 guile: warning: failed to install locale

and 'locale' prints:

=C2=A0 mhw@yeeloong ~$ locale
=C2=A0 locale: Cannot set LC_CTYPE to default locale: No such file or direc= tory
=C2=A0 locale: Cannot set LC_MESSAGES to default locale: No such file or di= rectory
=C2=A0 locale: Cannot set LC_ALL to default locale: No such file or directo= ry
=C2=A0 LANG=3Den_US.utf8
=C2=A0 LC_CTYPE=3D"en_US.utf8"
=C2=A0 LC_NUMERIC=3D"en_US.utf8"
=C2=A0 [...]

strace shows attempts to open files in /run/current-system/locale/2.26= ,
which was not included in my built system.=C2=A0 Instead I have:

=C2=A0 /run/current-system/locale/2.26.105-g0890d5379c

This matches the version field of our 'glibc' package in core-updat= es,
but it's not where libc is looking.

I've attached a patch that fixes the problem for me.
What do you think?

=C2=A0 =C2=A0 =C2=A0 Mark


--94eb2c042a969309fb05633c1dc1--