From 4816dd87d0bf349eda4191bbaf592275ca41cc89 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 14 Feb 2019 08:00:18 +0100 Subject: core/gpgme: fix for Python 32-bit tests failing due to tes cases requiring 64-bit time_t --- .../0004-Avoid-Y2038-problem-on-32-bit-architectures.patch | 12 ++++++++++++ core/gpgme/PKGBUILD | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 core/gpgme/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch create mode 100644 core/gpgme/PKGBUILD (limited to 'core') diff --git a/core/gpgme/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch b/core/gpgme/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch new file mode 100644 index 00000000..3c562696 --- /dev/null +++ b/core/gpgme/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch @@ -0,0 +1,12 @@ +diff --git a/lang/python/tests/t-callbacks.py b/lang/python/tests/t-callbacks.py +index 25a1c23..c2f9481 100755 +--- a/lang/python/tests/t-callbacks.py ++++ b/lang/python/tests/t-callbacks.py +@@ -95,7 +95,7 @@ Name-Real: Joe Tester + Name-Comment: with stupid passphrase + Name-Email: joe+gpg@example.org + Passphrase: Crypt0R0cks +-Expire-Date: 2099-12-31 ++Expire-Date: 2037-12-31 + + """ diff --git a/core/gpgme/PKGBUILD b/core/gpgme/PKGBUILD new file mode 100644 index 00000000..ac1ede8f --- /dev/null +++ b/core/gpgme/PKGBUILD @@ -0,0 +1,10 @@ +# https://dev.gnupg.org/T4191 +# patch from Debian, see: https://salsa.debian.org/debian/gpgme/blob/debian/master/debian/patches/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch + +source+=(0004-Avoid-Y2038-problem-on-32-bit-architectures.patch) +sha256sums+=('0c788590e0bb7cc9da04457f94360ceef9cb9fc0525e6bfbf9fbb8d72801ae8f') + +prepare() { + cd ${pkgbase}-${pkgver} + patch -Np1 -i "$srcdir/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch" +} -- cgit v1.2.3-70-g09d2