diff --git a/gpgme-fix-t-encrypt-sym.patch b/gpgme-fix-t-encrypt-sym.patch new file mode 100644 index 0000000..f942f8e --- /dev/null +++ b/gpgme-fix-t-encrypt-sym.patch @@ -0,0 +1,13 @@ +Index: gpgme-1.13.1/lang/python/tests/t-encrypt-sym.py +=================================================================== +--- gpgme-1.13.1.orig/lang/python/tests/t-encrypt-sym.py ++++ gpgme-1.13.1/lang/python/tests/t-encrypt-sym.py +@@ -44,7 +44,7 @@ for passphrase in ("abc", b"abc"): + c.set_passphrase_cb(passphrase_cb, None) + + c.op_encrypt([], 0, source, cipher) +- assert passphrase_cb_called == 1, \ ++ assert passphrase_cb_called == 2, \ + "Callback called {} times".format(passphrase_cb_called) + support.print_data(cipher) + diff --git a/gpgme.changes b/gpgme.changes index 51ede97..6e7b6cd 100644 --- a/gpgme.changes +++ b/gpgme.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Jul 10 14:45:50 UTC 2020 - Pedro Monreal Gonzalez + +- Fix build: [bsc#1174007] + * Test t-encrypt-sym.py fails since gpg-2.2.21 update +- Add gpgme-fix-t-encrypt-sym.patch + ------------------------------------------------------------------- Thu Jul 2 08:23:12 UTC 2020 - Dan Čermák diff --git a/gpgme.spec b/gpgme.spec index dfdcbf3..e99d47a 100644 --- a/gpgme.spec +++ b/gpgme.spec @@ -47,6 +47,7 @@ Patch2: gpgme-t-json-test-with-keygrip-when-listing-keys.patch # required to make notmuch's testsuite pass, see # id:87366av72u.fsf@fifthhorseman.net on notmuch@notmuchmail.org Patch3: 0001-gpg-Avoid-error-diagnostics-with-override-session-ke.patch +Patch4: gpgme-fix-t-encrypt-sym.patch BuildRequires: gcc-c++ BuildRequires: gpg2 >= 2.0.10 BuildRequires: libassuan-devel >= 2.4.2