From: Carlo Zancanaro <carlo@zancanaro.id.au>
To: zimoun <zimon.toutoune@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Can I easily install GNU Emacs 27.1.50 via Guix?
Date: Fri, 18 Dec 2020 22:37:49 +1100 [thread overview]
Message-ID: <87wnxf2vle.fsf@zancanaro.id.au> (raw)
In-Reply-To: <86eejnmmao.fsf@gmail.com>
Hi Simon,
On Fri, Dec 18 2020, zimoun wrote:
> Is your point that:
>
> ...
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.
Lots of variables are safe to manipulate, like COLUMNS, or TERM,
but some are dangerous, like GTK_PATH, XDG_DATA_DIRS, and
LD_LIBRARY_PATH (among others). This isn't always a problem, but
sometimes it is.
> However, on my machine running Guix on the top of Debian, I get:
>
> --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
you should have seen different behaviour when GTK_PATH was set
compared to when it wasn't. Namely, when GTK_PATH was set you
should have seen some messages like this in your shell:
(evince:31345): Gtk-WARNING **: 22:26:55.204:
/gnu/store/0vi459fa3b36b5xw8gkxmvfpqz48cyqr-gtk+-3.24.23/lib/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.so:
cannot open shared object file: Permission denied
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.
Carlo
next prev parent reply other threads:[~2020-12-18 11:38 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 [this message]
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
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=87wnxf2vle.fsf@zancanaro.id.au \
--to=carlo@zancanaro.id.au \
--cc=help-guix@gnu.org \
--cc=zimon.toutoune@gmail.com \
/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).