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 GG6wHiQ68WE4DgEAgWs5BA (envelope-from ) for ; Wed, 26 Jan 2022 13:10:12 +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 AGZHGyQ68WExiQAAauVa8A (envelope-from ) for ; Wed, 26 Jan 2022 13:10:12 +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 D7816330ED for ; Wed, 26 Jan 2022 13:10:11 +0100 (CET) Received: from localhost ([::1]:43614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCh7r-0007Lq-15 for larch@yhetil.org; Wed, 26 Jan 2022 07:10:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCh3z-0003O6-2R for guix-patches@gnu.org; Wed, 26 Jan 2022 07:06:11 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCh3q-000819-0a for guix-patches@gnu.org; Wed, 26 Jan 2022 07:06:10 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCh3p-0004p4-NH for guix-patches@gnu.org; Wed, 26 Jan 2022 07:06:01 -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: Wed, 26 Jan 2022 12:06:01 +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.164319871818489 (code B ref 53447); Wed, 26 Jan 2022 12:06:01 +0000 Received: (at 53447) by debbugs.gnu.org; 26 Jan 2022 12:05:18 +0000 Received: from localhost ([127.0.0.1]:51118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCh38-0004o8-8g for submit@debbugs.gnu.org; Wed, 26 Jan 2022 07:05:18 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:36890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCh35-0004nt-Q2 for 53447@debbugs.gnu.org; Wed, 26 Jan 2022 07:05:16 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 6536F482; Wed, 26 Jan 2022 13:05:09 +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 kB268u-Xfrj2; Wed, 26 Jan 2022 13:05:08 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D46EC233; Wed, 26 Jan 2022 13:05:07 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875yqb21va.fsf@gnu.org> <19bb45159c0934e8d84035abdcfb00d8202233dd.camel@gmail.com> <87y2344vnv.fsf_-_@gmail.com> <87lez4lz96.fsf_-_@gnu.org> <87wnin2rae.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 =?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: Wed, 26 Jan 2022 13:05:07 +0100 In-Reply-To: <87wnin2rae.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 25 Jan 2022 20:56:41 -0500") Message-ID: <878rv2itxo.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: 6536F482 X-Spamd-Result: default: False [0.53 / 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.63)[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=1643199011; 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=0YHf7OXcqMZ0H1+h498XUmp/Ih68P7IFUxgR5eiZ7ns=; b=Uoh7ZfV9mfUmuzDuvckoFMMa+gl9/HQudfKTkrRSlihCgNbgA9/wM3I9Uq9lURRA1nbBlO i74ry0xkIXtDY4oNCzVu5BtQpbvsObbVYxYqTsvME0vphxLpjWLWML0e4eliTHYQ/qxuVV wZV1LuccsBJKP+AjdNlMJ1RabGYip4gEmhD+UnjUUawJ80UrlwEFAFdSslZXiPrr8zImzQ 1F6JMRINNREEZbFEkrSXExsTlvtBq7mheHay16OtQiiPXHtDmS/xmkbhzt7gVWOIkgZqHe y8Js8pNxvlWH684y3BBNRR3SswddKZGhsztORpfkGIhqRPFuhGaZ23Zn3TrIug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643199011; a=rsa-sha256; cv=none; b=goQAC5bHjSQZKRrp19i51UFCIJCe6TrSk69Dl6AhvoYbojPjRDNKICaiIjWDKPl/NsvHAd MwZPgKM+0u+0IKeK+MumhV/OGRC5wjNI9ffi8H6AAopR4Q9rrr1CDQS26vNNwCNFi0JJ8C xdvVBVV2RyItJCoumZpKyUgm4197cz67klrTyVPZXOuHaseucYL3d4WG/PkXLm4r7g93iR Kf+2v3akoslmI+R5JGnao7HEkD9Rv2PgUxwgxYkvCT5fYHjqb74fl9praak/m6pSIydY/O mqZYGgO9ditf+HURojIrQrPQPouwpWKpLuJrpyM/aKIMi4rvZAqeVkCntkTCpw== 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: D7816330ED X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: WNQUEo0hSEwX Hi, Maxim Cournoyer skribis: > 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 pack= age, 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. There are environment variables everywhere; are you suggesting to GUIX_-prefix them en masse? That seems neither viable nor desirable to me. And, as Liliana put it, when will we have GUIX_PATH? :-) >> =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 hav= ing 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. I don=E2=80=99t know. Like I wrote, the two main cases are glib and qt. W= hy do we have them use XDG_DATA_DIRS for? This is what we need to investigate. I would be less reluctant to patches that add an extra variable in these two packages (which could be submitted upstream) than GUIX_-prefixing it. Ludo=E2=80=99.