From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 +GqUK5yq8GHSowAAgWs5BA (envelope-from ) for ; Wed, 26 Jan 2022 02:57:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wD1XI5yq8GHvQgEAG6o9tA (envelope-from ) for ; Wed, 26 Jan 2022 02:57:48 +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 3149614146 for ; Wed, 26 Jan 2022 02:57:48 +0100 (CET) Received: from localhost ([::1]:54392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCXZD-0001kz-CU for larch@yhetil.org; Tue, 25 Jan 2022 20:57:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCXYY-0001T6-F3 for guix-patches@gnu.org; Tue, 25 Jan 2022 20:57:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCXYU-00055q-39 for guix-patches@gnu.org; Tue, 25 Jan 2022 20:57:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCXYU-0001YV-1c for guix-patches@gnu.org; Tue, 25 Jan 2022 20:57:02 -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: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 26 Jan 2022 01:57:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 53447@debbugs.gnu.org, Liliana Marie Prikler Received: via spool by 53447-submit@debbugs.gnu.org id=B53447.16431622115961 (code B ref 53447); Wed, 26 Jan 2022 01:57:02 +0000 Received: (at 53447) by debbugs.gnu.org; 26 Jan 2022 01:56:51 +0000 Received: from localhost ([127.0.0.1]:50590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCXYI-0001Y5-VT for submit@debbugs.gnu.org; Tue, 25 Jan 2022 20:56:51 -0500 Received: from mail-qv1-f49.google.com ([209.85.219.49]:35622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCXYG-0001Xo-Ht for 53447@debbugs.gnu.org; Tue, 25 Jan 2022 20:56:49 -0500 Received: by mail-qv1-f49.google.com with SMTP id d8so6726270qvv.2 for <53447@debbugs.gnu.org>; Tue, 25 Jan 2022 17:56:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=YzWKCo0Q8zJOb/rHyWxy/MkURg7jbwbaf9XztyH6b14=; b=FkxWkjgDNV03Vp54tbetkmKmTUAQ6DVcCtqOXi8Pvc841/5v023WYEYs95PsT8K3+I S/z6lOfuN5E74rVpQUCIWu4lSxcWGGAKI/uu25gZ8DH+QCdELTYsMDL00VgTLSI5txR/ YpOCS2uXc2oqGU7n9u6q60+5xwnPpkv6cJicKBWOIVncnEi37l7Wk0pjgsoda39vYu0x BEWUsn6P0eoa6+60VIR5mKO+BeIhXCkYbG992oaCo48QS7XC/SDRBqy6N4poZC8YsIW3 GR8O9fONDEZUhDZhaye6q2Uv84QNdE7Wel5gB9us2k5tdptVo4H+AcQXQBy/8Xv5d3y4 GYPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=YzWKCo0Q8zJOb/rHyWxy/MkURg7jbwbaf9XztyH6b14=; b=5wL/0XW5rAfGpORwtxqpSDG0XRGK7AVP5680unOALCTCKhSuiNkmiq68fPPKD7kjvp 2ZjKrwkzWQAWElDvCXXYLPNZSNwzBGya7saIR+xBtvO/Y0tKCfnsRjGJ8UPzB4Tn3vvE inBcfy6BgoHe8YpQ1doh7T1G+LFRL3sbU81WBfxalKHl1tynarxmwrOunOXCSifRRYPN JLnyMoa3RLvz9r5j629izQ9C3jKNEQqXACozVN0ZyVk5vLXqdkWKuTgQOpnq1qg2jQQY 5zQaqq+D4XZSChJqBr5fAhdvyRfIrGvTA/O0Ac+UTX03dZhtzDgBh+zjQOSSyvsTaS4L b4vg== X-Gm-Message-State: AOAM530nHjahlIbj3Gs55+l8nM8ILskLlOqhNQj1FWRrZCpFEsK+ae7+ 2wpNALQY65l/4QjPvTXgYc6lCDXEs+Q0pA== X-Google-Smtp-Source: ABdhPJzCVwLe4j681eKIkFWK+7BvLUnjUxJg1ZEL/iVCyTPxnTI6LBrcgPHIcYjbIGHM7P+PwMr2bQ== X-Received: by 2002:a05:6214:2a4b:: with SMTP id jf11mr13584474qvb.102.1643162202744; Tue, 25 Jan 2022 17:56:42 -0800 (PST) Received: from hurd (dsl-205-233-124-191.b2b2c.ca. [205.233.124.191]) by smtp.gmail.com with ESMTPSA id u9sm5733013qkp.37.2022.01.25.17.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 17:56:42 -0800 (PST) From: Maxim Cournoyer References: <875yqb21va.fsf@gnu.org> <19bb45159c0934e8d84035abdcfb00d8202233dd.camel@gmail.com> <87y2344vnv.fsf_-_@gmail.com> <87lez4lz96.fsf_-_@gnu.org> Date: Tue, 25 Jan 2022 20:56:41 -0500 In-Reply-To: <87lez4lz96.fsf_-_@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 25 Jan 2022 14:29:41 +0100") Message-ID: <87wnin2rae.fsf@gmail.com> 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-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=1643162268; 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=YzWKCo0Q8zJOb/rHyWxy/MkURg7jbwbaf9XztyH6b14=; b=bRgjjLR68+oQDBhNR/aFVoJAarZeQuObJ+L222bNZPgH0CM8FvMDSp3oxtywNrE8aG4wPR oDd8ruVVgW7GUMbXMrEiizZEHbYWUiK/B0EPtZATCxn/YiupI0eCfO44cYaFYgPoZyIumu kviRamcOwbTcSVYRFEG4f6KYVdPQExbq3SKwyqso8/JA1PNMXzyEvBddzIz/zSCxYX8Dv4 UJsx3GZ8b2ZBoybz6e1S4g7QL91q8qgeLjQ8xyQcmPv0ISsZCTzGES1FXBLlZW+jBorXED lz58140Gk3QQXte20Cv/gpFCA9/sBNrPR+kcv4V2PGTW37x9wClheCh40EpK6Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643162268; a=rsa-sha256; cv=none; b=RuNl0tYcY3bRKVcGa5dljo6bKQbO7WgG26T/FQfsF19dbqU75K5gN0DqL2xU9MIdYKeslG XHfa+JLtC0ez8TT8ysgGHP69eC2Prs7s3Wd5epzQbKWUX5yeK1iqHSpVV9yw4E82S7DmmM VaQ+NELS16DJkDV/T0ECUAGRWJRYYRpKcX4eTch/Zp2YmhHz9YFeeXHYucW7d8m9+SD6o5 dYxu35JGzt7sS3zcvW1z8ItHHwmUUAqd03qiDqBL84z885IgGGsFLCKJ9qRI0xRhScr6o9 LzIDGDh5ghzE/QvVXNYO+yWeX72QPP5B4XDk7R+PnaXEmHKc5tjlrs7wzsQh3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FkxWkjgD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -2.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FkxWkjgD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 3149614146 X-Spam-Score: -2.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: Uyc7ahkpnhX0 Hi Ludovic, Ludovic Court=C3=A8s writes: > 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 = should > 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,= suggestions > you=E2=80=99d find online would apply to the =E2=80=9Creal=E2=80=9D packa= ge, but maybe not to > the Guix one. That is a situation we=E2=80=99d rather avoid IMO. True; but after people would get a hang that in Guix most environment variables would be prefixed with 'GUIX_', I don't think it'd be that big of an issue. Maintaining the patches would be where the burden would lie, in my opinion. > =E2=80=98XDG_DATA_DIRS=E2=80=99 is a real problem though. In large part = that=E2=80=99s because > its purpose is too broad=E2=80=94what =E2=80=9Cdata dirs=E2=80=9D are we = talking 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 havi= ng search path > specs. Are there any more specific environment variables that exist that can replace XDG_DATA_DIRS? I'm not too knowledgeable about the freedesktop specs, but I'm somewhat skeptical? If they don't yet exist, that makes this idea much less actionable. Thanks, Maxim