宋文武 <iyzsong@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 53514) by debbugs.gnu.org; 25 Jan 2022 23:14:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 25 18:14:28 2022 Received: from localhost ([127.0.0.1]:50480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nCV1A-0005kN-1D for submit <at> debbugs.gnu.org; Tue, 25 Jan 2022 18:14:28 -0500 Received: from mail-qk1-f172.google.com ([209.85.222.172]:37728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>) id 1nCV18-0005kA-QK for 53514 <at> debbugs.gnu.org; Tue, 25 Jan 2022 18:14:27 -0500 Received: by mail-qk1-f172.google.com with SMTP id 71so10454178qkf.4 for <53514 <at> debbugs.gnu.org>; Tue, 25 Jan 2022 15:14:26 -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=vq3dNVde1RT7iJx1g6W/LNFAW93vX2j+08H7YOXYLo4=; b=jSyMF6FNxqo2K8j9SjS/S9tK2OWhj5MXCNDLtquljc+vbdE96JJJY//ITa3LicjQ5e i59grt56o37YwhxST63ZZkCJv0l0tgd5IO0vu5niXwn9wMgSja2LKOwvvEvBqQ++RPfq nasADAj/ziU/3DEktuovuYN/d9BTeYWFgKCrKXiSqIcqaBgClOjm4AStdli/qa6LAcYs CD8tn8xKb9ENAH0GKB+jK9LWKLmTbgb96ThteIoNhDCFCTrgzAmSVjZfN4L58qGb8KVT M3piWM9CW8YP3UZRrpUYOyayG/ziOpMoMfZeNY/cMgxopw4perpbWYaO94P5NQnrf/rj OJ7A== 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=vq3dNVde1RT7iJx1g6W/LNFAW93vX2j+08H7YOXYLo4=; b=I8sNXQq4ULv+cA0MG8ysP5RA6Ojl0d3EkrrdxuxI0qCIhGEp/LK2qjY2VowPLS0Z7f 4p1MHH4ty3wk+WdLwiAjvOoRa7NFgqMyHb67eYNWlH31qOba08/t2ZYCh8NO9iYUEuKr WaJS/IsDMimZX/zuzMWzx3YtcerjZd7Z+ckNtNVj5ucH3wrhJQzPPU5hyr8sHqQ8bFZF E7RpmYlTM4cn6UkgZsg9zUTI5EYlwjqGXwBK0MeZQn/kon+RgkpV1xu0I6+bfOVHa0Pq 72HON37MSVVzAgsk2xZHDzH/5M1U0oq+hlte63qQ5jIw4zX6ujt0XRbmpx9zHYhsFkPt avpQ== X-Gm-Message-State: AOAM532KDo4LOufty4oDZMHmuVlNluPEnG5T+BjNmJz5YEZSIyVyQXpd 16/8KjX7ISnvm8GgbbnBFO+ZT7/l5dU= X-Google-Smtp-Source: ABdhPJyI7cOkEzuABKisej75yb9T3opWPIT+P7Wq4rFdp2zhbCQ6vyb1tOwNt1nZLi2wohui54rGXQ== X-Received: by 2002:a05:620a:2848:: with SMTP id h8mr16937235qkp.610.1643152461130; Tue, 25 Jan 2022 15:14:21 -0800 (PST) Received: from hurd (dsl-10-136-58.b2b2c.ca. [72.10.136.58]) by smtp.gmail.com with ESMTPSA id g7sm2675257qkc.104.2022.01.25.15.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 15:14:20 -0800 (PST) From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> To: Liliana Marie Prikler <liliana.prikler@HIDDEN> Subject: Re: Guix should not set global variables that may affect host References: <87zgnk4vs2.fsf@HIDDEN> <e7aac16cd2f922576d3c8da29bece57aa6b3c353.camel@HIDDEN> Date: Tue, 25 Jan 2022 18:14:19 -0500 In-Reply-To: <e7aac16cd2f922576d3c8da29bece57aa6b3c353.camel@HIDDEN> (Liliana Marie Prikler's message of "Tue, 25 Jan 2022 08:21:59 +0100") Message-ID: <87a6fj4ddg.fsf@HIDDEN> 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 53514 Cc: 53514 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Liliana, Liliana Marie Prikler <liliana.prikler@HIDDEN> writes: > Hi, > > Am Montag, dem 24.01.2022 um 17:24 -0500 schrieb Maxim Cournoyer: >> Hello! >>=20 >> There are multiple reports about the negative effects of Guix setting >> variables such as XDG_DATA_DIRS on foreign distributions, that may >> cause problems a severe as locking users out of their graphical >> session [0]. >>=20 >> In my opinion, we should pursue patching every application/library to >> use a Guix-specific variant, e.g. GUIX_XDG_DATA_DIRS instead of >> XDG_DATA_DIRS, to avoid interfering with the host system, as was done >> for GUIX_PYTHONPATH. >>=20 >> This is a big task in itself; we can open more focused/actionable >> tasks for each environment variable, starting with those causing the >> most serious issues. >>=20 >> Any takers? > I'm not convinced that patching XDG_DATA_DIRS is a good solution here. > Even if we go forward and implement this for each and every > library/application, (it would be reasonably simple to do so for glib > and qt at least, but there's many more consumers, including Guix > itself), we'd just force users on foreign distros to set up their > XDG_DATA_DIRS for us if they e.g. want to have desktop icons available, > so they'd quickly encounter the same issue on their own. They may end up doing so, but at least they wouldn't be locked out of their graphical session just for installing a package from Guix, which is a clear improvement over the current situation. > I see two ways forward for this: First,=C2=A0"ignore it" and just docume= nt > the behaviour. This isn't just a bug Guix is suffering from, it also > affects other third-party package installers like Flatpak and Snap. > > Since distros increasingly become aware of them, this will soon no > longer be an issue for most our users. Second, extend search-paths > with a way of enforcing a default value when none is set. This way, > Guix will still override XDG_DATA_DIRS, but since > $HOME/.local/share:/usr/share is set as the default as per spec, it > will do what the distro expected. That sounds good to, and should be easier to achieve. Thanks, Maxim
bug-guix@HIDDEN
:bug#53514
; Package guix
.
Full text available.Received: (at 53514) by debbugs.gnu.org; 25 Jan 2022 07:22:06 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 25 02:22:06 2022 Received: from localhost ([127.0.0.1]:46761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nCG9V-0004uR-Rk for submit <at> debbugs.gnu.org; Tue, 25 Jan 2022 02:22:06 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:32979) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <liliana.prikler@HIDDEN>) id 1nCG9T-0004u5-EQ for 53514 <at> debbugs.gnu.org; Tue, 25 Jan 2022 02:22:04 -0500 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4JjdZw1FVBz3xYv; Tue, 25 Jan 2022 08:22:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1643095320; bh=+PE2gPu8oWCXI9ClfgVyKLyuOQTccgNZcyYnLl9QKNc=; h=Subject:From:To:Date:In-Reply-To:References; b=DmaOMNOnMwvts9DHVRTnx/HT5iiQaXaQhlsHv+9nvsJs1VI32BmnMH39nMyRF/HjH PBM26x8w/iwY2moXJLxzgfjdkrmzp2mv6AOEzawsn+61wpJrkfUaGRKX2zWEdcfAC2 WuUyMzejjWwPjGMkzNp0xIh8Mn4Q9LIAUvBvRZaU= Message-ID: <e7aac16cd2f922576d3c8da29bece57aa6b3c353.camel@HIDDEN> Subject: Re: Guix should not set global variables that may affect host From: Liliana Marie Prikler <liliana.prikler@HIDDEN> To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, 53514 <at> debbugs.gnu.org Date: Tue, 25 Jan 2022 08:21:59 +0100 In-Reply-To: <87zgnk4vs2.fsf@HIDDEN> References: <87zgnk4vs2.fsf@HIDDEN> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53514 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Hi, Am Montag, dem 24.01.2022 um 17:24 -0500 schrieb Maxim Cournoyer: > Hello! > > There are multiple reports about the negative effects of Guix setting > variables such as XDG_DATA_DIRS on foreign distributions, that may > cause problems a severe as locking users out of their graphical > session [0]. > > In my opinion, we should pursue patching every application/library to > use a Guix-specific variant, e.g. GUIX_XDG_DATA_DIRS instead of > XDG_DATA_DIRS, to avoid interfering with the host system, as was done > for GUIX_PYTHONPATH. > > This is a big task in itself; we can open more focused/actionable > tasks for each environment variable, starting with those causing the > most serious issues. > > Any takers? I'm not convinced that patching XDG_DATA_DIRS is a good solution here. Even if we go forward and implement this for each and every library/application, (it would be reasonably simple to do so for glib and qt at least, but there's many more consumers, including Guix itself), we'd just force users on foreign distros to set up their XDG_DATA_DIRS for us if they e.g. want to have desktop icons available, so they'd quickly encounter the same issue on their own. I see two ways forward for this: First, "ignore it" and just document the behaviour. This isn't just a bug Guix is suffering from, it also affects other third-party package installers like Flatpak and Snap. Since distros increasingly become aware of them, this will soon no longer be an issue for most our users. Second, extend search-paths with a way of enforcing a default value when none is set. This way, Guix will still override XDG_DATA_DIRS, but since $HOME/.local/share:/usr/share is set as the default as per spec, it will do what the distro expected. WDYT?
bug-guix@HIDDEN
:bug#53514
; Package guix
.
Full text available.Received: (at submit) by debbugs.gnu.org; 24 Jan 2022 22:24:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 24 17:24:35 2022 Received: from localhost ([127.0.0.1]:46131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nC7lL-0000dz-0e for submit <at> debbugs.gnu.org; Mon, 24 Jan 2022 17:24:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:35684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>) id 1nC7lJ-0000dn-6G for submit <at> debbugs.gnu.org; Mon, 24 Jan 2022 17:24:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <maxim.cournoyer@HIDDEN>) id 1nC7lJ-0007CZ-1I for bug-guix@HIDDEN; Mon, 24 Jan 2022 17:24:33 -0500 Received: from [2607:f8b0:4864:20::f2a] (port=39932 helo=mail-qv1-xf2a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <maxim.cournoyer@HIDDEN>) id 1nC7lH-0005hp-JK for bug-guix@HIDDEN; Mon, 24 Jan 2022 17:24:32 -0500 Received: by mail-qv1-xf2a.google.com with SMTP id k4so22707843qvt.6 for <bug-guix@HIDDEN>; Mon, 24 Jan 2022 14:24:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=Ee29I/XgfMR5Krq/mRBvTCdXSn8kDWCH7nFT9eddksE=; b=GalAXCgYs/eCvZBlJupfFhAthmBOJxWwMEiScmtKflgcdVvOVkJVuX/2wJXoA6uaGu UZxmHtgRXy2BppFZVlCtB7jT0zt5cfDNWGN6AkPZ+5U3HCfUAp6XcaGLCrPnOtvuHC/S sW6YHQW6XidBTM1UGB7oxahYH0fkMmY6O7astsNrdyvggzA2KapAvFu4HfYZRgoP3tYO l/fwJiN000413ujmUYvVULQyii9y4YzhO/JIfe04LEP+18UiYUgV2Krxi3vMvI7wUx9S jNwde+IWjvn3EIfZrKFCh+5PUE8UBcNeGZSEFP34u8gb3XPBA+yjAnfPAJF071LS1Ivv pePQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=Ee29I/XgfMR5Krq/mRBvTCdXSn8kDWCH7nFT9eddksE=; b=c2c3G2zHtWVcTFgRharVZCfCGUiz1CstMiHKEU0W4kiVrlSnZzbg6KwJqPLKWN85R4 u8LTdqHGBb7z9VCTCkne5ZV5GHb656OrCpVaet41P5pgUPy2en49w0b/9UscX/KZhmHc /w+8IXME8mrfzsa9JQDP/f2vEHFnlTsaHnzOqncpCKSn+zV/2TYweeCm2lNJjBgpB3I1 /TY3le9lnoZSyi9acw31cdZZCzShXi9N0GiGcORIYDDOD2i9Obn2pNmSz+8dwDM7C+95 aj4BOiOjJCztTxZNMINw5KkSCcQDtCZZTOsQrdM6g5mHvJoNEUC74C5lFtQeUqc+QmqM OW6w== X-Gm-Message-State: AOAM531pQTNylUAgrWL8KrOT4ZpftlgRmFA7lC+H3AXLwyoC93RSIUBj fj2tq+2BVJG0wdRpmS2pb+GrO/isEJg= X-Google-Smtp-Source: ABdhPJzPSZ0E6KOsAx6BP0LKx77IxqHJMgZozFhKEYWAvOMOi8zmNwe8ANv4S3mDq68Z/Omy/JegqQ== X-Received: by 2002:a05:6214:4107:: with SMTP id kc7mr6619434qvb.52.1643063070311; Mon, 24 Jan 2022 14:24:30 -0800 (PST) Received: from hurd (dsl-205-233-125-146.b2b2c.ca. [205.233.125.146]) by smtp.gmail.com with ESMTPSA id l10sm8293063qkj.83.2022.01.24.14.24.29 for <bug-guix@HIDDEN> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 14:24:29 -0800 (PST) From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> To: bug-guix <bug-guix@HIDDEN> Subject: Guix should not set global variables that may affect host Date: Mon, 24 Jan 2022 17:24:29 -0500 Message-ID: <87zgnk4vs2.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f2a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2a; envelope-from=maxim.cournoyer@HIDDEN; helo=mail-qv1-xf2a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello! There are multiple reports about the negative effects of Guix setting variables such as XDG_DATA_DIRS on foreign distributions, that may cause problems a severe as locking users out of their graphical [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (maxim.cournoyer[at]gmail.com) -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.51.188.17 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.3 SPOOFED_FREEMAIL No description available. 1.5 SPOOF_GMAIL_MID From Gmail but it doesn't seem to be... X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) Hello! There are multiple reports about the negative effects of Guix setting variables such as XDG_DATA_DIRS on foreign distributions, that may cause problems a severe as locking users out of their graphical session [0]. In my opinion, we should pursue patching every application/library to use a Guix-specific variant, e.g. GUIX_XDG_DATA_DIRS instead of XDG_DATA_DIRS, to avoid interfering with the host system, as was done for GUIX_PYTHONPATH. This is a big task in itself; we can open more focused/actionable tasks for each environment variable, starting with those causing the most serious issues. Any takers? Maxim [0] https://issues.guix.gnu.org/26202
Maxim Cournoyer <maxim.cournoyer@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#53514
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.