From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id AG27BEidcWUoogAAG6o9tA:P1 (envelope-from ) for ; Thu, 07 Dec 2023 11:24:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AG27BEidcWUoogAAG6o9tA (envelope-from ) for ; Thu, 07 Dec 2023 11:24:08 +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 D1FDA42DB8 for ; Thu, 7 Dec 2023 11:24:07 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=e4O91J0q; 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-Seal: i=1; s=key1; d=yhetil.org; t=1701944647; a=rsa-sha256; cv=none; b=tdS+hC2vHJ8moQnDR27c0D3TRFnQfv5DBcA1yiWM4sRFQtkHQ5nZPEqbEtTP1ZtGn7tbYZ 5r1dOxXFTe7FcmZ6nAh7hElDecDiX9sufO97W/wNx7Ax4mjBNQNUeylVfkRTIwWYhId7Po QhBAphjWo+28vouW0lu9klu+VhMmThYf5gHuxS6uKr7lIbbLVWFStxazFd/57HVwHbTm5Z ItwbIx/NzCn7Y3HhR5Hd3hP3o3vRdkbzlw2O47cQlmdr1Qcc3bWLLWy42sgmnaSzK8niZw 06qAcvA71oNg9bQdy2U8bjz0pqkPfzRld+qLLOzG0PowQD60EwcLhXBu7lmbqw== 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=e4O91J0q; 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=1701944647; 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=1skVc+kvZNGky2oS9HwHoWJxB++14V6eOs/KLgm4kSY=; b=WIXrjhgx2z9Rx4Hqjtv+tN20cw3WBIKsxhS1v2LELtf4nh0i81TAgmf7w5YyFyXtqMAeNP ZWSTV/eTT/ioEcKI4JiDutxsnk2ohjqgVMJyrBm6glHx9NvQNXBANMjTio1iPoT2/xK0XC lS/bfVWiIW0vtvFralCiqV27iqyRaVk6s1CQj22HvMiQqknQsfvc60s0Ewo7WSjPLI27bH r1WTpJ+NAXCcJ67VQAvKmuqCs+WsTGFOpLd3aqyY5LhCu/RD+JJHO2eRozSDODH+NVKCE/ oAsM9ab6hcYEbEmp8fK8pKnaRB3+NbQZslFOzldTXC8rvX16H92XHrrQRwS6Tw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBBXz-0003Kf-KH; Thu, 07 Dec 2023 05:23: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 1rBBXr-0003Iy-BI for guix-patches@gnu.org; Thu, 07 Dec 2023 05:23:51 -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 1rBBXr-0000r2-3b for guix-patches@gnu.org; Thu, 07 Dec 2023 05:23:51 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBBY3-0005XQ-BF for guix-patches@gnu.org; Thu, 07 Dec 2023 05:24: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Dec 2023 10:24: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: 67686@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 67686-submit@debbugs.gnu.org id=B67686.170194460821209 (code B ref 67686); Thu, 07 Dec 2023 10:24:03 +0000 Received: (at 67686) by debbugs.gnu.org; 7 Dec 2023 10:23:28 +0000 Received: from localhost ([127.0.0.1]:41142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBBXT-0005Vu-JU for submit@debbugs.gnu.org; Thu, 07 Dec 2023 05:23:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBBXQ-0005V8-ER for 67686@debbugs.gnu.org; Thu, 07 Dec 2023 05:23:25 -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 1rBBX8-0000jl-Sv; Thu, 07 Dec 2023 05:23:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=1skVc+kvZNGky2oS9HwHoWJxB++14V6eOs/KLgm4kSY=; b=e4O91J0qahgxk7ghV5b/ cQSI1xE8vblD3ddjEvx3TUQZ39o4EKxl7aaE7roGhxQMmOir0RDMwNWdEFKtLZfT9CT17qmqDSKO7 5MoSPb6KCYTmpvWjBzZjWmvnmAAWUm+FhtF60/f/sZuDj+S6yJYWyKOkZ52Gug+jYEU5QUiH9Ykb3 021V2ow0tvXncmGlh0GsOJ/qI8hE/Qvq4eWivUmzth43gWc8NXMYhY9JIflq+0eFhi0hWj8XI0ISA Ml1TiniBsopZ9eqS7iozHqXcjWTDDnwK2uZvGczyz3E3aIWWpfoCMp/zlH7TIed05NvkhkzbDYGLz 0bU2ZHGTEr94tw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Thu, 7 Dec 2023 11:22:47 +0100 Message-ID: <3e187cf8646059a513b502a17abe9f88daae6f6b.1701943221.git.ludo@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: mx13.migadu.com X-Migadu-Spam-Score: -5.85 X-Spam-Score: -5.85 X-Migadu-Queue-Id: D1FDA42DB8 X-TUID: 1yVJOUd8PE06 * gnu/packages/base.scm (glibc)[arguments]: Add ‘install-utf8-c-locale’ phase. (glibc-2.35)[arguments]: Delete ‘install-utf8-c-locale’ phase. (glibc-2.33, glibc-2.32, glibc-2.31): Inherit from ‘glibc-2.35’. Change-Id: I7ba515184c7b7c40eaefd355639ffef8eeca66d8 --- gnu/packages/base.scm | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index c5eac8a2da..985cd627fe 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -1023,6 +1023,21 @@ (define-public glibc (map (cut string-append slib "/" <>) files)))))) + (add-after 'install 'install-utf8-c-locale + (lambda* (#:key outputs #:allow-other-keys) + ;; 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"))))) + ,@(if (target-hurd?) '((add-after 'install 'augment-libc.so (lambda* (#:key outputs #:allow-other-keys) @@ -1108,11 +1123,19 @@ (define-public glibc-2.35 "glibc-hurd-clock_t_centiseconds.patch" "glibc-hurd-clock_gettime_monotonic.patch" "glibc-hurd-mach-print.patch" - "glibc-hurd-gettyent.patch")))))) + "glibc-hurd-gettyent.patch")))) + (arguments + (substitute-keyword-arguments (package-arguments glibc) + ((#:phases phases) + ;; The C.UTF-8 fails to build in glibc 2.35: + ;; . + ;; It is missing altogether in versions earlier than 2.35. + `(modify-phases ,phases + (delete 'install-utf8-c-locale))))))) (define-public glibc-2.33 (package - (inherit glibc) + (inherit glibc-2.35) (name "glibc") (version "2.33") (source (origin @@ -1139,7 +1162,7 @@ (define-public glibc-2.33 (define-public glibc-2.32 (package - (inherit glibc) + (inherit glibc-2.35) (version "2.32") (source (origin (inherit (package-source glibc)) @@ -1194,7 +1217,7 @@ (define-public glibc-2.32 (define-public glibc-2.31 (package - (inherit glibc) + (inherit glibc-2.35) (version "2.31") (source (origin (inherit (package-source glibc)) -- 2.41.0