From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GJDHNTHfM2Vn4QAAG6o9tA:P1 (envelope-from ) for ; Sat, 21 Oct 2023 16:24:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GJDHNTHfM2Vn4QAAG6o9tA (envelope-from ) for ; Sat, 21 Oct 2023 16:24:49 +0200 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 79F815929D for ; Sat, 21 Oct 2023 16:24:49 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=KUJVvZL+; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697898289; a=rsa-sha256; cv=none; b=gDCmvdImWsNXrf85zqPt3UfoSnYNl22i4lkQHz7t/eUKq7Qop2zwcOZmN1CUJMfrqtJ/ma /AxC1rVl0rYjK4ZFuTpKlfRNPccxp65GjSAyZKAD7Zr4jIhpMEz65/s2hRV5DqocY3hLtx hKdWUapc12pgoRfjfmmsTbv3jYcQE2WOTJTCtpUQzMaZQ/MvW7auZdlMh+8E7CCybTd1Zv c5tnf3MqS/uKA6hjZoDbq78+hV4K5SuAP0BUbItt/9Y88X+QCiZYQl2HPO8Zki8e912Un+ 8rf5mawXxIIuCKynL1S3GiVptvWVhn1TXii0VDKPhLhzd1h3y6Irjt360UjXqQ== 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=KUJVvZL+; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697898289; 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=7vvGJExq67gm9fXVjJPnNzecwkR4UtNcxLQ8OXl3JrI=; b=joHyFBkLA4vU/+/zdeRsVoKh+spj+LTkDkqg1r28I8QWQ9kzEzYj2mPc6f8wt3LePj+ptl ysw+k4UQA3HNs/BxJyF5FnEfr+/e/TEbrG+HehvPT/udABFOUvSAMMc7V+F8ZDRLwlTyhl /AAHibirdoLqcr8TB+e5sv9CT2W5u6W9T1lkqcxn0yO8+6/xX++rPTXBmH4QTOXSxvZAzG zMxCjhqrIkYuijSPH4g0mg//thAHu2iv/Dq042RqInrsOJq1RhFtREJzyzg1J7T6OkWwuL CIFWlJT370QEiVk1h36Ulydz32zcfyErY/D3CnoS1VljPj+A/ZGufcX0yO0sqg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quCu4-0005WS-D3; Sat, 21 Oct 2023 10:24:36 -0400 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 1quCu3-0005WI-6t for bug-guix@gnu.org; Sat, 21 Oct 2023 10:24:35 -0400 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 1quCu2-0001aK-Ux for bug-guix@gnu.org; Sat, 21 Oct 2023 10:24:34 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1quCuU-0005Ks-H2 for bug-guix@gnu.org; Sat, 21 Oct 2023 10:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65927: the role and location of locale.alias Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 21 Oct 2023 14:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65927 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Bruno Haible Cc: 65927@debbugs.gnu.org Received: via spool by 65927-submit@debbugs.gnu.org id=B65927.169789825220433 (code B ref 65927); Sat, 21 Oct 2023 14:25:02 +0000 Received: (at 65927) by debbugs.gnu.org; 21 Oct 2023 14:24:12 +0000 Received: from localhost ([127.0.0.1]:44799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quCtg-0005JV-7g for submit@debbugs.gnu.org; Sat, 21 Oct 2023 10:24:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quCte-0005JG-CA for 65927@debbugs.gnu.org; Sat, 21 Oct 2023 10:24:11 -0400 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 1quCt6-0001Oc-QO; Sat, 21 Oct 2023 10:23:36 -0400 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=7vvGJExq67gm9fXVjJPnNzecwkR4UtNcxLQ8OXl3JrI=; b=KUJVvZL+25rI91/CjbVO slcJSGHZ5x/J9EQjbAsQdTPxQhlJSSq/M/brx76QgsoVg2wjRZ/ytAMRgECeN/Fmffdrh9SmlWLAT CO3ZYpVj/i2SAf+oKIO+w8j2OL+PsC/vXApoLIsIvBesy4HZz77yCJV87/M084GsfrgkKGzJlnAyi KPL7AFu6t4nttj80ZhH6aWQE/s5QMELS2Ae1oOY9z80QFU4y2eWb1Jh6Db5+ISZcxrVhRBFxa/5uy TxkA+/E9iqI+nC7kxXaZG4d3bdT+ZsA1yQUuNuudOty0H5ZxrSJnLDrD2ME1LLAYBY+sApUc6Kb9X S2gt0Pqp1zZshw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <2444710.l5Z5W5aWdd@nimes> (Bruno Haible's message of "Wed, 13 Sep 2023 22:22:14 +0200") References: <2444710.l5Z5W5aWdd@nimes> Date: Sat, 21 Oct 2023 16:23:34 +0200 Message-ID: <87a5scqck9.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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -6.85 X-Spam-Score: -6.85 X-Migadu-Queue-Id: 79F815929D X-TUID: mtllI7cYGDEV Hi Bruno, Bruno Haible skribis: > In guix 1.4.0 there are 2 locale.alias files from glibc on the disk: [...] > I explained the purpose of this file in > https://sourceware.org/pipermail/libc-alpha/2023-September/151524.html . > In summary, it's a configuration file whose initial contents is provided > for glibc, but which needs to be edited by the system administrator in > some situations. > > For this reason, in Debian 12, the file has been moved to > /etc/locale.alias, and /usr/share/locale/locale.alias is merely > a symbolic link to /etc/locale.alias. IMO, this is the correct > way to handle this configuration file. Does glibc look for =E2=80=98locale.alias=E2=80=99 in $sysconfdir, or does = it look for it in $localstatedir? To follow the =E2=80=9Ccorrect way=E2=80=9D as you described it, glibc shou= ld look for it in $sysconfdir by default. > The way Guix handles this file provokes two problems: > > 1) When the system administrator wants to add a new alias, they have > to search for all occurrences of the file in the (two) glibc > installations. And if/when they install newer versions of glibc, > they will have to reapply their change again and again. That=E2=80=99d be impractical of course, and that=E2=80=99s not how Guix wo= rks (/gnu/store is immutable). > 2) GNU gettext needs to access this file, in order to recognize the > same aliases that glibc recognizes. But glibc does not export the > _nl_expand_alias function. Therefore GNU gettext needs to know > where the file is. But how could GNU gettext retrieve any of the > file names > /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/share/locale/= locale.alias > /gnu/store/ayc9r7162rphy4zjw8ch01pmyh214h82-glibc-2.33/share/locale/= locale.alias > ? > If Guix had this configuration file moved to /etc, like Debian did, GN= U gettext > could be compiled with '-DLOCALE_ALIAS_PATH=3D\"/etc\"' and would then= be able > to access it. Right now gettext in Guix ends up being compiled with: -DLOCALE_ALIAS_PATH=3D\"\" (Example build log at = .) What you propose is doable. However, how many distros provide /etc/locale.alias? What happens when it=E2=80=99s missing? We have to keep in mind that Guix can be used on top of any distro. Thanks, Ludo=E2=80=99.