File gpgme-test-json.patch of Package gpgme.16131
gpgme's json test fails with gpg 2.2.19
https://dev.gnupg.org/T4820
Index: gpgme-1.13.1/tests/json/t-keylist-secret.out.json
===================================================================
--- gpgme-1.13.1.orig/tests/json/t-keylist-secret.out.json
+++ gpgme-1.13.1/tests/json/t-keylist-secret.out.json
@@ -91,7 +91,7 @@
"can_sign": true,
"can_certify": true,
"can_authenticate": true,
- "secret": true,
+ "secret": false,
"is_qualified": false,
"protocol": "OpenPGP",
"fingerprint": "D695676BDCEDCC2CDD6152BCFE180B1DA9E3B0B2",
@@ -114,7 +114,6 @@
"pubkey_algo_name": "DSA",
"pubkey_algo_string": "dsa1024",
"keyid": "FE180B1DA9E3B0B2",
- "keygrip": "6D62909991D2331E5F4F605BC4DD738F30E6D26B",
"pubkey_algo": 17,
"length": 1024,
"timestamp": 920888034,
@@ -135,7 +134,6 @@
"pubkey_algo_name": "ELG-E",
"pubkey_algo_string": "elg1024",
"keyid": "5381EA4EE29BA37F",
- "keygrip": "6BBF325FADDC1109AE36CD535CA77AB9CFADD1F2",
"pubkey_algo": 16,
"length": 1024,
"timestamp": 920888071,
Index: gpgme-1.13.1/src/engine-gpg.c
===================================================================
--- gpgme-1.13.1.orig/src/engine-gpg.c
+++ gpgme-1.13.1/src/engine-gpg.c
@@ -2937,8 +2937,10 @@ gpg_keylist_build_options (engine_gpg_t
err = add_arg (gpg, "--with-tofu-info");
if (!err && (mode & GPGME_KEYLIST_MODE_WITH_SECRET))
- err = add_arg (gpg, "--with-secret");
-
+ {
+ err = add_arg (gpg, "--with-secret");
+ err = add_arg (gpg, "--with-keygrip");
+ }
if (!err
&& (mode & GPGME_KEYLIST_MODE_SIGS)
&& (mode & GPGME_KEYLIST_MODE_SIG_NOTATIONS))