From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 oOPIOgaXdGUuaQEA9RJhRA:P1 (envelope-from ) for ; Sat, 09 Dec 2023 17:34:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oOPIOgaXdGUuaQEA9RJhRA (envelope-from ) for ; Sat, 09 Dec 2023 17:34:15 +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 807A45BF32 for ; Sat, 9 Dec 2023 17:34:14 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=nlGbdFOz; 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=1702139654; 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=VCKR9wG89obpt0U/P6Xhzqz6usxa1cFPOIN492VK+9w=; b=RuAaxvXy6znd0DzLeWS10jVcxV+lPWyauePYyIDD5FpNbYPjC3Gq3BJc4H9iDWXD1ki9a8 A91te3NIw1/31PnZVa9gHumBSy8Ia/kX19CcyHtYVepfNbgpcy+AwAavP5Kr+DTgKjgHxn 1ABxSOhpgr7+ResjLfYIdqFAuHT53mtp/DmcWM3wNtA6ylJgfnwBJBMXM4alewJTInYELw 0OruJQYQWBKI2RYCighQt6LThzDEOkWvQ3p48uRSlPezDgsT5u6wB01E5sxuU0v8HPK6XD eVCHNwrRWiFuVuwQF+ZaHFUVWRd7yixTv+lkyNRbWqfVG9AkVnUeo/FfA6dOVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702139654; a=rsa-sha256; cv=none; b=GnlTIcuGlfn/M/RQne7bOLkT4fXwaGgnU15d+JthWiCsJqazvB3lL2xSY2VD5/XcCyXaNv xEZKNCx6O3i+x1D6qY55G3KqSccECzxzoTYh08iALamkLt37Pj6nN4IiuKmUEiGf10jleY 8M3AujxTy4y17/oECbaQT+kTrQqdh3wVVpKiz7Ty9ad9i+NKt3tZnlh5pRxDaEpHDzWHuP QO6yX7lLaCZVsNvD4E6RD6JsvWqyeWh8tkOAkSbn9LEGZ7qMxL+VUU0n2BwAeabf5izHhn qbUYCVmQII0jDv8ZEiW17Ujt/jDt4Uba4C/FcrAta+M5DQ2DHetFLivFMr9+qA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=nlGbdFOz; 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 localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rC0H2-0005Mn-6T; Sat, 09 Dec 2023 11:33: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 1rC0Gz-0005MX-Mv for guix-patches@gnu.org; Sat, 09 Dec 2023 11:33: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 1rC0Gz-0005ee-EZ for guix-patches@gnu.org; Sat, 09 Dec 2023 11:33:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rC0HC-0007fC-Ce for guix-patches@gnu.org; Sat, 09 Dec 2023 11:34:02 -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: Sat, 09 Dec 2023 16:34:02 +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.170213962529432 (code B ref 67686); Sat, 09 Dec 2023 16:34:02 +0000 Received: (at 67686) by debbugs.gnu.org; 9 Dec 2023 16:33:45 +0000 Received: from localhost ([127.0.0.1]:48804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rC0Gv-0007ed-26 for submit@debbugs.gnu.org; Sat, 09 Dec 2023 11:33:45 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:53705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rC0Gs-0007eO-CJ for 67686@debbugs.gnu.org; Sat, 09 Dec 2023 11:33:43 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40c0e7b8a9bso40996325e9.3 for <67686@debbugs.gnu.org>; Sat, 09 Dec 2023 08:33:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702139602; x=1702744402; 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=VCKR9wG89obpt0U/P6Xhzqz6usxa1cFPOIN492VK+9w=; b=nlGbdFOzMLsZXlPDlAajXYxw66+HI2r46Do/1DBgwefNUDMXlKoruPgcXQv9IPhvH5 Ps26Jl1LH/UD1UjWe4g9QbImelABwro/Sy9PHpIpK1RfrkqAaNSzdW0EuSfWrHaw3gcS bH3U/ikSSek6PV6qBs1J0KQypsFBIIeHDlDflcRGeeW7KtqvX5TNX5ltTAXV9R8RDerc 0T80c8AUD+LFYzGuRo0jkGpb1MtlLxM/xvKZk6AsCelbjB1rGL2XnPiTXE5x9Jtmqfms EcoN6ueA9gKtVnixGCqJ4A2PSSXgguS02jdirAUuUc0F3CyTllFpOdsF0w/q+7a3BRHt NcBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702139602; x=1702744402; 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=VCKR9wG89obpt0U/P6Xhzqz6usxa1cFPOIN492VK+9w=; b=YEktZT2L1vvppq0zFLlWNejlcyuErjThUtdsNpZiD1EZYM7MQBpYfXaUt7WwlH56yo 1Z/Iieu77Mtq6WiXlYGbW5DtVEXIqcC8mkzmpwTS0Wygn7K0wr3XpX+UXzmHMpOM4ieL 6JgBa6uLf58aYdUWsgeXk9J5sgPQ06FEgrLDMh5k55ZhrJp1t2nRwsKgHBeC0FMbiMxO eZcxmsT/uRWTZcnGPnw1g8BhE5aJjfb0hQ1TAaSl29Eqfhddwdt7trUciv+SPWTFDv5P YmvL/7QYZNl0Q8H8KNqu+P773ZIkMuPbm3vwii+3jikyNoiNJc0HGvffdV3yQ8nEPTBX ruyg== X-Gm-Message-State: AOJu0YweLRkmNUdQi2ymZE/bnmv7i4aeD/NDADuUVQ5BlXpvSMs+F3Dw dCn3glZohSTKm2iha0ZdYNU= X-Google-Smtp-Source: AGHT+IFhgh0CWVFFs3im6lp1UQJxA+y2aF18tJvvZZ9yDuAUAczEiG21wjEHFIwRTldyOmgp8M9WxQ== X-Received: by 2002:a05:600c:4e0d:b0:40c:3f87:32df with SMTP id b13-20020a05600c4e0d00b0040c3f8732dfmr512597wmq.35.1702139602021; Sat, 09 Dec 2023 08:33:22 -0800 (PST) Received: from localhost ([188.120.129.233]) by smtp.gmail.com with ESMTPSA id gw18-20020a05600c851200b004053e9276easm9207831wmb.32.2023.12.09.08.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 08:33:21 -0800 (PST) Date: Sat, 9 Dec 2023 18:33:19 +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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zfAlKFmr3/Nwhl/X" Content-Disposition: inline In-Reply-To: <87fs0dd7qr.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.76 X-Spam-Score: -6.76 X-Migadu-Queue-Id: 807A45BF32 X-Migadu-Scanner: mx12.migadu.com X-TUID: pxwX88TaQx8H --zfAlKFmr3/Nwhl/X Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 07, 2023 at 10:26:36PM +0100, Ludovic Court=C3=A8s wrote: > Ludovic Court=C3=A8s skribis: >=20 > > Ludovic Court=C3=A8s skribis: > > > >> + ;; Install the C.UTF-8 locale so there's always = a UTF-8 > >> + ;; locale around. > >> + (let* ((out (assoc-ref outputs "out")) > >> + (bin (string-append out "/bin")) > >> + (locale (string-append out "/lib/locale/" > >> + ,(package-version > >> + this-package)))) > >> + (mkdir-p locale) > >> + (invoke (string-append bin "/localedef") > >> + "--no-archive" "--prefix" locale > >> + "-i" "C" "-f" "UTF-8" > >> + (string-append locale "/C.UTF-8"))))) > > > > I realize now that this cannot work when cross-compiling, because the > > this =E2=80=98localedef=E2=80=99 binary is not executable on the build = machine. > > > > I suspect libc builds an additional =E2=80=98localedef=E2=80=99 for the= build machine > > but I=E2=80=99m not sure where it is, hmm=E2=80=A6 >=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 ot= her > 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 di= ff -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. =C2=B9 https://flashner.co.il/~efraim/glibc-locales-2.35-powerpc-linux.tar.= xz --=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 --zfAlKFmr3/Nwhl/X Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmV0ls0ACgkQQarn3Mo9 g1EgRw//ZeHYQ3kRKnihrjcE4UkEfg9XFqUgqIanQfkFCa7LXaGUJsWvpbdoZoOi EkyGyMo3wNstD7BTF44jjK0Ai02crHwSAev3ubOlCDAEHGSoJLMPhVsLhmISFcBY 64cRSFy0yXNREdS/4gJs0/+M5KE5My37psPumDILaBN11gwxPw37RhBFTjUXjY60 KMH0PkNI8CyFoEkVEtbUGeoC6qgLkH9OnzrjqwyT6pvIP1a5Y4LhJxQbXrEbIbbA kKYNdb3SygTKrirLaVay2XL+UQwx8KYnoxBy2O3/kQG+fMSHb8wvmaFLFUhtMOtP dUhmcz2AJD4ctbadYEz1qrVGDhfaTliQpThxccc0v+6LytrViza+qMhoD/mi+/sS pWmvhin/3jniOxXatnTPNvWL0RkFtmHXvVJxBs4IUqRlcuSpG1cMCcWSETp8iDSh eShNOaQ1Fj4uonrcSzUlOdbt51RE29FudKkehzWPFv/CD1sQopUJLHUynAyQW9Mc +wTH796PUEiXK9OT1BH9AmkPubW+2fM/FRd5afFjJ/b7JpNKow6rvZv132UYIw1R umIDml4sMg2EphNmcSNGFzbHTZJIYD0SGYT9TV/40s3yXkzU9VyBWoWlWUT1EPok K1I57QASGLaiqAD9nq7NsYV7X4XFd/QqghT4z5jkUsQ/nci3Ih0= =EKuL -----END PGP SIGNATURE----- --zfAlKFmr3/Nwhl/X--