Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 771630 - app-crypt/pinentry disables gtk-2 pinentry creation
Summary: app-crypt/pinentry disables gtk-2 pinentry creation
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-19 16:31 UTC by Petre Rodan
Modified: 2021-02-19 17:32 UTC (History)
0 users

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


Attachments
emerge.info (emerge.info,4.79 KB, application/x-info)
2021-02-19 16:34 UTC, Petre Rodan
Details
proposed patch (ebuild.patch,731 bytes, patch)
2021-02-19 16:56 UTC, Petre Rodan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.