unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: help-guix@gnu.org
Subject: Re: Can I easily install GNU Emacs 27.1.50 via Guix?
Date: Fri, 18 Dec 2020 10:33:14 -0500	[thread overview]
Message-ID: <87czz7gmdh.fsf@gmail.com> (raw)
In-Reply-To: <87v9czmfxw.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 18 Dec 2020 13:55:39 +0100")

Hi,

Ricardo Wurmus <rekado@elephly.net> writes:

> Dr. Arne Babenhauserheide <arne_bab@web.de> writes:
>
>> Carlo Zancanaro <carlo@zancanaro.id.au> 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


  parent reply	other threads:[~2020-12-18 15:41 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09 16:46 Can I easily install GNU Emacs 27.1.50 via Guix? Jorge P. de Morais Neto
2020-12-09 20:56 ` Pierre Neidhardt
2020-12-10 12:40   ` zimoun
2020-12-17 22:54     ` Jorge P. de Morais Neto
2020-12-17 22:59       ` Jorge P. de Morais Neto
2020-12-18  2:05       ` zimoun
2020-12-18  4:03         ` Carlo Zancanaro
2020-12-18  9:00           ` zimoun
2020-12-18  9:36             ` Carlo Zancanaro
2020-12-18 10:38               ` zimoun
2020-12-18 11:37                 ` Carlo Zancanaro
2020-12-18 13:59                   ` zimoun
2020-12-19  0:17                     ` Carlo Zancanaro
2020-12-18 10:44               ` Dr. Arne Babenhauserheide
2020-12-18 12:55                 ` Ricardo Wurmus
2020-12-18 14:05                   ` zimoun
2020-12-18 15:33                   ` Maxim Cournoyer [this message]
2020-12-18 15:09               ` Jorge P. de Morais Neto
2020-12-18 23:17                 ` Carlo Zancanaro
2020-12-18  9:50           ` Ricardo Wurmus
2020-12-10 12:27 ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czz7gmdh.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).