From: Christian Couder Date: Thu, 09 Oct 2025 12:30:23 GMT Subject: Re: [PATCH 2/5] lib-gpg: allow tests with the GPGSM prereq first Message-ID: In-Reply-To: <871pncdfrw.fsf@gmail.com> On Thu, Oct 9, 2025 at 3:29 AM Collin Funk wrote: > > 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.