From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id ICa3L/ze5WQ+hQEASxT56A (envelope-from ) for ; Wed, 23 Aug 2023 12:27:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IJ+OL/ze5WQUCAAA9RJhRA (envelope-from ) for ; Wed, 23 Aug 2023 12:27:08 +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 8B75346A9B for ; Wed, 23 Aug 2023 12:27:08 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=jbrDtEHe; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692786428; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4ynFOT2VQ41XxPhwC9D3v5cZ+Id4At158acYKu7lQ6A=; b=WRmO8ihDjHRerpkdIc9RppZC8ZwjUWO0poXxRI/QvWbhfOfjRuQcXrsw07vv4iUjRoijTO dYEz6YqEqBRDCTcjSvufPc8kUvUerf0vxbtzfVVTkXxiNaKWB/U+mGqUXFtgwR7PvZ/T6T PCSBpGafVs4k2YLtH6RjC8sHCTuJBqwht8LAiP1lX+TLTf7oH0ZF7x9ASwF97lfQPL+08n F9EtcxjT3Akfl8GTDG12eWiiYnEg0zDdPS7IgdUru2ywuid0ih4BULm1mgHJpoVS3WG2tz gVQIbcVuV/4DBVdVEDy01JAXWrKUISEXd/BtjGBkanY3xri4jWDG8uM5Rd0khQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=jbrDtEHe; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692786428; a=rsa-sha256; cv=none; b=GKNmZH3i9cAAgOTJsdz178rU45EuvDdrdeVmUOKYhNj1Qg5IHXvrvcMVV2H80mjyn6m4+j P67NBnyLjlkaTO7y2UhtrhD68zPuVnp60eUxDX03W7HAkgZgZ3cNW6J0y3jYEXq5Xg0tQk TC3KDmgP4/FY1snTUpDofknBcxzVhDM7ds3yfzdsU5Y0c597+CQD7pEM37HBFn42Sif2dt Bd+k1ZXA53EHpuSOaSSpbLFhb1SZCfM/zx4TjO+15dUs31rwuNwuY2NIDTNYUpvHmeWe9t TItG77xhmzDO0GSGwn5Amga1SCFaFQmTmSQI8DhfPD8sIdDIlcizsEfnyQLFpg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYl4R-0008Jo-QK; Wed, 23 Aug 2023 06:26:39 -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 1qYLCu-0004tb-4H for guix-devel@gnu.org; Tue, 22 Aug 2023 02:49:40 -0400 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYLCr-0005eV-Cg for guix-devel@gnu.org; Tue, 22 Aug 2023 02:49:39 -0400 Received: by mail-qk1-x72f.google.com with SMTP id af79cd13be357-76da239ba16so148404285a.3 for ; Mon, 21 Aug 2023 23:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692686976; x=1693291776; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4ynFOT2VQ41XxPhwC9D3v5cZ+Id4At158acYKu7lQ6A=; b=jbrDtEHeZ9vFPQu8VEgi3VQi0DY6NZdvkWm0CTu7zC24FMCIKGmEVj6KJX9zw2JmDk Yagj3B/L/rOszEY5TXKU1N5pXk8EE9BoDiHONGK0aNPXkG43DXCjCFjg1SWDPneHnDQ8 7kh46Z99qEiHOeQIp6l2yRuauuUJuTGmuMNq7blwQSPmSbrxySpUM1yYRJmskgVJxiKO rFPeKREDoKYnh5FwvOksIrdADnw7LrVYcfVret+yc+InrOPP/4CR+eqMTTy4Ma6lYUT2 pSxa9dvpjCtnxVA/GgXKxUq88hGMEjll1zQu5xiLHWU1+mBnJ1f0ULWsjTSyqbUgCGBq C5dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692686976; x=1693291776; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4ynFOT2VQ41XxPhwC9D3v5cZ+Id4At158acYKu7lQ6A=; b=TGu+f2jwpQP56oC9RXMnjL94bdSu2YbamfKSC4NGt93AXiwLdWSqEBhTq3xtbHD4v1 EaPza74TwXFH57vUGsGvgoeQWfuPtRAmYf4DaYFWHQZ1zZkc6jm77TCDeWjnajP1vXgS tWU5juV/3Os1QcDfBCjfI2k2IRVhsDepfwtvkKQMZVMo8CARGSey/SQzX5jZlqcZ5FwB 69V8+8acuJ+vs5sJg67H473BJkVZAQnRgZODMuh0TwCdC72sJ9NAp5UHbwT1YaNsq6/b gho1x05gnLSUFTXPMt4g6W5xnRLrbSp/fOhml5Q8ruIZlUMvvSQDOTEUMllMJ4ygGW3D 9obg== X-Gm-Message-State: AOJu0YxoSwGYuqkSeoLR5MCkaPDTj6PZwbP37KgJIpE7/IhEuBE9Jc29 BROdd4l5llLnMkxnCBKPyqJyYEJCj2o8YLmenDdHYYlQPxGm3Q== X-Google-Smtp-Source: AGHT+IFufS6Fi+eVPlu6ZKNQlZMLec+csE0+NDsslVA9+U5bAEBMbWtvFf4nwU4+Ss9WSTRUQNExoSMXWf/NtK1fZZE= X-Received: by 2002:a05:620a:4541:b0:76c:5715:b4a3 with SMTP id u1-20020a05620a454100b0076c5715b4a3mr13197459qkp.13.1692686975991; Mon, 21 Aug 2023 23:49:35 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Eidvilas_Markevi=C4=8Dius?= Date: Tue, 22 Aug 2023 09:49:25 +0300 Message-ID: Subject: Relaxing the restrictions for store item names To: guix-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::72f; envelope-from=markeviciuseidvilas@gmail.com; helo=mail-qk1-x72f.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 23 Aug 2023 06:26:37 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -8.58 X-Spam-Score: -8.58 X-Migadu-Queue-Id: 8B75346A9B X-TUID: TlgXqqQBQoLM Hello Guix, Not long ago, somebody has raised an issue regarding an error that occurs whenever some unconventional character is used as the name for a store item [0]. Tobias Geerinckx-Rice pointed out that this restriction was directly inherited from the Nix source code [1] and that, as such, it isn't really a bug. Regardless, I believe that the imposed limitation may be undesirable in some situations. One that I can think of off the top of my head is packaging a piece of software with a name that contains non-Latin characters in it (e.g., "Nar=C5=A1ytuvas" by Ra=C5=A1tija [2]). Of course, there are very few examp= les of such programs in actual practice, but there's a small chance of encountering them from time to time, especially if they're oriented towards non-English speaking users, and personally, I don't feel like resorting to transliteration is a good solution to this. After all, it's 2023, why would such a restriction need to be there in the first place when most filesystems are able to handle unicode characters just fine? Another scenario where these artificial restrictions could be a potential cause of trouble is when we consider a possibility that Guix might be used for packaging and distributing not only software, but all kinds of non-executable data such as films, books, music, databases, historical documents, website archives, etc. [3]. In the case of website archives: say I wanted to package the contents of the whole ra=C5=A1tija.lt website. When choosing the package name for it, should I go with "rastija.lt", "rashtija.lt", or "ra=C5=A1tija.lt". The latter would be a clear winner in my mind, since it is the canonical domain name for that particular site. And for all other types of data and media packages, using the official/original titles for their names would, too, be much more preferable over making use of any kind of transcription or transliteration method, IMO. Therefore, my proposal is to relax these limitations as much as possible (or at least somewhat) and to allow some more freedom when it comes to naming packages and other kinds of items in the store. We could, of course, still disallow all the main problematic characters, such as NUL, /, $, ~, space, newline and a few others, but other than that, I don't see any reason to forbid any of the remaining ones from being used. I'd like to hear your opinions on this and get to know whether this idea is feasible to implement at all or not, and if not =E2=80=93 why? [0] https://issues.guix.gnu.org/64976 [1] https://git.savannah.gnu.org/cgit/guix.git/tree/nix/libstore/store-api.= cc#n58 [2] https://ra=C5=A1tija.lt/liepa/paslaugos-vartotojams/narsytuvas [3] https://gitlab.com/guix-media-channels