[pkg-gnupg-maint] Bug#1086140: ostree: FTBFS against gpg 2.2.45: gpg --import for revocation cert exits 2

Simon McVittie smcv at debian.org
Sun Oct 27 11:14:13 GMT 2024


Control: retitle -1 ostree: FTBFS against gpg 2.2.45: gpg --import for revocation cert exits 2

On Sun, 27 Oct 2024 at 11:14:57 +0100, Andreas Metzler wrote:
> ostree throws a CI error and FTBFS against current sid with gpg
> 2.2.45:
> 
> ERROR: tests/test-remote-gpg-list-keys.sh - too few tests run (expected 7, got 6)
> ERROR: tests/test-remote-gpg-list-keys.sh - exited with status 2

I can reproduce this. The actual error appears to be:

> + gpg --homedir=/var/tmp/tap-test.4h3gy2/gpghome --import /var/tmp/tap-test.4h3gy2/gpghome/revocations/key1.rev
> Imported 0 GPG keys to remote "R1"
> gpg: key 7FCA23D8472CDAFA: "Ostree Tester <test at test.com>" revocation certificate imported
> gpg: Total number processed: 1
> gpg:    new key revocations: 1
> gpg: Note: ultimately trusted key 7FCA23D8472CDAFA expired
> gpg: marginals needed: 3  completes needed: 1  trust model: pgp
> gpg: depth: 0  valid:   2  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 2u
> ++ report_err
> ++ local exit_status=2
> Unexpected nonzero exit status 2 while running: ${GPG} --homedir=${TEST_GPG_KEYHOME} --import ${TEST_GPG_KEYHOME}/revocations/key1.rev

Is it intentional that importing a revocation certificate, apparently
successfully (or at least there are no obvious error/warning messages),
is now exiting with status 2?

The failing test script is:
https://sources.debian.org/src/ostree/2024.8-1/tests/test-remote-gpg-list-keys.sh/
and the test keys and revoation certificate can be found in:
https://sources.debian.org/src/ostree/2024.8-1/tests/gpghome/

Thanks,
    smcv



More information about the pkg-gnupg-maint mailing list