Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374121 - net-misc/keychain: occasional problem adding gpg keys
Summary: net-misc/keychain: occasional problem adding gpg keys
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-05 10:56 UTC by Amadeusz Żołnowski (RETIRED)
Modified: 2012-02-15 18:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.