Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79806 - [pinentry] version 1.2.1-2 not working here anymore

Attached to Project: Arch Linux
Opened by Michael Ortmann (mortmann) - Thursday, 28 September 2023, 07:56 GMT
Last edited by Toolybird (Toolybird) - Friday, 29 September 2023, 22:08 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

after updating from pinentry 1.2.1-1 to 1.2.1-2 it doesnt work here anymore.

downgrade to pinentry 1.2.1-1 solves the problem.

if i execute "gpg2 -d foo.gpg" with version 1.2.1-1 pinentry works fine

if i execute "gpg2 -d foo.gpg" with version 1.2.1-2 pinentry doesnt show up and gpg reports:

gpg: public key decryption failed: No pinentry
gpg: decryption failed: No secret key

if i "strace gpg2 -d foo.gpg" i get for version 1.2.1-1:

read(5, "INQUIRE PINENTRY_LAUNCHED 6547 q"..., 1002) = 84

for version 1.2.1-2:

read(5, "ERR 67108949 No pinentry <GPG Ag"..., 1002) = 37
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 29 September 2023, 22:08 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Michael Ortmann (mortmann) - Thursday, 28 September 2023, 12:09 GMT
manually installing kwayland fixes the problem for wayland (sway)

but its still broken for tty
Comment by Toolybird (Toolybird) - Thursday, 28 September 2023, 20:53 GMT
Seems to work fine here i.e. cannot repro. There were 2 changes between -1 and -2. The first was to remove unneeded libcap entry ( FS#77283 ). The second was to "Enable Caps Lock checking for pinentry-qt" ( FS#75740 ) which involved makedepending against 'qt5-x11extras' and 'kwayland', which seems the most relevant to your circumstances.

What environment are you running this in? What terminal emulator? Does it work when run directly on the linux console [1] (tty)?

[1] https://wiki.archlinux.org/title/Linux_console
Comment by Michael Ortmann (mortmann) - Friday, 29 September 2023, 11:51 GMT
if i update the box to latest package versions via
pacman -Syuv
and reboot into console (plain tty, no x, no wayland)
pinentry 1.2.1-2 is installed and doesnt work

then if i downgrade pinentry via
pacman -U /var/cache/pacman/pkg/pinentry-1.2.1-1-x86_64.pkg.tar.zst
and again reboot into console (plain tty, no x, no wayland)
pinentry 1.2.1-1 is installed and doesnt work

so, lets check configuration.

in ~/.gnupg/gpg-agent.conf i have:
pinentry-program /usr/bin/pinentry-qt
Comment by Michael Ortmann (mortmann) - Friday, 29 September 2023, 12:03 GMT
current install status:

extra/qt5-x11extras 5.15.10-1 (qt qt5) [installed]

extra/kwayland 5.110.0-1 (kf5) <- NOT INSTALLED

thats why i also installed kwayland for a test
when i then start sway, pinentry / pinentry-qt works, nice

and after reboot in console works now also :)

so, question is, is kwayland really optional for pinentry if we need this for console?
Comment by Michael Ortmann (mortmann) - Friday, 29 September 2023, 12:12 GMT
i discovered, why pinentry in console didnt work the other day despite kwayland installed.
when there is a wayland session open already, pinentry stops working in any tty-console when i login there,
but that may be another issue.
Comment by Toolybird (Toolybird) - Friday, 29 September 2023, 22:08 GMT
> in ~/.gnupg/gpg-agent.conf i have:
> pinentry-program /usr/bin/pinentry-qt

Hmm, it would have been good if you had mentioned this from the outset. It seems you missed the message from pacman at upgrade:

New optional dependencies for pinentry
kwayland: qt backend
qt5-x11extras: qt backend

which means if using the qt backend, you now *must* install the additional dependencies. See also  FS#79817 

Loading...