Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300988 - app-crypt/pinentry-0.7.6 fallback-curses doesn't work
Summary: app-crypt/pinentry-0.7.6 fallback-curses doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 299388
  Show dependency tree
 
Reported: 2010-01-14 13:58 UTC by Kilian
Modified: 2010-06-06 05:09 UTC (History)
0 users

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 Kilian 2010-01-14 13:58:16 UTC
When I'm doing:
$ gpg --decrypt somekey.gpg

it returns (sorry that some parts are in german, if you need it in english please tell me how to switch the lang):

gpg: 3DES verschlüsselte Daten
can't connect to `/root/.gnupg/S.gpg-agent': Datei oder Verzeichnis nicht gefunden
pinentry: cannot connect to X server
gpg-agent[5178]: can't connect server: ec=4.16383
gpg-agent[5178]: can't connect to the PIN entry module: Dateiende
gpg-agent[5178]: command get_passphrase failed: Kein Pinentry
gpg: Problem mit dem Agenten: Kein Pinentry
gpg: Verschlüsselt mit einer Passphrase
gpg: Entschlüsselung fehlgeschlagen: Kein geheimer Schlüssel

pinentry is with USE-Flags ncurses and qt4

for the console, an entry in gpg-agent.conf like "pinentry-program /usr/bin/pinentry-curses" helps, but it doesn't help if gnupg is called while booting (for cryptsetup in my case).

if you need more info (like emerge --info), let me know.

Reproducible: Always
Comment 1 Sven Wegener gentoo-dev 2010-01-20 22:38:31 UTC
The fallback curses only works when $DISPLAY is not set.
Comment 2 Kilian 2010-01-20 22:50:42 UTC
Yeah, but with -0.7.5 it works too, if $DISPLAY is set -> regression

(esp. because crypted volumes don't work with cryptsetup anymore)
Comment 3 Sven Wegener gentoo-dev 2010-01-20 22:58:17 UTC
it's easy to fix for gtk, but it's qt itself that forcibly terminates pinentry when it can't access the x server. i suspect it's a qt3 vs qt4 thing.
Comment 4 Kilian 2010-06-03 00:48:24 UTC
i just tried out the app-crypt/pinentry-0.8.0 and it works fine for the fallback!

So this bug might be closed if you make sure that stabilazation skips the -0.7.6 version.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-06-06 05:09:58 UTC
(In reply to comment #4)
> i just tried out the app-crypt/pinentry-0.8.0 and it works fine for the
> fallback!
> 
> So this bug might be closed if you make sure that stabilazation skips the
> -0.7.6 version.
> 

I've adjusted the stable bug to 0.8.0... 
and closing.