This causes the distcheck target of gpgme to fail: https://jenkins.gnupg.org/job/gpgme/XTARGET=distcheck,label=master/750/
For some reason, there is both a keyring and a keybox, but only the keyring is updated. Looks like the key in the keybox requires reordering, and because that is only done in the keyring, GnuPG will attempt this over and over:
jenkins@soro:/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23/_build/sub/tests/gpg$ GNUPGHOME=$(pwd) top_srcdir=/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23 gpg --list-key alfa|grep sub |wc gpg: WARNING: unsafe permissions on homedir '/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23/_build/sub/tests/gpg' gpg: NOTE: THIS IS A DEVELOPMENT VERSION! gpg: It is only intended for test purposes and should NOT be gpg: used in a production environment or with production keys! 12 48 340 jenkins@soro:/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23/_build/sub/tests/gpg$ ls -l pubring* -rw------- 1 jenkins jenkins 30922 Apr 10 16:33 pubring.gpg -rw------- 1 jenkins jenkins 29826 Apr 10 16:27 pubring.gpg~ -rw-r--r-- 1 jenkins jenkins 21433 Apr 10 16:18 pubring.kbx -rw-r--r-- 1 jenkins jenkins 19766 Apr 10 16:18 pubring.kbx~ -rw-r--r-- 1 jenkins jenkins 2 Apr 10 16:17 pubring-stamp jenkins@soro:/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23/_build/sub/tests/gpg$ ls -l pubring.{gpg,kbx} -rw------- 1 jenkins jenkins 30922 Apr 10 16:33 pubring.gpg -rw-r--r-- 1 jenkins jenkins 21433 Apr 10 16:18 pubring.kbx jenkins@soro:/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23/_build/sub/tests/gpg$ GNUPGHOME=$(pwd) top_srcdir=/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23 gpg --edit-key alfa gpg: WARNING: unsafe permissions on homedir '/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23/_build/sub/tests/gpg' gpg (GnuPG) 2.1.21-beta42; Copyright (C) 2017 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. gpg: NOTE: THIS IS A DEVELOPMENT VERSION! gpg: It is only intended for test purposes and should NOT be gpg: used in a production environment or with production keys! uid Alfa Test (demo key) <alfa@example.net> sig!3 2D727CC768697734 2017-04-10 never [self-signature]* [primary] uid Alpha Test (demo key) <alpha@example.net> sig!3 2D727CC768697734 1999-03-08 never [self-signature] sig!3 2D727CC768697734 2017-04-10 never [self-signature]* uid Alice (demo key) (reordered signatures follow) sig!3 2D727CC768697734 2017-04-10 never [self-signature] uid Alfa Test (demo key) <alfa@example.net> (reordered signatures follow) sig!3 2D727CC768697734 1999-03-08 never [self-signature] sub 6AE6D7EE46A871F8 sig! 2D727CC768697734 1999-03-08 never [self-signature]* key 2D727CC768697734: 5 duplicate signatures removed 2 signatures reordered Warning: errors found and only checked self-signatures, run 'check' to check all signatures. Secret key is available. sec dsa1024/2D727CC768697734 created: 1999-03-08 expires: never usage: SCA trust: unknown validity: unknown ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: E ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: E ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: E ssb elg1024/6AE6D7EE46A871F8 created: 1999-03-08 expires: never usage: E [ unknown] (1). Alfa Test (demo key) <alfa@example.net> [ unknown] (2) Alpha Test (demo key) <alpha@example.net> [ unknown] (3) Alice (demo key) gpg> save jenkins@soro:/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23/_build/sub/tests/gpg$ ls -l pubring.{gpg,kbx} -rw------- 1 jenkins jenkins 32018 Apr 10 16:38 pubring.gpg -rw-r--r-- 1 jenkins jenkins 21433 Apr 10 16:18 pubring.kbx jenkins@soro:/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23/_build/sub/tests/gpg$ GNUPGHOME=$(pwd) top_srcdir=/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23 gpg --list-key alfa|grep sub |wc gpg: WARNING: unsafe permissions on homedir '/tmp/tmp.ifyMthymNU/gpgme-1.9.1-beta23/_build/sub/tests/gpg' gpg: NOTE: THIS IS A DEVELOPMENT VERSION! gpg: It is only intended for test purposes and should NOT be gpg: used in a production environment or with production keys! 16 64 452