From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IPYYIZXN3F/kJwAA0tVLHw (envelope-from ) for ; Fri, 18 Dec 2020 15:41:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sAzWHJXN3F80UgAAbx9fmQ (envelope-from ) for ; Fri, 18 Dec 2020 15:41:09 +0000 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 B1483940366 for ; Fri, 18 Dec 2020 15:41:08 +0000 (UTC) Received: from localhost ([::1]:33622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqHsR-0002CX-Jz for larch@yhetil.org; Fri, 18 Dec 2020 10:41:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqHku-0001X7-Ue for help-guix@gnu.org; Fri, 18 Dec 2020 10:33:22 -0500 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:46512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqHks-0003rc-9C for help-guix@gnu.org; Fri, 18 Dec 2020 10:33:20 -0500 Received: by mail-qt1-x82a.google.com with SMTP id h19so1493003qtq.13 for ; Fri, 18 Dec 2020 07:33:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=EKftxAEJGb2QkW1WjpUos6+I3wunrrmhctBksK4rhzA=; b=bNviVmlHfSHFHeo9Fh0eIpPqKtqOQ34FX+6yAsoFDvWRQGdqkXK2aDQ/my71co7WzP U+lu/zlH0Fefz33Fw66Yemibl+E99NOa7wpGRcFsdzid9rcOnwiI9rTLnqvG/2cJ0/KO QRw4a0JAWx28L5YTPdeE9qZJDJNLDIn5s9KvN7Kqg0RoiJiCQ8c8AEDxlc7TCFIPQ3Yp sjC5XztBmScqL6akVhROLOyuXQCzsUFGz9eN45OfYdDx+eEsDR+zMcVZWU8pxDMWhMal RGTzi4hOAzUg7NupZlGmaa01jq87YrPM/qJiv8HPEKdxyhB+Brm85TJE0DL3A6VSR48V O0TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=EKftxAEJGb2QkW1WjpUos6+I3wunrrmhctBksK4rhzA=; b=fSoJDRC/AbHsLcxJgstqNsSG70x47I75smyxqTz9+XJrNaCLZcTyGhQK0uGWyiPT2o /Dl9c2GUi2LvnKwjzZQuA3KIhB2leO5MCiPPx7ofLuytWq6iwFMXGCQLzdvTWCe1lhhw ark+oaRqCq+/V7BBT7IgP3gsnR94e6sg7veeTgM1E5BVmpvnGkf+XroIBLUXp1uQyjmX hDDJfIBnX9necJw4FRaHIYUKxrZkGc4+MH20fUQGvKbmuUja6NmlB1AyrM1DVKSG1DTN C1oQTYiFGfUyrTHtA6fj1Hviu+WLlz7YVpM3OdzK9GljKPtsCu4nQAoi1+CVd6A/tGub 8HkQ== X-Gm-Message-State: AOAM533TR4At+5AMg4GbtDf2uaZ+FRvJUc6OWrrSAFGU0eGPWVOqd+qt lz+pW1oFchhMrCuq91gQ633twU1sa9Wr5A== X-Google-Smtp-Source: ABdhPJytnFE/DKY8SNDPnXe5U2KSX32OOddxX3kAc2R8G2wo/SPRAoZXSOHx+eHNVbDNLnYOWDgVwA== X-Received: by 2002:ac8:7458:: with SMTP id h24mr4414680qtr.157.1608305595753; Fri, 18 Dec 2020 07:33:15 -0800 (PST) Received: from hurd (dsl-10-146-235.b2b2c.ca. [72.10.146.235]) by smtp.gmail.com with ESMTPSA id c20sm5415537qtj.29.2020.12.18.07.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Dec 2020 07:33:15 -0800 (PST) From: Maxim Cournoyer To: Ricardo Wurmus Subject: Re: Can I easily install GNU Emacs 27.1.50 via Guix? References: <87h7ov0vxl.fsf@disroot.org> <87h7ou1yxf.fsf@ambrevar.xyz> <861rfxj0lx.fsf@gmail.com> <87wnxgf3hh.fsf@disroot.org> <867dpfools.fsf@gmail.com> <875z4z4v6s.fsf@zancanaro.id.au> <86h7ojmqtq.fsf@gmail.com> <8736034fsk.fsf@zancanaro.id.au> <87wnxf75s9.fsf@web.de> <87v9czmfxw.fsf@elephly.net> Date: Fri, 18 Dec 2020 10:33:14 -0500 In-Reply-To: <87v9czmfxw.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 18 Dec 2020 13:55:39 +0100") Message-ID: <87czz7gmdh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82a.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-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.22 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=bNviVmlH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: B1483940366 X-Spam-Score: -0.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3Ip8IS1Y4Sns Hi, Ricardo Wurmus writes: > Dr. Arne Babenhauserheide writes: > >> Carlo Zancanaro writes: >>> One may argue that the system is functioning correctly, and this is an >>> unfortunate consequence of the way that Guix works. I would still >>> consider the faulty behaviour a bug - even if it is a result of >>> intentional decisions made in Guix's design. Running evince (i.e. >>> /usr/bin/evince) is failing because of an environment variable that >>> Guix's wrapper sets for emacs. That environment variable is propagated >>> to child processes (as environment variables are), and in this >>> instance that causes the child process to misbehave. This is a bug >>> caused by Guix's wrapping of emacs. >> >> In practical terms: You would expect Guix to rename the environment >> variable and also patch all guix-installed programs so that they use the >> renamed variable without affecting any non-Guix-Program? > > Yes. > > I agree that the current behaviour is a whole class of bugs that exists > because of confusion between non-Guix binaries and Guix binaries, such > as binary plugins loaded indiscriminately from locations in environment > variables. > > It is a difficult but, in my opinion, necessary project, to prefix all > these variables and to patch packages to use the prefixed variables for > augmentation, while also making sense of the unprefixed variables > (e.g. setting PYTHONPATH to make more Python modules available without > having the program use PYTHONPATH by itself). I have been thinking the same thing. It'd make sense to prevent unwanted interactions between Guix and a foreign distribution by prefixing all the environment variables used by Guix by GUIX_ and patching the software in Guix to honor those (along with their usual non-prefixed version). For example, we'd use GUIX_EMACSLOADPATH instead of EMACSLOADPATH. +1. Maxim