Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 771630

Summary: app-crypt/pinentry disables gtk-2 pinentry creation
Product: Gentoo Linux Reporter: Petre Rodan <pr.gentoo-acct>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge.info
proposed patch

Description Petre Rodan 2021-02-19 16:31:52 UTC
it looks like since -r4 the gtk use flag only compiles the pinentry-gnome3 and disables the pinentry-gtk2 binary altogether. I do not have a full gnome desktop to use -gnome3 tho.

adding 
$(use_enable gtk pinentry-gtk2)
and removing the disable-pinentry-gtk2 in the ebuild fixes my problem.

[ebuild   R    ] app-crypt/pinentry-1.1.0-r4::gentoo  USE="caps gtk ncurses -emacs -gnome-keyring -qt5" 0 KiB


please don't remove functionality present in the upstream package.


Reproducible: Always

Steps to Reproduce:
1. emerge pinentry with +gtk
2. fail to find /usr/bin/pinentry-gtk-2
3.
Actual Results:  
 ~/.gnupg $ pinentry-gnome3 
No $DBUS_SESSION_BUS_ADDRESS found, falling back to curses
OK Pleased to meet you

 ~/.gnupg $ grep pinentry *.conf
gpg-agent.conf:pinentry-program /usr/bin/pinentry-gtk-2

so decrypting files will fail with
 $ gpg --decrypt resolv.conf.asc 
gpg: encrypted with 4096-bit RSA key, ID B28F87A6E90628CD, created 2016-01-08
      "Petre Rodan <petre.rodan@cyberghost.ro>"
gpg: public key decryption failed: No pinentry
gpg: decryption failed: No secret key


Expected Results:  
expect to find /usr/bin/pinentry-gtk-2 after merge
Comment 1 Petre Rodan 2021-02-19 16:34:18 UTC
Created attachment 687609 [details]
emerge.info
Comment 2 Petre Rodan 2021-02-19 16:56:40 UTC
Created attachment 687612 [details, diff]
proposed patch
Comment 3 Petre Rodan 2021-02-19 17:32:44 UTC
nevermind, I just read about gtk2's end of life.
sorry for the noise.