Bug 1945355

Summary: Since GTK2 is EOL, is it possible to build pinentry-gtk with GTK3?
Product: [Fedora] Fedora Reporter: ersen <oguz>
Component: pinentryAssignee: Boris Ranto <branto>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: Axel.Thimm, branto, jjelen, rdieter, sochotni
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-31 18:19:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ersen 2021-03-31 17:48:59 UTC
Description of problem:
pinentry-gtk subpackage is build with GTK2 and since GTK2 is EOL, is it possible to build it with GTK3?

Version-Release number of selected component (if applicable):
pinentry-gtk    1.1.0-9.fc33

How reproducible:
Always

Steps to Reproduce:
1. Install pinentry-gtk
2.
3.

Actual results:
It is build with GTK2

Expected results:
It will be build with GTK3

Additional info:

Comment 1 Rex Dieter 2021-03-31 18:19:49 UTC
There's already a pinentry-gnome3 package, so yes (just named differently).

Comment 2 ersen 2021-03-31 19:14:48 UTC
I couldn't manage pinentry-gnome3 to work properly on sway. I have "pinentry-program /usr/bin/pinentry-gnome3" in gpg-agent.conf and when I start a program (pass) from terminal, curses based interface appears. When I try to select a password to decrypt with wofi (a dmenu like program), nothing happens visually but when I check running processes from terminal, I can see gpg2 and gpg-agent processes are running. But pinentry-gtk works fine and shows me a graphical dialog box in both cases, that is why I am using it. How can I make pinentry-gnome3 to work on a non-GNOME environment?

Comment 3 Jakub Jelen 2021-04-01 07:13:02 UTC
If you uninstall pinentry-gtk and install pinentry-gnome3 it should get the priority automatically, unless there is some bug in the selection in /bin/pinentry.

You might need to kill the agent first after changing the configuration.

Comment 4 ersen 2022-02-26 07:19:07 UTC
I had pinentry-gnome3 installed but it was falling back to curses with the error message:

No Gcr System Prompter available, falling back to curses
OK Pleased to meet you

After manually installing gcr package, the problem was solved and I got pinentry-gnome3 working.
I am using sway and installing pinentry-gnome3 didn't pull gcr as dependency.