summaryrefslogtreecommitdiff
path: root/core/gpgme/PKGBUILD
blob: 463f9bd544ed959862054586fd7c0fd73641a687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 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')

eval "$(
  {
    declare -f prepare || \
    printf 'prepare() {\n}\n'
  } \
  | sed '
    $i cd "${srcdir}/${pkgbase}-${pkgver}" \
       patch -Np1 -i "$srcdir/0004-Avoid-Y2038-problem-on-32-bit-architectures.patch"
  '
)"

# touches for pyc cache in build are 64-bittish
eval "$(
  declare -f build | \
    sed '
      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"
  '
)"