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

Bug 27467

Summary: gpg does not find gpgkeys_hkp
Product: Gentoo Linux Reporter: Jan-Hendrik Benter <jan-hendrik>
Component: Current packagesAssignee: J Robert Ray <jrray>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gentoosecurity
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jan-Hendrik Benter 2003-08-28 03:05:57 UTC
I have emerged gnupg-1.2.3-r1. When I try to query remote server via hkp, gpg 
does not find gpgkeys_hkp. 

Reproducible: Always
Steps to Reproduce:
1. "emerge gnupg-1.2.3-r1" 
2. gpg --search-keys test@test.de 
Actual Results:  
jani@janimobil jani $ gpg --search-keys test@test.de        
gpg: unable to execute program "gpgkeys_hkp": No such file or directory 
gpg: no handler for keyserver scheme "hkp" 
gpg: keyserver search failed: keyserver error 
jani@janimobil jani $  

Expected Results:  
jani@janimobil jani $ gpg --search-keys test@test.de 
gpgkeys: WARNING: this is an *experimental* HKP interface! 
gpgkeys: searching for "test@test.de" from HKP server subkeys.pgp.net 
Keys 1-10 of 502 for "test@test.de" 
[...] 

gpg tries to find gpgkeys_hkp in /usr/lib/gnupg/gnupg/gpgkeys_hkp, but it is  
in /usr/lib/gnupg/gpgkeys_hkp. 
 
I solved this by creating a symlink: 
 
janimobil root # cd /usr/lib/gnupg/ 
janimobil gnupg # ln -s . gnupg 
janimobil gnupg # ls -l 
total 64 
lrwxr-xr-x    1 root     root            1 Aug 28 12:04 gnupg -> . 
-rwxr-xr-x    1 root     root        56888 Aug 27 22:26 gpgkeys_hkp 
-rwxr-xr-x    1 root     root         3558 Aug 27 22:26 gpgkeys_mailto 
janimobil gnupg #  
 
Maybe "--libexecdir=/usr/lib/gnupg" in 
/usr/portage/app-crypt/gnupg/gnupg-1.2.3-r1.ebuild is responsible for this.
Comment 1 duebel 2003-08-30 03:28:23 UTC
I had the same behaviour. I changed gnupg-1.2.3-r1.ebuild to:

[...]
src_compile() {
        local myconf

        [...]

        econf ${myconf} \
                --libexecdir=/usr/lib \
### Changed here                     ^^^                            ###
                --enable-external-hkp || die "configure failed"
        emake || die "compile problem"
}
[...]

This solved the issue.
Comment 2 Spider (RETIRED) gentoo-dev 2003-08-31 15:46:52 UTC

*** This bug has been marked as a duplicate of 27608 ***