unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55258: Icedove, external OpenGPG configuration and ld path
@ 2022-05-04  8:43 Josselin Poiret via Bug reports for GNU Guix
  2022-05-04 12:19 ` Liliana Marie Prikler
  2022-09-28 22:25 ` Jonathan Brielmaier
  0 siblings, 2 replies; 4+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2022-05-04  8:43 UTC (permalink / raw)
  To: 55258

Hello everyone,

Currently, if you want to use a smart card with icedove, you have to
enable mail.openpgp.allow_external_gnupg in the config editor, but on
Guix, icedove will still not find the key that's on your smart card,
because it's unable to dlopen the GPGME library (understandably).

For now, my workaround is to launch icedove via

`LD_LIBRARY_PATH="$(guix build gpgme)/lib" icedove`

I outlined something similar to get icecat to be able to share desktops
under wayland [1], this time with the pipewire libraries.  This doesn't
seem like a great out-of-the-box experience for users, especially since
nothing indicates that this is the root of the problem.  Is there
anything we could do about this?

Adding all possible optional deps to LD_LIBRARY_PATH in a wrapper seems
a bit overkill, since for example PipeWire's closure is ~800 MiB,
depending for example on X libraries, and packagers won't always be able
to find 100% of the optional deps that are dlopen'd.

WDYT?

[1] https://lists.gnu.org/archive/html/guix-devel/2022-04/msg00205.html
(8735hx74qw.fsf@jpoiret.xyz)

-- 
Josselin Poiret




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#55258: Icedove, external OpenGPG configuration and ld path
  2022-05-04  8:43 bug#55258: Icedove, external OpenGPG configuration and ld path Josselin Poiret via Bug reports for GNU Guix
@ 2022-05-04 12:19 ` Liliana Marie Prikler
  2022-09-28 22:25 ` Jonathan Brielmaier
  1 sibling, 0 replies; 4+ messages in thread
From: Liliana Marie Prikler @ 2022-05-04 12:19 UTC (permalink / raw)
  To: Josselin Poiret, 55258

Am Mittwoch, dem 04.05.2022 um 10:43 +0200 schrieb Josselin Poiret:
> Hello everyone,
> 
> Currently, if you want to use a smart card with icedove, you have to
> enable mail.openpgp.allow_external_gnupg in the config editor, but on
> Guix, icedove will still not find the key that's on your smart card,
> because it's unable to dlopen the GPGME library (understandably).
> 
> For now, my workaround is to launch icedove via
> 
> `LD_LIBRARY_PATH="$(guix build gpgme)/lib" icedove`
> 
> I outlined something similar to get icecat to be able to share
> desktops under wayland [1], this time with the pipewire libraries. 
> This doesn't seem like a great out-of-the-box experience for users,
> especially since nothing indicates that this is the root of the
> problem.  Is there anything we could do about this?
Rather than adjusting LD_LIBRARY_PATH, we typically patch the dlopen()
call to point to the store.  Would this be a workable solution for your
problem?

> Adding all possible optional deps to LD_LIBRARY_PATH in a wrapper
> seems a bit overkill, since for example PipeWire's closure is ~800
> MiB, depending for example on X libraries, and packagers won't always
> be able to find 100% of the optional deps that are dlopen'd.
True, in the general case we do rely on both rgrep and the package
developer making sane decisions, which might not always work out in our
favour.  As for debugging, strace might be useful to see what the
program is trying to do and should be able to detect a failing dlopen
call.

Cheers




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#55258: Icedove, external OpenGPG configuration and ld path
  2022-05-04  8:43 bug#55258: Icedove, external OpenGPG configuration and ld path Josselin Poiret via Bug reports for GNU Guix
  2022-05-04 12:19 ` Liliana Marie Prikler
@ 2022-09-28 22:25 ` Jonathan Brielmaier
  2022-09-29  9:31   ` Josselin Poiret via Bug reports for GNU Guix
  1 sibling, 1 reply; 4+ messages in thread
From: Jonathan Brielmaier @ 2022-09-28 22:25 UTC (permalink / raw)
  To: 55258

In case of gpgme the size isn't a real problem as it increases the
closure of Icedove by about 2-3 MiB.

Does it help to set `mail.openpgp.alternative_gpg_path` to something
meaningful?




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#55258: Icedove, external OpenGPG configuration and ld path
  2022-09-28 22:25 ` Jonathan Brielmaier
@ 2022-09-29  9:31   ` Josselin Poiret via Bug reports for GNU Guix
  0 siblings, 0 replies; 4+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2022-09-29  9:31 UTC (permalink / raw)
  To: Jonathan Brielmaier, 55258

Hi Jonathan,

Jonathan Brielmaier <jonathan.brielmaier@web.de> writes:
> In case of gpgme the size isn't a real problem as it increases the
> closure of Icedove by about 2-3 MiB.
>
> Does it help to set `mail.openpgp.alternative_gpg_path` to something
> meaningful?

IIUC, this variable only denotes the location of the gpg executable, not
of the gpgme library itself.  I think the only option would be to add
LD_LIBRARY_PATH=/gnu/store/xxx-gpgme/lib/:$LD_LIBRARY_PATH to the
wrapper unfortunately.

Best,
-- 
Josselin Poiret




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-29  9:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-04  8:43 bug#55258: Icedove, external OpenGPG configuration and ld path Josselin Poiret via Bug reports for GNU Guix
2022-05-04 12:19 ` Liliana Marie Prikler
2022-09-28 22:25 ` Jonathan Brielmaier
2022-09-29  9:31   ` Josselin Poiret via Bug reports for GNU Guix

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).