From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8IcrL8EN8GGLpgAAgWs5BA (envelope-from ) for ; Tue, 25 Jan 2022 15:48:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aM6xK8EN8GFWIAEAauVa8A (envelope-from ) for ; Tue, 25 Jan 2022 15:48:33 +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 5636334519 for ; Tue, 25 Jan 2022 15:48:33 +0100 (CET) Received: from localhost ([::1]:47782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCN7X-0006yn-Dg for larch@yhetil.org; Tue, 25 Jan 2022 09:48:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCLtd-0007ot-P0 for guix-patches@gnu.org; Tue, 25 Jan 2022 08:30:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCLtb-0006mD-9m for guix-patches@gnu.org; Tue, 25 Jan 2022 08:30:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCLtb-0000oR-58 for guix-patches@gnu.org; Tue, 25 Jan 2022 08:30:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53447] Introducing =?UTF-8?Q?=E2=80=98GUIX=5F=E2=80=99-prefixed?= environment variables Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 Jan 2022 13:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53447 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 53447@debbugs.gnu.org, Liliana Marie Prikler Received: via spool by 53447-submit@debbugs.gnu.org id=B53447.16431173933052 (code B ref 53447); Tue, 25 Jan 2022 13:30:03 +0000 Received: (at 53447) by debbugs.gnu.org; 25 Jan 2022 13:29:53 +0000 Received: from localhost ([127.0.0.1]:47422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCLtR-0000nA-MG for submit@debbugs.gnu.org; Tue, 25 Jan 2022 08:29:53 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:55936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCLtO-0000mw-E7 for 53447@debbugs.gnu.org; Tue, 25 Jan 2022 08:29:53 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id DA0905D0; Tue, 25 Jan 2022 14:29:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U4OmD4uBPcQ4; Tue, 25 Jan 2022 14:29:42 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 99C589D; Tue, 25 Jan 2022 14:29:42 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875yqb21va.fsf@gnu.org> <19bb45159c0934e8d84035abdcfb00d8202233dd.camel@gmail.com> <87y2344vnv.fsf_-_@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 =?UTF-8?Q?Pluvi=C3=B4se?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 25 Jan 2022 14:29:41 +0100 In-Reply-To: <87y2344vnv.fsf_-_@gmail.com> (Maxim Cournoyer's message of "Mon, 24 Jan 2022 17:27:00 -0500") Message-ID: <87lez4lz96.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: DA0905D0 X-Spamd-Result: default: False [0.61 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.71)[subject]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_CC(0.00)[gmail.com,debbugs.gnu.org] 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643122113; 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; bh=r50FC3pq9P1uUQL3pJjB3iC5E78wfKVNgvYUMjo10Ig=; b=IxUO4vWr0bRUeIwVc1WnaYMHGNv9jox/oN/TPLFpT2RbTfBuXu8e9jpV6yb0qNbWFJKHse EP5VvQbLpqa+msJyHx0K8oX8cu6mYzI99Ek1O0bArTZfZbFgG0n98fWzOaYXutXS6gdRTB evwveKQ8ratdxwIcdC3+SwpBDTeG7bM8r/g/F5L1zSPUkfPX4dqSb1CWcUUL1uPOnrfp+H 9POlvn7WKLdSyPwDPBNSXwq9dMz2lzn2RC7r9qsiQOJn8ofGgWZrfO3XbHd3diobEvazO7 nRE60pId+ZD0H8QXi6xxuPxbKB8Zs7QPFBgOyczSH79cNf286dCQiJa+VIydvw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643122113; a=rsa-sha256; cv=none; b=j+SZyHiWmoLgEm3yuxx8k2+twxyZg2JB3sIyl1+dpc+n8FIZBYRsqL1F/xa62utyFU9B7q U4AqkxK7JIZK78KFmmUPa/xTLFXA0NBn01Pdjl5zRPGhxjq6NZOVtcgHrnU1FFABU1xKre JFu95gomfL8wjxxTfEiS32bb1Zt55uw/7iaNU7qzEE9WFPyK8DyThPXUnt+TIqAVeVit5v qVBCxEvUFNQF8ZmxjXNbylMkcUBtuTu7OOjavCtpAP3pWsz8raI2ogXwDZ+Cx7BU3+frKu 1VGHy/TkvmN2z2nzqpfv4n4T3tVfGCNqPD5/WJtq+6DIuvdNYLOPsnQ+H9g7JQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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" X-Migadu-Spam-Score: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=none; 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" X-Migadu-Queue-Id: 5636334519 X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: fBlBxA2iyp0F Hi, Maxim Cournoyer skribis: > I like to see this as a bug, so I've opened one as 53514; Guix should > strive to not mess with the host environment, and setting global > variables used by both Guix and a potentially foreign host goes against > this. The proper fix would be to patch all applications in Guix to use > Guix-specific variables, such as GUIX_XDG_DATA_DIRS instead of > XDG_DATA_DIRS. This approach has its appeal (like in the =E2=80=98GUIX_PYTHONPATH=E2=80=99= case), but there=E2=80=99s a tension with our other unwritten (?) guideline that we sh= ould modify packages as little as possible. Such wide-ranging changes would have the unfortunate effect that they=E2=80= =99d make Guix packages =E2=80=9Cspecial=E2=80=9D: documentation, bug reports, s= uggestions you=E2=80=99d find online would apply to the =E2=80=9Creal=E2=80=9D package= , but maybe not to the Guix one. That is a situation we=E2=80=99d rather avoid IMO. =E2=80=98XDG_DATA_DIRS=E2=80=99 is a real problem though. In large part th= at=E2=80=99s because its purpose is too broad=E2=80=94what =E2=80=9Cdata dirs=E2=80=9D are we ta= lking about? It would be ideal if we could progressively replace =E2=80=98XDG_DATA_DIRS=E2= =80=99 search path specifications with more specific environment variables, when they exist, or perhaps by using =E2=80=98wrap-program=E2=80=99 instead of having= search path specs. Right now there are 9 packages that have =E2=80=98XDG_DATA_DIRS=E2=80=99 as= their search path, including 4 Common Lisp packages. Of the remaining ones, I guess those we should first focus on are glib and qtbase. Thoughts? Ludo=E2=80=99.