From a285bcc8d431861e2fcc52a9e9c1fe9cafcbf669 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 21 Jul 2018 15:31:41 +0000 Subject: extra/python2: added i486-specific patch --- extra/python2/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) 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 + -- cgit v1.2.3-70-g09d2