How to unbreak pinentry-curses in F32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sharing the following for the benefit of others. Entering a passphrase for your gpg key with a passphrase is broken again, if you're on a simple ssh connection, from the looks of it.

It originally broke a year or so ago – maybe longer, I don't recall exactly -- when the simple prompt for your passphrase was replaced by a separate pinentry tool that wanted to open a pretty X window for that. Nobody uses ssh anymore, apparently, and checking DISPLAY and falling back to a terminal prompt wasn't very obvious, so everyone had to figure out how to do

echo pinentry-program /usr/bin/pinentry-curses >~/.gnupg/gpg-agent.conf

Well, even that no longer works:

$ git tag -s -a libcxx/0.21.0/`date +%Y%m%d%H%M%S` -m 'Tag version 0.21.0'
error: gpg failed to sign the data
error: unable to sign the tag

… aaaand, we're done.

stracing what was going on wasn't very enlightening:

[pid 2581154] read(4, "INQUIRE PINENTRY_LAUNCHED 2581156 curses 1.1.0 - gnome localhost:10.0\n", 1002) = 70 [pid 2581154] write(2, "[GNUPG:] PINENTRY_LAUNCHED 2581156 curses 1.1.0 - gnome localhost:10.0", 70 <unfinished …>

[ buncha noise, and finally ]

[pid 2581154] read(4, "ERR 83918950 Inappropriate ioctl for device <Pinentry>\n", 1002) = 55

And that's it. After reading random man pages, here and there, and simply trying things at random, I discovered that setting GPG_TTY environment variable makes pinentry-curses work again:

GPG_TTY=`tty` git tag -s [options]

And, pinentry-curses works again. There you go.

Why can't this be an obvious default fallback, so everything works flawlessly, by default, for everyone? Would love to hear a logical explanation.

Attachment: pgp1SwhD483qu.pgp
Description: PGP signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux