summaryrefslogtreecommitdiff
path: root/extra/python2/PKGBUILD
blob: 65e8d59270484d647b114f44dc7670b54e59cb7b (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
# on i686 some tests fail with segfault
# test_replace_overflow (present in test_bytes, test_str, test_string, 
# test_unicode, test_userstring) segfault on i686
# test_bigrepeat (present in test_tuple) segfault on i686

eval "$(
  declare -f build | \
    sed '
      /export OPT=/ s/";$/ -fwrapv";/
    '
  declare -f check | \
    sed '
      /xvfb-run/ s/-x test_idle/-x test_idle test_bytes test_str test_string test_unicode test_userstring test_tuple/
    '
)"

# i486-specific
if [ "${CARCH}" = "i486" ]; then
  # remove dependency on most things, we want only a simple interpreter
  # a little bit smarter than a shell for building and code generation
  makedepends=(${makedepends[@]//tk/})
  makedepends=(${makedepends[@]//bluez-libs/})
  makedepends=(${makedepends[@]//llvm/})

  # do not start X servers just for building software!
  checkdepends=(${checkdepends[@]//xorg-server-xvfb/})
  eval "$(
    declare -f build | \
      sed '
        /export servernum=99/,/done/d
        s/.*make/make/
      '
  )"
  eval "$(
    declare -f check | \
      sed '
        /export servernum=99/,/done/d
        s/xvfb-run//
      '
  )"

  # ignore even more tests
  eval "$(
    declare -f check | \
      sed '
        s/-v -uall -x/-v -uall -x test_gdb test_ssl test_urllib2net/
      '
  )"
fi