Monday 10 Aug 2015 12:02:25, Daniel Campbell (zlg) wrote : > On 08/10/2015 06:15 AM, Doug Goldstein wrote: > > On Mon, Aug 10, 2015 at 3:36 AM, Chí-Thanh Christopher Nguyễn > > <[email protected]> wrote: > >> Doug Goldstein schrieb: > >>> gpg: cancelled by user gpg: skipped "0xA2BC03DC87ED1BD4": > >>> Operation cancelled gpg: signing failed: Operation cancelled > >>> error: gpg failed to sign the data > >> > >> There was an IRC discussion yesterday about this. Probably your > >> pinentry tries to talk to a GUI and fails. Try: > >> > >> unset DISPLAY export GPG_TTY=$(tty) > >> > >> to make it fall back to curses, or use "eselect pinentry" to > >> select curses as default. > >> > >> Interestingly, git requires GPG_TTY if eselect-pinentry is set to > >> gtk-2 or qt4, but repoman doesn't. > >> > >> > >> Best regards, Chí-Thanh Christopher Nguyễn > >> > >> > > > > $ eselect pinentry show Current pinentry binary implementation: > > pinentry-curses > > > > $ eselect pinentry list Available pinentry binary implementations: > > [1] pinentry-curses * > > > > Its the only version I've got on this machine. The box is headless > > and I ssh into and I use keychain to manage my SSH and GPG agent. > > > What's your keychain line look like in your .bashrc/.bash_profile? > Here's the relevant portion of mine. I was also having problems with > it until I changed the order of the arguments: > > [snip] > /usr/bin/keychain --agents ssh,gpg ~/.ssh/id_rsa ${GPGKEY} > source ~/.keychain/sporkbox-sh > /dev/null > source ~/.keychain/sporkbox-sh-gpg > /dev/null > [snip] > > For some reason, it's important that ssh comes before gpg. I got this > advice straight from drobbins, so unless it's changed, that's the way > to get it working. > -- > Daniel Campbell - Gentoo Developer > OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net > fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6
Would someone mind documenting this issue in the wiki? https://wiki.gentoo.org/wiki/Gentoo_git_workflow#Issues So that we all have a point of reference to go to. Thanks!
pgp5LAuSmShMi.pgp
Description: PGP signature
