From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uFZsILgFe2UD/gAAkFu2QA (envelope-from ) for ; Thu, 14 Dec 2023 14:40:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8AZ0HLgFe2WmtQAAqHPOHw (envelope-from ) for ; Thu, 14 Dec 2023 14:40:08 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=IqXJIy3n; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702561208; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=tN+Fn29suZxK3b8EnX4BuK8bWqEj5AMsqDEwh9mq2sI=; b=su11Lss8jttMd5HlphKDQGfHveOzEvrAGOJx1cGU8FqQA5lkjhbxaVtR+WcdAPiI2pjoC5 FWPUjCuAHAypQ2wunHqSZlMdbDglcFmU6vVYzMS9pEQ5cIc9DwAF8s5A3zOP4KgFxo2evm 2Oke79nxGnvBNfCXf2gTQKeJXRAOPxgDk0+0p6JZ/oVlzBCg5woIOb2peBHx8etrrSRRNe kyuLojRKVfrSO80nyTV8kQ0xVil/LiockjH9VN96jOeC1568kS5MW6x0pIkve6GiSFacqp mf8iE98RBHOfNFxJWoxYTzO+x+asQtJSB7gMaxPfpz8+3u4l6rw1sZVrNXOTWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702561208; a=rsa-sha256; cv=none; b=EAxenT144JDFKBQP9TaG+2u3LvIBnPtx05YHgVXTc9KblDGsYtXwBtycOuPXpMDyMEQpLy Ol6A9guyc4AfYCvGWSl2MlW/RNS/MyKlRhJpfNv5IOftI+NbhjNM/spt03w/B/95FZmOzz SnVXsAFkFceqyNtuCY6O+n64HS/lJYNuPKVRfDbSMyMY+IffwxdDWNIvRa+sqUYUlIrA8v qJXZZER8FzQVSiAhdX2ZoRgCj6ot2mxCv43r5Tzfc/KATAlmechZZZG/NE7m6IuFCJjygz Km+FtKp1dtmIhnolguf2xg91CYSNB2nQPqWhgFKUMr8cIDVkH3mq5DYSdOCVYw== 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=IqXJIy3n; 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=pass (policy=none) header.from=gnu.org 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 45A2F6124F for ; Thu, 14 Dec 2023 14:40:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDlve-0005XX-Tr; Thu, 14 Dec 2023 08:39:06 -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 1rDlvd-0005Wr-Rx for guix-patches@gnu.org; Thu, 14 Dec 2023 08:39:05 -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 1rDlvd-0003XW-HU for guix-patches@gnu.org; Thu, 14 Dec 2023 08:39:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rDlvc-0007HN-Ne for guix-patches@gnu.org; Thu, 14 Dec 2023 08:39:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67824] [PATCH core-updates 6/6] gnu: glibc-utf8-locales: Add the 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, 14 Dec 2023 13:39:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67824 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67824@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 67824-submit@debbugs.gnu.org id=B67824.170256112027910 (code B ref 67824); Thu, 14 Dec 2023 13:39:04 +0000 Received: (at 67824) by debbugs.gnu.org; 14 Dec 2023 13:38:40 +0000 Received: from localhost ([127.0.0.1]:48976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDlvD-0007G6-Pa for submit@debbugs.gnu.org; Thu, 14 Dec 2023 08:38:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rDlvC-0007Fs-2H for 67824@debbugs.gnu.org; Thu, 14 Dec 2023 08:38:38 -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 1rDlv7-0003Iy-H3; Thu, 14 Dec 2023 08:38:33 -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=tN+Fn29suZxK3b8EnX4BuK8bWqEj5AMsqDEwh9mq2sI=; b=IqXJIy3n/RfGXo2efTpL wZLmR8jrCg+An+lHuUHf+UlvAddlstyJEfdb0R1HZS1BMkqtHO/Ew8GYS1Jt/GB7ri4+c8NSrClIs Rw1y25Q9HY+q5qJjbN5Y81mgUZHdz/YgpsEaN7RlSh3iqSRVuV6tJuBKGgmoR+Fbyj7WCpKXEeN13 Ss9CUew3FiRqI31+rru0+DAvwAaAv+OVED/Sf6U9Z7MDix4CJkhlpu5Tmv/sq8rn756fdwD7sP7IZ 4qA256zJSJyk4kZ83QUmGdwuuN+9m5i0FiNkPME7fNvyNs8B7jHLy/HnO+bL1r0+ZCA0PMEriyUj1 XXUG5llNY693pw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Thu, 14 Dec 2023 14:37:42 +0100 Message-ID: <48fba13f955b3552c7f011672763052752cc7c35.1702550735.git.ludo@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.39 X-Spam-Score: -5.39 X-Migadu-Queue-Id: 45A2F6124F X-Migadu-Scanner: mx12.migadu.com X-TUID: 3+G0SXMoFwf2 * gnu/packages/base.scm (%default-utf8-locales): Add "C". (make-glibc-utf8-locales): Delete "C" from LOCALES for glibc versions lower than or equal to 2.35. Change-Id: I6a6faa68dc18bf0f87c372109a17f476d3561278 --- gnu/packages/base.scm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index d31c0b0772..eab9ff411d 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -1396,7 +1396,8 @@ (define-public (make-glibc-locales glibc) (define %default-utf8-locales ;; These are the locales commonly used for tests---e.g., in Guile's i18n ;; tests. - '("de_DE" "el_GR" "en_US" "fr_FR" "tr_TR")) + '("C" "de_DE" "el_GR" "en_US" "fr_FR" "tr_TR")) + (define*-public (make-glibc-utf8-locales glibc #:key (locales %default-utf8-locales) (name "glibc-utf8-locales")) @@ -1444,7 +1445,14 @@ (define*-public (make-glibc-utf8-locales glibc #:key (symlink (string-append locale ".utf8") (string-append localedir "/" locale ".UTF-8"))) - '#$locales))))) + + ;; The C.UTF-8 locale was introduced in 2.35 but it + ;; fails to build there: + ;; . + '#$(if (version>? (package-version this-package) + "2.35") + locales + (delete "C" locales))))))) (native-inputs (list glibc gzip)) (synopsis (if default-locales? (P_ "Small sample of UTF-8 locales") -- 2.41.0