From 68f8d5de731cc2339285f38957805628c4b985e9 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Tue, 8 Dec 2020 22:38:05 -0500 Subject: [PATCH] python3: update to 3.9.1. --- srcpkgs/python3/template | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python3/template b/srcpkgs/python3/template index 299e64ba76f..cce59898a92 100644 --- a/srcpkgs/python3/template +++ b/srcpkgs/python3/template @@ -3,7 +3,7 @@ # THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/python3-tkinter". # pkgname=python3 -version=3.9.0 +version=3.9.1 revision=1 wrksrc="Python-${version}" pycompile_dirs="usr/lib/python${version%.*}" @@ -11,12 +11,13 @@ hostmakedepends="pkgconf" makedepends="libffi-devel readline-devel gdbm-devel libressl-devel expat-devel sqlite-devel bzip2-devel zlib-devel liblzma-devel" depends="ca-certificates" +checkdepends="$depends iana-etc" short_desc="Python programming language (${version%.*} series)" maintainer="Andrew J. Hesford " license="Python-2.0" homepage="https://www.python.org" distfiles="https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz" -checksum=9c73e63c99855709b9be0b3cc9e5b072cb60f37311e8c4e50f15576a0bf82854 +checksum=991c3f8ac97992f3d308fefeb03a64db462574eadbff34ce8bc5bb583d9903ff alternatives=" python:idle:/usr/bin/idle${version%.*} @@ -50,10 +51,30 @@ do_configure() { --with-threads --with-computed-gotos --with-dbmliborder=gdbm:ndbm \ --with-system-expat --with-system-ffi --without-ensurepip } + do_build() { export PATH="$PATH:$wrksrc/hostpython" make ${makejobs} } + +do_check() { + # Tests ignored due to expected failures: + # test_chown_*: relies on sane group membership not found in xbps-src + # test_getspnam_exception: expects shadow passwd db unreadable by user + # test_find_library_with_*: expects functionality patched out for musl + # test_openssl_version: LibreSSL version and OpenSSL_version_num disagree + # test_shared_ciphers: SSL advertises unexpected ciphers + # + # Test ignored due to failures for unknown reasons: + # test_session*: anomalies in SSL session handling + # test_localtime_daylight_*_dst_true: overflow in datetime.time.mktime + local opts="-i test_chown_* -i test_getspnam_exception \ + -i test_find_library_with_* -i test_openssl_version \ + -i test_shared_ciphers -i test_session* \ + -i test_localtime_daylight_*_dst_true" + make ${makejobs} EXTRATESTOPTS="${opts}" quicktest +} + do_install() { export PATH="$PATH:$wrksrc/hostpython" make DESTDIR=${DESTDIR} install maninstall