aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-08-30 06:57:48 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-08-30 07:01:02 +0000
commit3778f5bafc528d05f991945fb6dc5fa9781d1873 (patch)
treef9307e4d77771b125546c27eb7b96ab69055a536
parent5b7a1a929be4969047007d595e7d2242f3217a5d (diff)
downloadaports-3778f5bafc528d05f991945fb6dc5fa9781d1873.tar.bz2
aports-3778f5bafc528d05f991945fb6dc5fa9781d1873.tar.xz
main/python3: remove --enable-optimizations, document tests
-rw-r--r--main/python3/APKBUILD40
1 files changed, 30 insertions, 10 deletions
diff --git a/main/python3/APKBUILD b/main/python3/APKBUILD
index d92dc4004d..17a095b163 100644
--- a/main/python3/APKBUILD
+++ b/main/python3/APKBUILD
@@ -4,7 +4,7 @@
pkgname=python3
pkgver=3.6.2
_basever="${pkgver%.*}"
-pkgrel=0
+pkgrel=1
pkgdesc="A high-level scripting language"
url="http://www.python.org"
arch="all"
@@ -34,32 +34,52 @@ prepare() {
build() {
cd "$builddir"
+ # --enable-optimizations is not enabled because it
+ # is very, very slow as many tests are ran sequentially
+ # for profile guided optimizations. additionally it
+ # seems some of the training tests hang on certain
+ # e.g. architectures (x86) possibly due to grsec or musl.
+
./configure \
--prefix=/usr \
--disable-rpath \
--enable-ipv6 \
--enable-loadable-sqlite-extensions \
--enable-shared \
- --enable-optimizations \
--with-lto \
--with-computed-gotos \
--with-dbmliborder=gdbm:ndbm \
--with-system-expat \
--with-system-ffi \
- --with-threads \
+ --with-threads
make EXTRA_CFLAGS="$CFLAGS"
}
check() {
cd "$builddir"
- local slow fail
- # slow running
- slow="test_faulthandler test_tokenize test_tools"
- # failures
- fail="test__locale test_capi test_datetime test_fcntl test_hash test_locale test_os test_plistlib"
- fail="$fail test_posix test_re test_shutil test_strptime test_threadsignals test_time"
- make quicktest TESTOPTS="-j ${JOBS:-$(getconf _NPROCESSORS_ONLN)} --exclude $slow $fail"
+ local fail
+
+ # musl related
+ fail="test__locale test_locale test_strptime test_re" # various musl locale deficiencies
+ fail="$fail test_datetime" # hangs if 'tzdata' installed
+ fail="$fail test_os" # fpathconf, ttyname errno values
+ fail="$fail test_posix" # sched_[gs]etscheduler not impl
+ fail="$fail test_shutil" # lchmod, requires real unzip
+
+ # failures needing investigation
+ fail="$fail test_faulthandler test_gdb" # hangs(?)
+ fail="$fail test_tokenize test_tools" # SLOW (~60s)
+ fail="$fail test_capi" # test.test_capi.EmbeddingTests
+ fail="$fail test_threadsignals" # test_{,r}lock_acquire_interruption
+ fail="$fail test_time" # strftime/strptime %Z related
+ fail="$fail test_cmath test_math" # hang(?) on x86
+ fail="$fail test_hash test_plistlib" # fail on armhf
+
+ # kernel related
+ fail="$fail test_fcntl" # wants DNOTIFY, we don't have it
+
+ make quicktest TESTOPTS="--exclude $fail"
}
package() {