From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QKVxIew4cmVZMAAAG6o9tA:P1 (envelope-from ) for ; Thu, 07 Dec 2023 22:28:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QKVxIew4cmVZMAAAG6o9tA (envelope-from ) for ; Thu, 07 Dec 2023 22:28:12 +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 63C5B525B9 for ; Thu, 7 Dec 2023 22:28:12 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=JbFTAK71; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701984492; 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: content-transfer-encoding:content-transfer-encoding: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=xcQhQGlYep52sSgY0hpqnUgL7dohAAtv/JtC0OVe7co=; b=V0Ux9a431UXPE27oFNZfLWnH5avo+4wrFGEKLO3A6xHCTvSz6QXtbR8X2onivzyeP23fHz p1sAFAu2XpyZo8CPzeeQN/AAGojmX6jRjGUzvmx0LzNSmNc+pnjrj3gLPZEiy61feWpEOr uJ2RhXkaDoVnoczfvNPlvv5f7VfKnbAEJD1yY4pWieXHEmBZXYKWxMHQP3s812v4yzO+8W i2RGzKZxeQYyIPaI/PXGz3Y14evLvGtLBjRbxbQbILAWQlVbkGDCGqC7Jw6X86a6EvhpVc R4j0fTE8uPIqMT7iNmc272s8o6LGWEwb94gk3lstd9N8pbP3QtoF3ie9qaWz0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701984492; a=rsa-sha256; cv=none; b=cymg+xykGF0Qp/SFrDLaxa9az+Xb8zOgFN8ZIlpYM5gwCKsvFUQ+Q4JKFeTq5ZxUkDYT1J oHd7A3W3So+gVjt/Vzt+WC4BXoZhZBko4c7nqjKKxbVEvwWD3mPtWiET1Mh11q7kURWhWY BUH9/+Abv0RsF4aw2p+rvV5NUY+AphMzgzuto23hF6+ZwtbVdUZta7iZSDyhd+yyZUrO7D qaz9g5vJpbEvD5HidToSJHRZ1OgEHE+gEyfiDgwh31U+QotXTu4W4Uk9dgTBuVFhXl7tso X0iExVvBI+5NXHhAIEYhjVEkxJab1hrEhRvdDdXdS76nuY6Hk7WlM+vcpWRuoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=JbFTAK71; dmarc=pass (policy=none) header.from=gnu.org; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBLuQ-000780-8J; Thu, 07 Dec 2023 16:27:50 -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 1rBLuP-00077r-DY for guix-patches@gnu.org; Thu, 07 Dec 2023 16:27: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 1rBLuP-0004Qy-1t for guix-patches@gnu.org; Thu, 07 Dec 2023 16:27:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBLub-0003fL-IG for guix-patches@gnu.org; Thu, 07 Dec 2023 16:28:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67686] [PATCH core-updates 4/5] gnu: glibc: Install C.UTF-8 locale. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Dec 2023 21:28:01 +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: 67686@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 67686-submit@debbugs.gnu.org id=B67686.170198443914041 (code B ref 67686); Thu, 07 Dec 2023 21:28:01 +0000 Received: (at 67686) by debbugs.gnu.org; 7 Dec 2023 21:27:19 +0000 Received: from localhost ([127.0.0.1]:43267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBLtu-0003eP-MU for submit@debbugs.gnu.org; Thu, 07 Dec 2023 16:27:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBLtl-0003e6-W4 for 67686@debbugs.gnu.org; Thu, 07 Dec 2023 16:27:18 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBLtT-0004Js-6s; Thu, 07 Dec 2023 16:26:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=xcQhQGlYep52sSgY0hpqnUgL7dohAAtv/JtC0OVe7co=; b=JbFTAK71kXvNqCzjJJP0 cyUVgE1mUtwB5ewz2a24+oMNR6tN9RZx4wD/oLVNzC3W6Rdf7KMaudvt6vAQCEwVCqh3HrQ2JdcqN uSEQN8+Cw3obyQxnvCxNEFEQW1dwQRq51olQmvYiqtDFiaPyZ38UQFx7Aii5aHk26NmNxgXKDk/fv Z42DCwle7wTgG8gEWkXZD3fSl9Vq5anKk+vxebmEynKsgYowCKDED//ZPh7ul60OzRPklnzAy7TkN SmlXYHKhDlncQGov2oGGZLTqCca6xG/XgStoQMd+zlW87IrgtsMqjFXZ+2MwgvCvKlfXOpx/7uvZn mkQqFHFLSpMbKw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87v89ae24t.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 07 Dec 2023 11:30:10 +0100") References: <3e187cf8646059a513b502a17abe9f88daae6f6b.1701943221.git.ludo@gnu.org> <87v89ae24t.fsf@gnu.org> Date: Thu, 07 Dec 2023 22:26:36 +0100 Message-ID: <87fs0dd7qr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -6.85 X-Spam-Score: -6.85 X-Migadu-Queue-Id: 63C5B525B9 X-TUID: 6Q9sZ3Bd5St+ Ludovic Court=C3=A8s skribis: > 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 ma= chine. > > I suspect libc builds an additional =E2=80=98localedef=E2=80=99 for the b= uild machine > but I=E2=80=99m not sure where it is, hmm=E2=80=A6 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. I suspect #2 was about the locale archive and not locale data, because evidence suggests that locale data is system-independent: --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--- Efraim, could you check against powerpc-linux, which is the only big-endian target we +/- support? Ludo=E2=80=99.