Dear Maintainer,
While trying to convert pubring.gpg into pubring.kbx I did the following
$ gpg --import-options import-local-sigs --import /tmp/xxx
# /tmp/xxx being a copy of pubring.gpg
as advised here https://www.gnupg.org/faq/whats-new-in-2.1.html#keybox
I found that the import worked "once at a time", I mean it imports one
signature then hang => ^C and rerun.
Running using --debug-all, I found the following message just before it
hangs:
gpg: DBG: parse_packet(iob=107): type=2 length=79 (parse.../../g10/keydb.c.1177)
gpg: DBG: iobuf-107.0: underflow: buffer size: 8257; still buffered: 0 => space for 8257 bytes
gpg: DBG: iobuf-107.0: close '?
# or during the next run (one sig imported, the next one hanging):
gpg: DBG: parse_packet(iob=468): type=2 length=105 (parse.../../g10/keydb.c.1177)
gpg: DBG: parse_packet(iob=468): type=14 length=269 (parse.../../g10/keydb.c.1177)
gpg: DBG: parse_packet(iob=468): type=2 length=76 (parse.../../g10/keydb.c.1177)
gpg: DBG: iobuf-468.0: underflow: buffer size: 137594; still buffered: 0 => space for 137594 bytes
gpg: DBG: iobuf-468.0: close '?'
# another run (one sig imported, the next one hanging):
gpg: DBG: parse_packet(iob=287): type=14 length=1037 (parse.../../g10/keydb.c.1177)
gpg: DBG: parse_packet(iob=287): type=2 length=76 (parse.../../g10/keydb.c.1177)
gpg: DBG: parse_packet(iob=287): type=2 length=88 (parse.../../g10/keydb.c.1177)
gpg: DBG: iobuf-287.0: underflow: buffer size: 64279; still buffered: 0 => space for 64279 bytes
gpg: DBG: iobuf-287.0: close '?'
Same result when removing gpg.conf or trying various import-options (import-minimal, import-clean)
But --import-options import-export successfully export a GPG traditional pubring file (not a GPG keybox) containing the 124 signatures.
See also: #841103