summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-07-21 15:31:41 +0000
committerAndreas Baumann <mail@andreasbaumann.cc>2018-07-21 15:31:41 +0000
commita285bcc8d431861e2fcc52a9e9c1fe9cafcbf669 (patch)
tree0e90c03f2a0c9233064d7f74d314b458e55e0961
parent56c9b99dc6be9d5191b706a7e84c4a629d8e499d (diff)
downloadpackages-a285bcc8d431861e2fcc52a9e9c1fe9cafcbf669.tar.xz
extra/python2: added i486-specific patch
-rw-r--r--extra/python2/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/extra/python2/PKGBUILD b/extra/python2/PKGBUILD
index 7ff6b97e..65e8d592 100644
--- a/extra/python2/PKGBUILD
+++ b/extra/python2/PKGBUILD
@@ -13,3 +13,38 @@ eval "$(
/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
+