Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777678 - mail-client/claws-mail-3.17.8: When decrypting mails it searches for /usr/bin/pinentry-gtk-2 which was removed from gentoo
Summary: mail-client/claws-mail-3.17.8: When decrypting mails it searches for /usr/bin...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-22 09:11 UTC by Uwe Scholz
Modified: 2021-03-22 10:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of my local "emerge --info mail-client/claws-mail" command (claws-mail-emerge-info.txt,7.34 KB, text/plain)
2021-03-22 10:44 UTC, Uwe Scholz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Scholz 2021-03-22 09:11:56 UTC
As stated in a gentoo-user list email, pinentry-gtk-2 is missing since some months[*]. The binary was located under /usr/bin/pinentry-gtk-2.

This causes claws-mail to be unable to decrypt gpg-encrypted emails. A look into the claws-mail logs when clicking on an encrypted emails shows this:

messageview.c:1400:decrypting message part
sgpgme.c:469:data 0x7ffc6431b2f0 (11068 7632)
prefs_gpg.c:671:Can't disable gpg agent (no GPG_AGENT_INFO)
sgpgme.c:509:can't decrypt (No pinentry)
pgpmime.c:343:plain is null!

This results in being unable to read the encrypted email in claws-mail. A workaround for me was to create a symlink from pinentry-gnome3 to pinentry-gtk-2 via "ln -s /usr/bin/pinentry-gnome3 /usr/bin/pinentry-gtk-2"

After doing that, when clicking on an encrypted email in claws-mail, a popup opened where I could enter my gpg-key password and I could read the decrypted email.


[*] https://www.mail-archive.com/gentoo-user@lists.gentoo.org/msg184481.html

Reproducible: Always

Steps to Reproduce:
1. Install app-crypt/gnupg, mail-client/claws-mail (+pgp), app-crypt/pinentry (+gtk) and app-crypt/gcr (+gtk)
2. Open claws-mail, configure it correctly to decrypt emails via gpg
3. Click on an encrypted email
Actual Results:  
A warning shows up in the mail window above the email text, saying "Couldn't decrypt: No pinentry"

Expected Results:  
A popup should open up asking me to enter my gpg-key password.

Doing a 

"ln -s /usr/bin/pinentry-gnome3 /usr/bin/pinentry-gtk-2"

as root, a popup shows up when clicking on an encrypted email where I can enter my gpg-key password.
Comment 1 Sam James archtester gentoo-dev Security 2021-03-22 09:26:59 UTC
Can we have emerge --info mail-client/claws-mail for completeness?
Comment 2 Uwe Scholz 2021-03-22 10:44:31 UTC
Created attachment 692940 [details]
Output of my local "emerge --info mail-client/claws-mail" command