Re: [PATCH 2/5] lib-gpg: allow tests with the GPGSM prereq first
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Oct 9, 2025, 12:30 UTC
- Message-ID
- <CAP8UFD1FOy1DZnhRCqxyPe9g8+S1yDMR9R=JstGNC4dtOQ1ntQ@mail.gmail.com>
- In-Reply-To
- <871pncdfrw.fsf@gmail.com>
On Thu, Oct 9, 2025 at 3:29 AM Collin Funk <collin.funk1@gmail.com> wrote:
Show 21 quoted lines
> > I am not sure. It might depend on the gpg version. Or maybe gpgsm > > does it but not gpg. I will check. > > If $GNUPGHOME or --homedir is the default (usually ~/.gnupg) gets > created by 'gpg' and 'gpgsm': > > $ ls ~/.gnupg > ls: cannot access '/root/.gnupg': No such file or directory > $ gpgsm > gpgsm: directory '/root/.gnupg' created > gpgsm: invalid command (there is no implicit command) > $ rm -rf ~/.gnupg && gpg > gpg: directory '/root/.gnupg' created > [...] > > If it is not the default then it will not be created: > > $ GNUPGHOME=$HOME/test gpgsm > gpgsm: keyblock resource '/root/test/pubring.kbx': No such file or directory > $ GNUPGHOME=$HOME/test gpg > gpg: keyblock resource '/root/test/pubring.kbx': No such file or directory
Thanks for this useful information. I have added a code comment to explain this in the v2 series I just sent.