From 108a094755e5795269ddadb678120f307c1c5160 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 18 Jul 2021 09:57:15 +0200 Subject: core/gpgme: fixes for some broken tests --- core/gpgme/PKGBUILD | 32 +++++++++++++++++++++ .../fix-gpg-test-t-edit-sign-signed_key_uids.patch | Bin 0 -> 439 bytes core/gpgme/fix-qt-test-t-various-for-i386.patch | Bin 0 -> 776 bytes 3 files changed, 32 insertions(+) create mode 100644 core/gpgme/fix-gpg-test-t-edit-sign-signed_key_uids.patch create mode 100644 core/gpgme/fix-qt-test-t-various-for-i386.patch (limited to 'core') diff --git a/core/gpgme/PKGBUILD b/core/gpgme/PKGBUILD index fe37c199..463f9bd5 100644 --- a/core/gpgme/PKGBUILD +++ b/core/gpgme/PKGBUILD @@ -22,3 +22,35 @@ eval "$( s/lib.linux-x86_64/lib.linux-i686/g ' )" + +# https://dev.gnupg.org/T5526: t-various which fails on 32-bit (i386) + +source+=(fix-qt-test-t-various-for-i386.patch) +sha256sums+=('e64d08a6035ad4f856d36658580b909a0828c023b71589be5fb226d468de9415') + +eval "$( + { + declare -f prepare || \ + printf 'prepare() {\n}\n' + } \ + | sed ' + $i cd "${srcdir}/${pkgbase}-${pkgver}" \ + patch -Np1 -i "$srcdir/fix-qt-test-t-various-for-i386.patch" + ' +)" + +# https://dev.gnupg.org/T5509, t-edit-sign does a member access on a freed object + +source+=(fix-gpg-test-t-edit-sign-signed_key_uids.patch) +sha256sums+=('f3bb1aafd99d317c18130cc475f8911c9323ae005f118d10fdafd3e11ca799a8') + +eval "$( + { + declare -f prepare || \ + printf 'prepare() {\n}\n' + } \ + | sed ' + $i cd "${srcdir}/${pkgbase}-${pkgver}" \ + patch -Np1 -i "$srcdir/fix-gpg-test-t-edit-sign-signed_key_uids.patch" + ' +)" diff --git a/core/gpgme/fix-gpg-test-t-edit-sign-signed_key_uids.patch b/core/gpgme/fix-gpg-test-t-edit-sign-signed_key_uids.patch new file mode 100644 index 00000000..dcf1f1bd Binary files /dev/null and b/core/gpgme/fix-gpg-test-t-edit-sign-signed_key_uids.patch differ diff --git a/core/gpgme/fix-qt-test-t-various-for-i386.patch b/core/gpgme/fix-qt-test-t-various-for-i386.patch new file mode 100644 index 00000000..26b64fd5 Binary files /dev/null and b/core/gpgme/fix-qt-test-t-various-for-i386.patch differ -- cgit v1.2.3-54-g00ecf