From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0aaLKlFiZWXf8AAAG6o9tA:P1 (envelope-from ) for ; Tue, 28 Nov 2023 04:45:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0aaLKlFiZWXf8AAAG6o9tA (envelope-from ) for ; Tue, 28 Nov 2023 04:45:21 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 28CF915651 for ; Tue, 28 Nov 2023 04:45:21 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=uiUY7Rwn; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=nOYnOiQ4; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701143121; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=BEV5whxaCJ+SE7tTOV5nairVf2Pq3O5SBK+1f90aInY=; b=KnSwT0Cu7eH+elq7Q9Ar5ustRElxxchnjwP2FeM9owTdmRTnx3Qyklv/VPrNwIbWxfHmvq a4YvjqF9YgGw/lDdzd8Xcxs9kGX+ODxn6Bpf2d8eZKPKJFe/xtZcOGqMAGH86Gvn05onTU ajKhmpu9+7lXM0iXKmFqgmcMCUDodERh3FB0DoJ1DN9PHsz7M0yo3Iafsv/f38g2M0KsRl seHffsDYVaI5pofQYrqE2PbFK9xCSeiC+k7V+FZTMLZyrQipVIc0C+Vts+N8lN8AiajtVS ACycFNoIBxWWGK9dPL0A7GKhaKGU+myoH1vIRK54BX8Ouwbo8LcJ12SZRVsaZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=uiUY7Rwn; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=nOYnOiQ4; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701143121; a=rsa-sha256; cv=none; b=Y7YT4vfUJDrJlVhi/tUSi36JzC7QF0BcfeXujQZ8eh3152HEq8OBPt1yG4Y57JEF/6MoEg ZZ1Yp98de+Lx8ECdamVcwNgUY/rsUIrepsxBGbLQHzz1sIthsQ+6jnu0JUod6qtiGwtqJB goj0AJI8S2DmhDePJOPYRmaPgqNvd2dgs4vidxlZIO0bUgsIqJLoMKhTA4rLtuNzTlTnX7 7XFK8VorcrMJKvpsf+CEclpNXms2vK3H16KCDGHmWgx4VSVK2NVLdGB8UHXWKV7x6r1P5c FWl70M81egSfqYtNNRiHkykJjdDrDCpVi9NX9m51E9Hus7+/54516r7h4X8J1w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7p1v-0006qW-L9; Mon, 27 Nov 2023 22:44:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7p1s-0006pw-NP for bug-guix@gnu.org; Mon, 27 Nov 2023 22:44:57 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7p1s-0003bo-FN for bug-guix@gnu.org; Mon, 27 Nov 2023 22:44:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7p1y-0002L3-MO for bug-guix@gnu.org; Mon, 27 Nov 2023 22:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#67044: C.utf8 locale cannot be built Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 28 Nov 2023 03:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67044 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 67044@debbugs.gnu.org Received: via spool by 67044-submit@debbugs.gnu.org id=B67044.17011430458884 (code B ref 67044); Tue, 28 Nov 2023 03:45:02 +0000 Received: (at 67044) by debbugs.gnu.org; 28 Nov 2023 03:44:05 +0000 Received: from localhost ([127.0.0.1]:45176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7p12-0002JB-F2 for submit@debbugs.gnu.org; Mon, 27 Nov 2023 22:44:05 -0500 Received: from wolfsden.cz ([37.205.8.62]:48130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7mo8-0006oT-Rf for 67044@debbugs.gnu.org; Mon, 27 Nov 2023 20:22:38 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 57DE625F4A7; Tue, 28 Nov 2023 01:22:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1701134548; bh=ebSEsK0hYnXZNTitfFzZWzPHc/QUBswhTai96wBEeio=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=uiUY7RwnZJDDcRqnfhKstRHkpk6mHBrCa5BfiTRXRiMtfk2Kam8ExTGtAWtPNoD9I vQBk6WCm0ezYcs2uWLhoe09zEjVMuLALY/zx76phqX4F1503cvaACOy9LE9puggRZ2 SpIp07j4o5QztYT3vzHuxF107SrgzNnRPRPjChUNGs/6+TnljjYonTm6cNd1kqLPXd V1TZS/xH7BfWGD8KezFPHshSQT8HqWvHyBKSgb5xOHrPbaS3PJ2pb1gXrGo+Xt1r7F Spz2PAqf+ibSUfjVA/I/ffs9Yd705hD8AIMUyoVsFLuw2ns+tpxelWlEdPfDLQv/ck ga7xdsOZ27GFqBPYHLx8XwFk5ee8GrgBy7zpeXav36UpI/PxcQXAtc2XY8h606fRt1 AQ9WK6G8+XzFe0rlM2o5/rGmwVawfO+HLc88e9MSshYl8OkBqtVW0NwomV+qXeRYbh Bi6IIRKtbDnOtaC86l3/ARr7JlmyAqEfV3ccR5NEOowbnn06xgyZ892ZIRsjLS+Rzs //vfVaouED5CAjwtpRVsXMBltDHefHZZXqF4UtNwi/4WYNojtfwpHULQr3t7ZJdAPE EVVW+1caMN69SFp7G2bbmTjqWk5tLXVv9jkvdEbVRPm3N3dZrgXJ6RObbofCvFyZzd KKex6G9UgJ/WjHJGUHRXR8p0= Received: from localhost (unknown [193.32.127.136]) by wolfsden.cz (Postfix) with ESMTPSA id 671B525E1F6; Tue, 28 Nov 2023 01:22:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1701134547; bh=ebSEsK0hYnXZNTitfFzZWzPHc/QUBswhTai96wBEeio=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=nOYnOiQ4wcDK1s/pXBQb1Uddh9fQXzBs8tXyS5vMOjtvBBsnaGnlYD3w7pCh2Tgn4 k7BXBimj3Pe2P174EffsxZeeGVqdLJFc0kRQcMcN2mK/p5UtS0aa3GQfL9N4lhXkE0 WOqudDInGE1c6myzBZggA3xaWA5gozqsY3dilObZwjUjwJoWhneacHFtCwikyTRoZk zwnHtsmrg4X9q0W0u6Lo1EX4umr1ta2ByH0QvkoCBgWvGZnyBSR5hPfDdTrqlgWF60 egPSGU/MnWYb0Q1hxFofywpNahXKxOpDpfSWrY00NO+m1tYteKgnx8jdnxuWtE7PBH z2xizp4yfts8Yyr68eYv+hEwQcCA+sBUWi524LD23TJ0S2EGXQAUnkQaOAqhxt6FQf knpCB3Zc2MsZxGZjSDDGDL76v7jxUrSICkWHJ5x2b8eUPhXwZ2BE+3/2WgpX3SEod9 AvJSwTP8kSDGLEUVdccD3fUQmzALs6XIhKDjDG4wcEPIYQzTpMxlGKxEYtnB8RRcKX 3l1t81cuZdx332rBDGfpCLBjMP4Q8klphCyX2mOpqUIfL/aYg8A6DIAcbD7cTDdcNG BbklOQU9wZd1dkYAykyeg4s8xKYHWnzyX7KAaHcwf32DI0053NdIKcNYShrGeyosg4 lGGmhZuOjXaZ6rH3tTf0+NzQ= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id f31e5683; Tue, 28 Nov 2023 01:22:26 +0000 (UTC) Date: Tue, 28 Nov 2023 02:22:26 +0100 From: Tomas Volf <~@wolfsden.cz> Message-ID: References: <87bkbex3bh.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="f9JAAyI27Xq6Kzpr" Content-Disposition: inline In-Reply-To: <87bkbex3bh.fsf@gnu.org> X-Mailman-Approved-At: Mon, 27 Nov 2023 22:44:02 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 28CF915651 X-Spam-Score: -6.63 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.63 X-TUID: vNCDWawTMhwB --f9JAAyI27Xq6Kzpr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-11-27 23:02:26 +0100, Ludovic Court=C3=A8s wrote: > Hi Tomas! Hi! :) >=20 > Tomas Volf <~@wolfsden.cz> skribis: >=20 > > when trying to build a system with C.utf8 locale, I end up with the fol= lowing > > error: > > > > building /gnu/store/v6jma6kmwywr509n4y0vypchnh4y5s3m-locale-2.35.dr= v... > > building locale 'C.utf8'... > > [error] LC_MONETARY: value for field `mon_decimal_point' must not b= e an empty string > > [error] no output file produced because errors were issued >=20 > [...] >=20 > > This seems to be a known problem in 2.35, > > https://sourceware.org/bugzilla/show_bug.cgi?id=3D28861 . On the page = there is > > also a workaround, and that is to compile with the locales with -c. > > > > So that would be one solution until we update to 2.36 or higher. I do = not see a > > way to override this (add the -c) from the operating-system definition. >=20 > We could/should fix this in (gnu system locale). That is currently not possible I am afraid, since %default-locale-definitio= ns is global, not per-version, and glibc-2.33 is installed by default. >=20 > Now, it would also be nice if C.utf8 were built-in, shipped with the > =E2=80=98glibc=E2=80=99 package we have (to me that=E2=80=99s the whole p= oint of C.utf8). We > should fix that now in =E2=80=98core-updates=E2=80=99. Ideas on how to d= o that? After short research, I do have an idea. My knowledge of Guix's internals = is not good enough (yet? :)) to implement it though. And I am not even sure it should be done. Anyway here it goes: 1. Add a phase after 'install that builds and installs the C.utf8 locale, as documented here[0]. 2. Make glibc package add the directory into GUIX_LOCPATH. Since it accept= s : separated directories, it should be possible, however I am unsure how. I think that should do it. However, I am not sure what the benefit would b= e. The base locale is C, anything else (like C.utf8) is extra, and user needs = to modify LANG to get it working anyway. So installing it via the glibc-local= es seems fine enough. In my opinion, the correct long-term approach here is to just add C.utf8 in= to %default-locale-definitions. That however cannot be done until glibc-2.33 = is dropped from %default-locale-libcs. For the time being however, using C.utf8 is solvable[1] from the operating-system definition, with the exception of compiling the locale. A= bout which is this issue and the fix is trivial[2]. I am not sure this issue is worth overthinking it. 0: https://www.gnu.org/software/libc/manual/html_node/Running-make-install.= html 1: https://emacs.ch/@graywolf/111404592336140803 2: https://git.sr.ht/~graywolf/guix/commit/1e94b59a7b27d44435f321083a01242b= df16c566 Let me know what you think :) Tomas --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --f9JAAyI27Xq6Kzpr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmVlQNIACgkQL7/ufbZ/ wan0AQ/+OHiwyDN13D0zAWS2o0MkFfs3bxt3ayWWNZE4QSvlWoYXnIlZnB56qREq JKbfEc3ujuFZRrwIwhJ3cDQR3yr2edoIAZVv2VLPAR1BjUbeVe5Wm0MJxDvlSLr6 dNQqJEL8NIHMN2COWzQbyxPHP5eREDFgAW5JdB3UXiVVI4LRYwogD92kZO0x6Uj3 T21Ndqu7B1qOHWAOXdnwOqqvjUFoHxR/WF94PNs89CDKHdcR5vM9GJ2QM1y6CjXb +S6PPO/v6O1x+rCMo+BbLHTiSitObwVhY5fQ9iVXqUcGAqKaQaqhd80vAELjzBYj SFsxZb9JPPbabuYDrmQqVnmKbKsa7HqTbH2NzQFAU+n5ig4NytMDUuG8EFGXip71 n+9gmyc6/sHTDIxk0sRrBRwGmKmIFTl8GgcVFWADaQsVvvd1RtfVIweCSlabfwfY vgBLqlvjHrP6Pzo9n3j+c84kwvkRCoR/Xs2VJEpVnkl1jy8bKiMTAjcZaX8MWcI7 vIcINUh0AG8vQtcrBPiV3ubURm8qgjhfMh0JquJKkge29CrAGXtAGG1vh0t/nqow S+RTYKIhuSrGC6nUdGvI3ISXwflGp/hEnMdq7UgXvuk9zqoRQiKiZ7RET8snHguB bm6YGKvbumIqMER9aPQUL1JwRGCxTtp1MLTaSCY7V41oVwXtnQA= =+I50 -----END PGP SIGNATURE----- --f9JAAyI27Xq6Kzpr--