FS#23018 - gnupg2 missing a dependency?

Attached to Project: Arch Linux
Opened by Bryan Fisher (fisherbryn) - Wednesday, 23 February 2011, 17:53 GMT
Last edited by Eric Belanger (Snowman) - Wednesday, 23 February 2011, 19:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture i686
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
When trying to generate a key on a system, the following error comes up

[bryan@gururu ~]$ gpg2 --gen-key
gpg (GnuPG) 2.0.17; Copyright (C) 2011 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
Your selection?
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)
Requested keysize is 2048 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0) 1w
Key expires at Wed 02 Mar 2011 12:33:12 PM EST
Is this correct? (y/N) y

GnuPG needs to construct a user ID to identify your key.

Real name: Shit Son
Email address: ead8065f5818d309602ba0c0f47ade@gmail.com
Comment: derp
You selected this USER-ID:
"Shit Son (derp) <ead8065f5818d309602ba0c0f47ade@gmail.com>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.

pinentry: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
gpg-agent[905]: can't connect to the PIN entry module: End of file
gpg-agent[905]: command get_passphrase failed: No pinentry
gpg: problem with the agent: No pinentry
gpg: Key generation canceled.
[bryan@gururu ~]$


Installing gtk2 fixes the problem. Should gtk2 or one of its dependencies be a dependency?


Additional info:
[bryan@gururu ~]$ pacman -Si gnupg2
Repository : extra
Name : gnupg2
Version : 2.0.17-1
URL : http://www.gnupg.org/
Licenses : GPL
Groups : None
Provides : None
Depends On : libldap curl bzip2 zlib libksba libgcrypt pth
libusb-compat libassuan texinfo readline pinentry dirmngr
Optional Deps : None
Conflicts With : None
Replaces : None
Download Size : 1322.24 K
Installed Size : 6520.00 K
Packager : Tobias Powalowski <tpowa@archlinux.org>
Architecture : i686
Build Date : Mon 17 Jan 2011 03:40:23 PM EST
MD5 Sum : dffe54c8ac5d959b1efc8673a71eb8f4
Description : GNU Privacy Guard 2 - a PGP replacement tool



Steps to reproduce: Install gnupg2 on a system without gtk2 and try to generate a key.
This task depends upon

Closed by  Eric Belanger (Snowman)
Wednesday, 23 February 2011, 19:12 GMT
Reason for closing:  Not a bug
Additional comments about closing:  gtk2 is a pinentry optdepends
Comment by Greg (dolby) - Wednesday, 23 February 2011, 18:26 GMT
pacman -Qi pinentry:
Optional Deps : gtk: for gtk backend
gtk2: for gtk2 backend
qt3: for qt3 backend
qt: for qt4 backend

Loading...