From unknown Sat Aug 16 11:11:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30185 <30185@debbugs.gnu.org> To: bug#30185 <30185@debbugs.gnu.org> Subject: Status: [PATCH] [core-updates] Put locales where libc will find them Reply-To: bug#30185 <30185@debbugs.gnu.org> Date: Sat, 16 Aug 2025 18:11:43 +0000 retitle 30185 [PATCH] [core-updates] Put locales where libc will find them reassign 30185 guix submitter 30185 Mark H Weaver severity 30185 normal tag 30185 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 20 16:25:24 2018 Received: (at submit) by debbugs.gnu.org; 20 Jan 2018 21:25:24 +0000 Received: from localhost ([127.0.0.1]:36366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ed0dg-0000LU-97 for submit@debbugs.gnu.org; Sat, 20 Jan 2018 16:25:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ed0dd-0000LB-8g for submit@debbugs.gnu.org; Sat, 20 Jan 2018 16:25:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ed0dW-0007Qb-Tu for submit@debbugs.gnu.org; Sat, 20 Jan 2018 16:25:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55000) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ed0dW-0007QC-Hy for submit@debbugs.gnu.org; Sat, 20 Jan 2018 16:25:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ed0dV-0001Vm-5Y for bug-guix@gnu.org; Sat, 20 Jan 2018 16:25:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ed0dS-0007J1-1H for bug-guix@gnu.org; Sat, 20 Jan 2018 16:25:13 -0500 Received: from world.peace.net ([50.252.239.5]:46696) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ed0dR-0007IX-RU for bug-guix@gnu.org; Sat, 20 Jan 2018 16:25:09 -0500 Received: from [98.216.255.118] (helo=yeeloong) by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ed0dP-0002Xn-Rh; Sat, 20 Jan 2018 16:25:08 -0500 From: Mark H Weaver To: bug-guix@gnu.org Subject: [PATCH] [core-updates] Put locales where libc will find them Date: Sat, 20 Jan 2018 16:22:40 -0500 Message-ID: <87po64ql7j.fsf@netris.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-system-Put-locales-where-libc-will-find-them.patch Content-Transfer-Encoding: quoted-printable Content-Description: [PATCH] system: Put locales where libc will find them >From cb343d623d31e0687725d37c8585b440ec5144ec Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Sat, 20 Jan 2018 01:57:07 -0500 Subject: [PATCH] system: Put locales where libc will find them. * gnu/system/locale.scm (localedef-command, single-locale-directory): Use o= nly the major+minor part of the libc version number in the locale directory nam= e. --- gnu/system/locale.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gnu/system/locale.scm b/gnu/system/locale.scm index 75cb855b5..75417f669 100644 --- a/gnu/system/locale.scm +++ b/gnu/system/locale.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2014, 2015, 2016, 2017 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2018 Mark H Weaver ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,6 +22,7 @@ #:use-module (guix store) #:use-module (guix records) #:use-module (guix packages) + #:use-module (guix utils) #:use-module (gnu packages base) #:use-module (gnu packages compression) #:use-module (srfi srfi-26) @@ -90,9 +92,9 @@ or #f on failure." "--no-archive" "--prefix" #$output "-i" #$(locale-definition-source locale) "-f" #$(locale-definition-charset locale) - (string-append #$output "/" - #$(package-version libc) "/" - #$(locale-definition-name locale)))))) + (string-append #$output "/" #$(version-major+minor + (package-version libc= )) + "/" #$(locale-definition-name locale)= ))))) =20 (define* (single-locale-directory locales #:key (libc (canonical-package glibc))) @@ -102,7 +104,7 @@ Because locale data formats are incompatible when switc= hing from one libc to another, locale data is put in a sub-directory named after the 'version' f= ield of LIBC." (define version - (package-version libc)) + (version-major+minor (package-version libc))) =20 (define build #~(begin --=20 2.16.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 20 16:45:37 2018 Received: (at 30185) by debbugs.gnu.org; 20 Jan 2018 21:45:37 +0000 Received: from localhost ([127.0.0.1]:36393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ed0xF-0000t5-11 for submit@debbugs.gnu.org; Sat, 20 Jan 2018 16:45:37 -0500 Received: from mail-it0-f46.google.com ([209.85.214.46]:45843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ed0xC-0000sq-Qr for 30185@debbugs.gnu.org; Sat, 20 Jan 2018 16:45:35 -0500 Received: by mail-it0-f46.google.com with SMTP id x42so5928652ita.4 for <30185@debbugs.gnu.org>; Sat, 20 Jan 2018 13:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VoQI6kWhUqNxZZizaZBBOXNXfr6WI/9/Dtle1Qstm74=; b=ELhDjzH1eoSKtz6biGXgqUIBq6Yx4rG/EWLCS2DTDHW1UJ5s7Q1ehkE1a3bWFvUm7P 1t3qCE4AXsMhncEz3XVcJ2/KLnUyEFJVgfAeXbFwdqwQfU2prlCa0FuSpfIQIzQl0TGo N1lrW5Vmz74kxecIgLewrhve0d47LEf3oDbOjb/VqgbIMWRnbmCycFvZlJcts+Cy8bva +qgM3M5m5Owuon5cXDTD9HaBky8hDpUMxYxueNRyjALdNqisCZ6B9d5Lvp8lnZFYEgU7 sJAmT2ztCNN06QoXofccsFIdJZn4H3+PXvq51ZSowaZhHtPYLChwZIsObOhIL27ggbnW zOqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VoQI6kWhUqNxZZizaZBBOXNXfr6WI/9/Dtle1Qstm74=; b=WWNlRaSowOEXnb2Jt4rLXv8+M/DzN/dA3nqthenL7f7reHtkNJXFKbnNxJey/cOYTD 6UXyQK/uCB98GXtDok15hhgDYWzYTeibMtGbiMXHoPdBKeinug8Le0lw05ctks2DdU24 HYPpZ20kY4HU7mn28iG6GWwrLedihLUz0PTYhp+rl3x3Qeul/E/z+PTuTMg+ryO9zRD0 Zgvt7R3yu9OR4FG2sN7g0FopV/29oqFYeTBU/T1G834KF2TteZKcbdmGorRcsb0n69js B9z3ULrykCNHCAMRj0JdiR6eOLLAHLE9VJ5PP5s29FZOMred8Xrka1mKpbNlfYV23xba IiBQ== X-Gm-Message-State: AKwxyte5MYbCMclMoz+yvr2mTpJRqV4NPFUNI5MBU3PLtF1+epE0NyzI 0RUBwGvpT/Wnog7UUvp34YT+anShsHRxZacohqgj7nM= X-Google-Smtp-Source: AH8x227RL1mweMr8hhXS0HE5Xq3EJftGe2zlbTGmGFMSzDu/H4F2cBvzh2dmk5hg7xFwDN26tJ8AppGsdef7KpN1J20= X-Received: by 10.36.237.15 with SMTP id r15mr2845344ith.40.1516484728915; Sat, 20 Jan 2018 13:45:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.197.4 with HTTP; Sat, 20 Jan 2018 13:45:28 -0800 (PST) In-Reply-To: <87po64ql7j.fsf@netris.org> References: <87po64ql7j.fsf@netris.org> From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Date: Sat, 20 Jan 2018 22:45:28 +0100 Message-ID: Subject: Re: bug#30185: [PATCH] [core-updates] Put locales where libc will find them To: Mark H Weaver Content-Type: multipart/alternative; boundary="94eb2c042a969309fb05633c1dc1" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30185 Cc: 30185@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --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-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 24 09:34:56 2018 Received: (at 30185) by debbugs.gnu.org; 24 Jan 2018 14:34:56 +0000 Received: from localhost ([127.0.0.1]:40488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeM8e-0006P1-5k for submit@debbugs.gnu.org; Wed, 24 Jan 2018 09:34:56 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:49392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeM8c-0006Oq-4e for 30185@debbugs.gnu.org; Wed, 24 Jan 2018 09:34:54 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 2A37D10448; Wed, 24 Jan 2018 15:34:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W9SlHBgX9UgA; Wed, 24 Jan 2018 15:34:52 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 791059F02; Wed, 24 Jan 2018 15:34:52 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Mark H Weaver Subject: Re: bug#30185: [PATCH] [core-updates] Put locales where libc will find them References: <87po64ql7j.fsf@netris.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 =?utf-8?Q?Pluvi=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 24 Jan 2018 15:34:52 +0100 In-Reply-To: <87po64ql7j.fsf@netris.org> (Mark H. Weaver's message of "Sat, 20 Jan 2018 16:22:40 -0500") Message-ID: <87o9ljz5o3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30185 Cc: 30185@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Mark H Weaver skribis: > From cb343d623d31e0687725d37c8585b440ec5144ec Mon Sep 17 00:00:00 2001 > From: Mark H Weaver > Date: Sat, 20 Jan 2018 01:57:07 -0500 > Subject: [PATCH] system: Put locales where libc will find them. > > * gnu/system/locale.scm (localedef-command, single-locale-directory): Use= only > the major+minor part of the libc version number in the locale directory n= ame. Good catch, go for it! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 24 18:33:22 2018 Received: (at 30185-done) by debbugs.gnu.org; 24 Jan 2018 23:33:22 +0000 Received: from localhost ([127.0.0.1]:41530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeUXh-0002fT-PT for submit@debbugs.gnu.org; Wed, 24 Jan 2018 18:33:21 -0500 Received: from world.peace.net ([50.252.239.5]:34126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeUXg-0002fF-7r for 30185-done@debbugs.gnu.org; Wed, 24 Jan 2018 18:33:20 -0500 Received: from pool-72-93-27-251.bstnma.east.verizon.net ([72.93.27.251] helo=jojen) by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eeUXa-0007YO-8Q; Wed, 24 Jan 2018 18:33:14 -0500 From: Mark H Weaver To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#30185: [PATCH] [core-updates] Put locales where libc will find them References: <87po64ql7j.fsf@netris.org> <87o9ljz5o3.fsf@gnu.org> Date: Wed, 24 Jan 2018 18:32:43 -0500 In-Reply-To: <87o9ljz5o3.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 24 Jan 2018 15:34:52 +0100") Message-ID: <87efmeltno.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30185-done Cc: 30185-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mark H Weaver skribis: > >> * gnu/system/locale.scm (localedef-command, single-locale-directory): Us= e only >> the major+minor part of the libc version number in the locale directory = name. > > Good catch, go for it! Pushed as commit 6d5a65de7fba53ca1160844550d261f540f110e1 on core-updates. I'm closing this bug now. Thanks, Mark From unknown Sat Aug 16 11:11:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 22 Feb 2018 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator