unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Carlo Zancanaro <carlo@zancanaro.id.au>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Can I easily install GNU Emacs 27.1.50 via Guix?
Date: Fri, 18 Dec 2020 14:59:37 +0100	[thread overview]
Message-ID: <CAJ3okZ2FLg5djP9Jz3YYvAu16UgQyT=WDtJbmPm4H8bcOdhS+A@mail.gmail.com> (raw)
In-Reply-To: <87wnxf2vle.fsf@zancanaro.id.au>

Hi,

On Fri, 18 Dec 2020 at 12:37, Carlo Zancanaro <carlo@zancanaro.id.au> wrote:

> My point is: Guix manipulates environment variables in a way that
> can, and does, break "foreign" programs when Guix's programs
> launch "foreign" programs. We should consider this a bug. This bug
> might be hard, or even impossible, to resolve but we should
> consider it a bug nonetheless.

I am not sure to agree.  The unexpected (by you :-)) behaviour at hand
is about Emacs and "M-x shell"; and I will not speak "in general".

> > --8<---------------cut
> > here---------------start------------->8---
> > guix environment --ad-hoc emacs grep coreutils --pure
> > env | grep GTK_PATH
> > /usr/bin/evince # Works!
> >
> > emacs -q -f shell
> > sh-5.0$ env | grep GTK_PATH
> > GTK_PATH=/gnu/store/v3rqcgz6chnmv2sg7lgf4s9kv2xyb5rl-gtk+-3.24.23/lib/gtk-3.0
> > sh-5.0$ /usr/bin/evince
> >
> > (evince:21780): GLib-GIO-ERROR **: 11:24:25.706: No GSettings
> > schemas are installed on the system
> > Trace/breakpoint trap
> > sh-5.0$ unset GTK_PATH
> > sh-5.0$ env | grep GTK_PATH
> > sh-5.0$ /usr/bin/evince
> >
> > (evince:25064): GLib-GIO-ERROR **: 11:32:22.826: No GSettings
> > schemas are installed on the system
> > Trace/breakpoint trap
> > --8<---------------cut
> > here---------------end--------------->8---
> >
> > So the story seems more complicated than GTK_PATH. :-)
>
> Did you try opening the print dialog in evince? If you did, then

I cannot even open "evince" inside Emacs shell...

> you should have seen different behaviour when GTK_PATH was set
> compared to when it wasn't. Namely, when GTK_PATH was set you

...and whatever if GTK_PATH is set or unset.  That's what my example shows.

> The problem is that GTK_PATH is checked for libraries first, where
> it finds the above library and tries and fails to load it. It does
> not fall back to the default paths, but rather treats loading that
> library as having failed, and thus evince cannot print. When
> GTK_PATH is unset it checks the default locations, and
> successfully finds and loads the library, and thus evince can
> print.

My point is: it is more complicated than only the environment variable GTK_PATH.

Well, if you feel it is a bug, please open a bug report detailing what
is the problem.  Personally, I do miss what it is and what could be
the actionable next step.

All the best,
simon


  reply	other threads:[~2020-12-18 14:03 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 [this message]
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
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='CAJ3okZ2FLg5djP9Jz3YYvAu16UgQyT=WDtJbmPm4H8bcOdhS+A@mail.gmail.com' \
    --to=zimon.toutoune@gmail.com \
    --cc=carlo@zancanaro.id.au \
    --cc=help-guix@gnu.org \
    /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).