From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WKQ5CzMaAmXl8QAAG6o9tA:P1 (envelope-from ) for ; Wed, 13 Sep 2023 22:23:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WKQ5CzMaAmXl8QAAG6o9tA (envelope-from ) for ; Wed, 13 Sep 2023 22:23:15 +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 C513761100 for ; Wed, 13 Sep 2023 22:23:14 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=clisp.org header.s=strato-dkim-0002 header.b="dV2/e+QA"; dkim=fail ("headers eddsa verify failed") header.d=clisp.org header.s=strato-dkim-0003 header.b=l1G+07gS; arc=reject ("signature check failed: fail, {[1] = sig:strato.com:reject}"); dmarc=none; 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694636595; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2EumxGsMrcTWqfiDj3wdxd7o6C0jv90ZAEHVRnZXqok=; b=f1i5sXuOajdBPZtX+wap/oekl1yur3WmWL3o3yjZxuRfDDG94Ym6bJdp4KknFjoiQwT1RT 9qnh797x0V9O9yMAq+KhWt69JDkazI7txs3qs4U7TOSUou+lFL3h5WN6DPVP80c78XS1NN Msaai9hKqI+DSRbjVtdavK8KufspC0zYefH1fjglp1NQ8wO+rWlHFf/Ln0G65F0KGXpARs ynaLhgB+dskQMGBYYtHbcXFu2FW6ayiopLnDUk+pMnPuEbejqQwPf89VnlDWJlNtD85Oxq TnRghNbyB3AXpvxVk/WWzQtBoHL6AwTpWYhZq8HMEFQw6G1FMhn5ikMbW/I5oQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1694636595; a=rsa-sha256; cv=fail; b=OH478HofiXwjg7ldMRt84DcRyPpVcTyJ110ydv1DSOWNi7lemOhp36ylxWqEa52SjOS5Er evTPwmhtPSm9rPQvnGMwlNNUaHYBg7vkfoJ3N8CH1a3Pk1j53ZnzX5hpNQghf97k/p56mt 9U53Cb2ELIC6rbGrcG3iNnCmCtFAX3AULaKC5Va2v9vMjFBBsConNmUnGBE6xpKRDVZBHs 8GScD7sdzCzN1oBc+Mw6jVYWTy900qX8fAXKM7+I0CLqhidY/7AgS9bUbs5Squ6eQZqebi Z9OCtsLFVHoz0UtRCIJnOQTM8ildOZ5DhAFXswaFkeZzl1rlwmQLwo8nD52ksQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=clisp.org header.s=strato-dkim-0002 header.b="dV2/e+QA"; dkim=fail ("headers eddsa verify failed") header.d=clisp.org header.s=strato-dkim-0003 header.b=l1G+07gS; arc=reject ("signature check failed: fail, {[1] = sig:strato.com:reject}"); dmarc=none; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgWO3-00067B-Tn; Wed, 13 Sep 2023 16:22:59 -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 1qgWO1-00066f-2f for bug-guix@gnu.org; Wed, 13 Sep 2023 16:22:57 -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 1qgWO0-0002NZ-H9 for bug-guix@gnu.org; Wed, 13 Sep 2023 16:22:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgWO5-0007F5-RY for bug-guix@gnu.org; Wed, 13 Sep 2023 16:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65927: the role and location of locale.alias Resent-From: Bruno Haible Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 13 Sep 2023 20:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65927 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 65927@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169463656027796 (code B ref -1); Wed, 13 Sep 2023 20:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Sep 2023 20:22:40 +0000 Received: from localhost ([127.0.0.1]:36150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgWNk-0007EF-7U for submit@debbugs.gnu.org; Wed, 13 Sep 2023 16:22:40 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgWNf-0007Dw-MQ for submit@debbugs.gnu.org; Wed, 13 Sep 2023 16:22:38 -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 1qgWNU-00065D-JX for bug-guix@gnu.org; Wed, 13 Sep 2023 16:22:24 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.160]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgWNP-000282-01 for bug-guix@gnu.org; Wed, 13 Sep 2023 16:22:24 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1694636535; cv=none; d=strato.com; s=strato-dkim-0002; b=HNJI6spAoARwGYOYJvoBfc7BM2uYcpmNTkLBDQnxmq4FMVUcgzwhYk4vPl+MMqCn10 j8SN0p5Ti8tlrp+PbGXHQ1yJglEWIX/CWGh0bSf05NZAAQvP5Pmm2fqF0e2cc4vgDwWl xE3yY+qMk5/V3bT2qZzvpqDyh0Blrezeucfx5jbzDvaFQEFxEWnepB/1BO9kufnaf19z /viafGdLDg5NwcVS3LXeFYRYQD3Jl8aTbqULpkfPO0hQnLqRq+y37Ma8Fp1eQBd5Cg/Q NneUqKhcRFEmayvnF903hllPn//4TbKRRqya7jMhItU1XoygtypT5LOlOeyOC8xs6RQZ hWWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1694636535; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=2EumxGsMrcTWqfiDj3wdxd7o6C0jv90ZAEHVRnZXqok=; b=MdE1UmklYigKU/WKe4oiZAeIT6rLz9MBuVyqxH2BGwsHiJFvKk/SJpWWe0nHOj8WwB KUPLt0owtnNuLAsdCaBuqc+WzWHj/vh2fTCDNQYY5e15EUdqjoaN3UcT+6am/kYlNgz7 HmOOOd++BQHOACNAjr9PP49aVrdKjLp1V2iCjL53zVJtpMJYsaDfo7kjm7ABfiyOEFMR t7dCFMaRJ1H0xXfuUVjueMCQ6mxEzOVbdV39oBMiSib46+sBBq8BXM2msQfC/WuSt1uG ykgBu5P+rLPKw2+Xp5G7PqkqS3w7b031yEucdFU6e4B7cZayJh5LTi54awXFfcMZyXVi Zjvg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1694636535; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=2EumxGsMrcTWqfiDj3wdxd7o6C0jv90ZAEHVRnZXqok=; b=dV2/e+QAJD7gkAJIljEc1KFuvx0GLywBqwjGeirh0Z+dmHYILpXCEoBE/D+06eQHBo /2LeKhlLCBFQmMpkKYso/jxkR1z7KpI//KWCUyKsEb7Mk1pveuMBgXz7KhK4vLDSw66v iRpAem5GswUYfZZicydZ7ZqeWyl2o6ciuPtOFIkUx8vqpnw634ge/19dCh20vcHiBG52 XJ9eVBZFhOh7OaiqGMCub0p56q4y+KRok3ryZsL7UC5WRNvCV6aH76Uha8E0EfaVWRGO RsGP/GJ4UvO8eMbjpiBGbXvFt0MvGYB5IhxlL4WkMZXyf3tvR8MD7EvMjKX0MfuSdHc1 Sang== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1694636535; s=strato-dkim-0003; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=2EumxGsMrcTWqfiDj3wdxd7o6C0jv90ZAEHVRnZXqok=; b=l1G+07gS+VJguxTvfb4egk4CCuOI2zVK39iFnbve5mtiL35khGiKZuE3+582fyXCa9 wRIpkjJ9my/GJAFhW3AQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpPCjqaacM7T7kHJj8anoQ385YLYeA==" Received: from nimes.localnet by smtp.strato.de (RZmta 49.8.2 AUTH) with ESMTPSA id m03934z8DKMEFNz (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 13 Sep 2023 22:22:14 +0200 (CEST) From: Bruno Haible Date: Wed, 13 Sep 2023 22:22:14 +0200 Message-ID: <2444710.l5Z5W5aWdd@nimes> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=81.169.146.160; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.72 X-Spam-Score: 2.72 X-Migadu-Queue-Id: C513761100 X-Migadu-Scanner: mx0.migadu.com X-TUID: /PjS9MO+kFii Hi, In guix 1.4.0 there are 2 locale.alias files from glibc on the disk: $ ls -liL --sort=size `find / -name locale.alias 2>/dev/null | grep -v X11` 940417 -r--r--r-- 1 root root 2998 Jan 1 1970 /gnu/store/0dbscs8zq4bdg8vbn9jkdgynjcn3s01p-gcc-toolchain-12.2.0/share/locale/locale.alias 940417 -r--r--r-- 1 root root 2998 Jan 1 1970 /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/share/locale/locale.alias 15716 -r--r--r-- 1 root root 2998 Jan 1 1970 /gnu/store/ayc9r7162rphy4zjw8ch01pmyh214h82-glibc-2.33/share/locale/locale.alias 15716 -r--r--r-- 1 root root 2998 Jan 1 1970 /gnu/store/c326489r6jvnl69l2nbmdvxmgzqln2hy-profile/share/locale/locale.alias 15716 -r--r--r-- 1 root root 2998 Jan 1 1970 /gnu/store/isn13ca7419sj7myb3xr3i3zbxspky8c-profile/share/locale/locale.alias 15716 -r--r--r-- 1 root root 2998 Jan 1 1970 /gnu/store/yh51nb5dq9n6pw8mrdp3nxcfmxzmrp1x-profile/share/locale/locale.alias 1058938 -r--r--r-- 1 root root 261 Jan 1 1970 /gnu/store/wf46adk80fdc1qij8472n8r2xr4cln0a-gdm-42.0/share/gdm/locale.alias 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. 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. 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, GNU gettext could be compiled with '-DLOCALE_ALIAS_PATH=\"/etc\"' and would then be able to access it. Bruno