Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 374121

Summary: net-misc/keychain: occasional problem adding gpg keys
Product: Gentoo Linux Reporter: Amadeusz Żołnowski (RETIRED) <aidecoe>
Component: New packagesAssignee: Jeremy Olexa (darkside) (RETIRED) <darkside>
Status: RESOLVED WORKSFORME    
Severity: normal CC: drobbins
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Amadeusz Żołnowski (RETIRED) gentoo-dev 2011-07-05 10:56:48 UTC
I sometimes get following error:

 * keychain 2.7.1 ~ http://www.funtoo.org
 * Found existing gpg-agent: 3323
 * Adding 2 gpg key(s): AB012345 DF012345
/usr/bin/keychain: line 1519: 15340 Done                    echo
     15341 Aborted                 | env LC_ALL="$pinentry_lc_all" gpg --no-options --use-agent --no-tty --sign --local-user "$k" -o- > /dev/null 2>&1
/usr/bin/keychain: line 1519: 15342 Done                    echo
     15343 Aborted                 | env LC_ALL="$pinentry_lc_all" gpg --no-options --use-agent --no-tty --sign --local-user "$k" -o- > /dev/null 2>&1
 * Error: Problem adding (is pinentry installed?); giving up

I'm getting this error for maybe a week, now. But none of pinentry and gnupg
was updated in this time.  I have following version:

  app-crypt/pinentry-0.8.1
  app-crypt/gnupg-2.0.17-r2


My .bashrc:

  keys=$(< ${HOME}/.keys)
  export PATH="$HOME/.local/bin:$PATH"
  export GPG_TTY=$(tty)

  if [[ $- != *i* ]] ; then
    eval `keychain --eval ${keys} --quiet --noask --quick`
    return
  fi
  
  . /etc/profile.d/bash-completion.sh
  eval `keychain --eval ${keys}`
  [[ $(tty) == /dev/tty[0-9] ]] && reset


Reproducible: Sometimes
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-02-15 17:57:56 UTC
Later this has never happened. I think the bug can be closed.