python3: update to 3.9.1.

This commit is contained in:
Andrew J. Hesford 2020-12-08 22:38:05 -05:00
parent 6bd3269950
commit 68f8d5de73

View file

@ -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 <ajh@sideband.org>"
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