I tried building gpgme-1.5.1 on NetBSD in a sandbox with a fake $HOME. It
stopped with:
gpgsm --import ./cert_g10code_test1.der
gpgsm: error creating keybox
`/scratch/security/gpgme/work/.home/.gnupg/pubring.kbx': No such file or directory
gpgsm: you may want to start the gpg-agent first
gpgsm: keyblock resource
`/scratch/security/gpgme/work/.home/.gnupg/pubring.kbx': No such file or directory
- Error code 1
/scratch/security/gpgme/work/.home does exist, but
/scratch/security/gpgme/work/.home/.gnupg doesn't.