Bug#782904: python-debian test failures with gnupg-2.1.3

Stuart Prescott stuart at debian.org
Sat Aug 6 06:45:31 UTC 2016


Control: tags -1 + patch

> The test suite failures reported in this bug still exist with gpgv 2.1.14-3
> from experimental.

The root of the problem is that the new gpgv spits out a lot more information 
on status-fd than it used to and the test suite is strict in not wanting to 
see extra fields (to make sure one of them is not something like BADSIG).

For reference, with gpgv 2.1.14-3 from experimental:

$ gpgv --status-fd 1 --keyring /usr/share/keyrings/debian-keyring.gpg 
../python-debian_0.1.28_source.changes
[GNUPG:] PROGRESS need_entropy X 30 120
[GNUPG:] PROGRESS need_entropy X 120 120
[ ... 8< ... snipped a further 108 lines of the PROGRESS ...  8< ... ]
[GNUPG:] NEWSIG
gpgv: Signature made Tue Jun 14 14:54:20 2016 UTC using RSA key ID 
[GNUPG:] KEY_CONSIDERED 90E2D2C1AD146A1B7EBB891DBBC17EBB1396F2F7 0
[GNUPG:] SIG_ID 9GygF08Hh2I/7oKF/hsxVULBUhU 2016-06-14 1465916060
[GNUPG:] KEY_CONSIDERED 90E2D2C1AD146A1B7EBB891DBBC17EBB1396F2F7 0
[GNUPG:] GOODSIG BBC17EBB1396F2F7 Stuart Prescott <stuart at nanonanonano.net>
gpgv: Good signature from "Stuart Prescott <stuart at nanonanonano.net>"
gpgv:                 aka "Stuart Prescott <stuart at debian.org>"
gpgv:                 aka "Stuart Prescott <stuart+debian at nanonanonano.net>"
[GNUPG:] VALIDSIG 90E2D2C1AD146A1B7EBB891DBBC17EBB1396F2F7 2016-06-14 
1465916060 0 4 0 1 8 01 90E2D2C1AD146A1B7EBB891DBBC17EBB1396F2F7

So gpgv now includes PROGRESS, NEWSIG and KEY_CONSIDERED output. None of these 
keys conveys any additional information with the GOODSIG and VALIDSIG keys 
remaining unchanged.

The attached patch just filters these three headers out from the gpgv output 
and calm is restored.

python-debian and gnupg maintainers -- any comments here?


-- 
Stuart Prescott    http://www.nanonanonano.net/   stuart at nanonanonano.net
Debian Developer   http://www.debian.org/         stuart at debian.org
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Filter-unwanted-gpgv-headers-in-signature-check.patch
Type: text/x-patch
Size: 1245 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-python-debian-maint/attachments/20160806/d25b9f82/attachment.bin>


More information about the pkg-python-debian-maint mailing list