From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id EJmAJt1ndWXxzwAAG6o9tA:P1 (envelope-from ) for ; Sun, 10 Dec 2023 08:25:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EJmAJt1ndWXxzwAAG6o9tA (envelope-from ) for ; Sun, 10 Dec 2023 08:25:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Tj1ZBeUX; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702193117; 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=r32FZZdI5xUcOA9jIICrvAK7iSWm2k3oSy1EbzhyyQk=; b=UZ9qk7YXQ/mf0BvrL/zeSR4ByW8mEALurEaa33CrGU4ygt6M2OnuyFA+A7NgdC7mwSqxgh mONd/FPdcM+4NpkDdRhsmav0NanJ+Z9ERtIMJRbbxB7ATuvXIddQzdHRR0EnKlbFUdSycy Bi51L43f53mXbBuVzXV+wp2VkzH8Wm86K46AG/xA6/t//OLRsZGGMym2TfyDhWhEcJE06V s0auKNhYkxClwaDWcEQxvog9tzq1wF0ISRtCYa+TTQfXBar+aZABbhO6wgsuiDwOTzNHgF e8UC2qQMRnIeA9J5NjMcF35vPuZiRe4lW1rVsF2quQWigylCMvtvimQbHw0M1Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702193117; a=rsa-sha256; cv=none; b=oGA6yRNSi4xs95Ief+b7+Qz7u32Zfdfl61MoCQjcWbK3H9aTDCkYTLdeTKv5L9hxBz8QFJ SrT6RV0l6UB8w5zy8ILU26S+x/JLPVMOqN9/yhnsqaaKzO5HzNL0O2YY7E0Vg5FTG63wDd 8tHYea1OeIrMTTwShyhYfVm37fJ5Md79govkoD3YEkF2ZpgujR3yFc6UOhWazki7SqajKc ZddAsBl0fzZxY7eWqGSyTpnViz4BQAHP6WNDmLHEWPguX8pOouCk3AYsg+GQXtaSYONGcH ti9OxLqjIVrVfqpd06hrSrJI8ak0xmCkmn4iPnJgToyensHalaQrSoYkMLRq+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Tj1ZBeUX; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none 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 36B54231A5 for ; Sun, 10 Dec 2023 08:25:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCEBI-0008Iu-6S; Sun, 10 Dec 2023 02:24:52 -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 1rCEBF-0008I4-SV for guix-patches@gnu.org; Sun, 10 Dec 2023 02:24:49 -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 1rCEBF-0007UJ-KA for guix-patches@gnu.org; Sun, 10 Dec 2023 02:24:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rCEBT-00014y-KF for guix-patches@gnu.org; Sun, 10 Dec 2023 02:25:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67686] [PATCH core-updates 4/5] gnu: glibc: Install C.UTF-8 locale. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 Dec 2023 07:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67686 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 67686@debbugs.gnu.org Received: via spool by 67686-submit@debbugs.gnu.org id=B67686.17021930694024 (code B ref 67686); Sun, 10 Dec 2023 07:25:03 +0000 Received: (at 67686) by debbugs.gnu.org; 10 Dec 2023 07:24:29 +0000 Received: from localhost ([127.0.0.1]:49391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCEAu-00012q-QU for submit@debbugs.gnu.org; Sun, 10 Dec 2023 02:24:29 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:42022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCEAq-00012X-G9 for 67686@debbugs.gnu.org; Sun, 10 Dec 2023 02:24:26 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40c38e292c8so6963855e9.0 for <67686@debbugs.gnu.org>; Sat, 09 Dec 2023 23:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702193044; x=1702797844; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=r32FZZdI5xUcOA9jIICrvAK7iSWm2k3oSy1EbzhyyQk=; b=Tj1ZBeUXEKsFn0SiQkMrJYF8wo6P9qbhQFWBIrhH7y9pRYJwXazMaIkxORB2Bwsit7 Men+5ygo3Sxk4OUyKkeHFdaH3hm0U2jUyFNGKmmt/VPezdd3k4TcT3w4vO8FXFI4zmbA 7o0WEYqJW49klCD7Nyf54cX2t0a5VZ6ltP7grf7OmR9AlC9APN/8UxnZQqCciLlCj0K2 MIncfbniNDeUPoQDvvEeoQDgBDQob4tHDkQJVEMOf9gE3bGMoz2Lvp8fkVh4O2M0rGfX bW0cmS1+MvipuNGUrerQM2KBMglk3k0YE/v1W2sLC/NzsUBYAjOkGf6SACCpqVJIEWDr jokA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702193044; x=1702797844; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=r32FZZdI5xUcOA9jIICrvAK7iSWm2k3oSy1EbzhyyQk=; b=CVSD0aQRw6oRGJviZOEyLOLN28hGHrEeZDKVIPCQWczQO7WDpS3H76Y2wjB+259vPV WYv9DjjM1GO9If1W1IfyJ7zchw2+dOpBKy5CtM3zvuwzqvlWKp38OQySZrS6XmYDi0xS fV7KswogM+OChGwncIy2gx1FggyIRUrJCpg5qGEQ6eZonYdaytnJZMdJ4dIYBIUeaUZs eYCh1ffYGcMlQlHjG1Wl1h41KT80wDBxvyzrveDJFiDVvryMUGkBhomOgQKSUm5ueISE 7bPIazXyO22MxljllPIv5FRlLDViVWwXiuiBCBaHBdl5Ow9tmbwCvvGuOagI0D4Orlad wZgg== X-Gm-Message-State: AOJu0YzLq+QogFzfctWbCEKAa8J5u+0Nw3AH5P5UBmLNumh9HnDd/Ddv ODboue+m6bENAm6RvFxq/x8vfc6uyvoxKg== X-Google-Smtp-Source: AGHT+IGG2ckTAmIfVW8IkfFF8BqV/rbtPdik9I5O5w8rbrp2SpNdl++NDVrHkkLsDjsu/jfZP2DWBw== X-Received: by 2002:a05:600c:1ca9:b0:40b:5e26:236e with SMTP id k41-20020a05600c1ca900b0040b5e26236emr1368218wms.31.1702193044362; Sat, 09 Dec 2023 23:24:04 -0800 (PST) Received: from localhost ([188.120.129.233]) by smtp.gmail.com with ESMTPSA id h14-20020a5d548e000000b003333fbb68c7sm5704940wrv.112.2023.12.09.23.24.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 23:24:03 -0800 (PST) Date: Sun, 10 Dec 2023 09:24:01 +0200 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 67686@debbugs.gnu.org References: <3e187cf8646059a513b502a17abe9f88daae6f6b.1701943221.git.ludo@gnu.org> <87v89ae24t.fsf@gnu.org> <87fs0dd7qr.fsf@gnu.org> <87v8973vfu.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mZgCcSvEs3UffgN6" Content-Disposition: inline In-Reply-To: <87v8973vfu.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.77 X-Spam-Score: -6.77 X-Migadu-Queue-Id: 36B54231A5 X-Migadu-Scanner: mx12.migadu.com X-TUID: 1mulIh55dVrd --mZgCcSvEs3UffgN6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 09, 2023 at 10:41:41PM +0100, Ludovic Court=C3=A8s wrote: > Hello! >=20 > Efraim Flashner skribis: >=20 > > On Thu, Dec 07, 2023 at 10:26:36PM +0100, Ludovic Court=C3=A8s wrote: >=20 > [...] >=20 > >> I was told on #glibc that (1) there=E2=80=99s no =E2=80=98localedef=E2= =80=99 for the build > >> machine produced during cross-compilation, and (2) that more generally, > >> there=E2=80=99s no way to cross-build locale data, that endianness and= other > >> things may matter. > >>=20 > >> I suspect #2 was about the locale archive and not locale data, because > >> evidence suggests that locale data is system-independent: > >>=20 > >> --8<---------------cut here---------------start------------->8--- > >> $ for s in aarch64-linux powerpc64le-linux armhf-linux i686-linux ; do= diff -r $(guix build glibc-locales@2.35) $(guix build glibc-locales@2.35 -= s "$s") && echo "$s same as x86_64-linux" ; done > >> aarch64-linux same as x86_64-linux > >> powerpc64le-linux same as x86_64-linux > >> armhf-linux same as x86_64-linux > >> i686-linux same as x86_64-linux > >> $ guix describe > >> guix 6e2dd51 > >> repository URL: https://git.savannah.gnu.org/git/guix.git > >> branch: master > >> commit: 6e2dd51df5f3f51e9056dd4f2e1b036195ab3caa > >> --8<---------------cut here---------------end--------------->8--- > >>=20 > >> Efraim, could you check against powerpc-linux, which is the only > >> big-endian target we +/- support? > > > > I found a difference in almost every file. The tarball of the locales > > was too big to attach so I've uploaded it here=C2=B9. Looking at it in > > diffoscope it looked like most of the data that looked human readable > > was the same, but there was some endian switching with the other data > > bits. So without actually checking other big endian systems it looks > > like we could set target #f for the locales, but for those that share > > their endianness. >=20 > OK, interesting, thanks for checking! >=20 > So we won=E2=80=99t be able to reliably provide C.UTF-8 in cross-compiled= libcs. > Maybe not a big problem, but it does mean that cross-compiled code will > be =E2=80=9Cless capable=E2=80=9D because of that. We should be able to create some monstrosity of a #:target field to say that within an endianness group target is #f but otherwise is (%current-target-system). Should work for all the locale generators actually. untested: (if (and (target-little-endian? (%current-system)) (target-little-endian? (%current-target-system))) #f (%current-target-system)) Although if we are going to rely on target-little-endian we might want to define that field in (guix platform) too so we don't assign an endianness to 8-bit controllers or embedded systems. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --mZgCcSvEs3UffgN6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmV1Z44ACgkQQarn3Mo9 g1Ev3g/+Myw2kbuk2L6bmmXiwCdrKBmnVrUfqptfFVO2tjCLWDZVy4Oatf5mFyID nhiMm5zBSKGVpCtQ2MWgSn8gNsOj9V/z0ITOoaoyzNQfPdG7tCPycYQwd43a/uOg 2SUKxKx4K+L1+apfKFU1v3jZAa/BXukmjQFCzBbe6RsOjsEX7KUKeU+fjQWjkmDO n3s9gWtmuntMdvBaoGd02HZV70j85q0KJKEpC+Ac1CDiGWlBYx+LTs9a3BxlIB0d VF9F8M7JMzVhkE4VuI9PCLcXgTo2IXRxakqhpDA4eD1IIjN8Shy2Yx3Uy3A8tAkq pQVBmlE4L+PrvEVmsPYRpt2iYKrx7yg7Sux1I/Hqw7HBzVYyuN6mPAq8XFMfneVE 44BC3GL9zcG1DIxBarcrrxnbaXQXhoaayA8yZol6fOPFd7V+zw51zyO6h1yHfjck VSPjq2DSs42+tKWdfnHK6XOFZDmRU8ZDTm218fTT+yfm3XRSahE7+5ql6d4UBeJ9 WWhljWRtVPZZg+/3rM0O/7PM0svKyoEdhNNoXZ4luhgpISe7V0itw/PdqvkDHtX3 QLSi1l5vcMxXkbU9xvkF8+a0A+xXjRNUVbV1Wf/YUZd1qKomQm4TPi67sIVg56EA fC7BTLZ0CCM4Wc26FXak+KgRRgU3Lfg2avWtWuQcn8Ujslwwz/g= =e6cb -----END PGP SIGNATURE----- --mZgCcSvEs3UffgN6--