extra/python to 3.8.4-1

This commit is contained in:
Kevin Mihelich 2020-07-27 13:24:37 +00:00
parent cbf30fb0c3
commit 4f0e72d68a

View file

@ -13,7 +13,7 @@ shopt -s extglob
pkgbase=python
pkgname=(python python-tests)
pkgver=3.8.3
pkgver=3.8.4
pkgrel=1
_pybasever=${pkgver%.*}
pkgdesc="Next generation of the python high-level scripting language"
@ -21,9 +21,9 @@ arch=('x86_64')
license=('custom')
url="https://www.python.org/"
depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib' 'libnsl')
makedepends=('tk' 'sqlite' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 'xorg-server-xvfb')
makedepends=('tk' 'sqlite' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 'xorg-server-xvfb' 'ttf-font')
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
sha512sums=('3103bd8d944f3905eee3a2b52fd1f5c7dee380f9c5a99ad35a401fcba5a9117c3860ecec5cb47a92712c6549442fd2fa553a15c5657241dd09f5d00b9ed4f0f4'
sha512sums=('37a36d014a8372742be9d0bd9dd3a275e100dc21b1515c145bc62425d4d157327b6e63ad99bc888c0b36c1da4c05676c40eb086e75072d1906e3210ec3043dcb'
'SKIP')
validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python release signing key) <nad@python.org>
'E3FF2839C048B25C084DEBE9B26995E310250568') # Łukasz Langa (GPG langa.pl) <lukasz@langa.pl>
@ -31,8 +31,9 @@ validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python re
prepare() {
cd Python-${pkgver}
# https://bugs.python.org/issue34587
sed -i -e "s|testCongestion|disabled_&|" Lib/test/test_socket.py
# https://bugs.python.org/issue41302
# Fix for --with-system-libmpdec with mpdecimal 2.5
sed -i '/#include "mpdecimal.h"/a #define UNUSED __attribute__((unused))' Modules/_decimal/_decimal.c
# FS#23997
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
@ -77,10 +78,7 @@ build() {
}
check() {
# test_gdb is expected to fail with LTO
# test_idle, test_tk, test_ttk_guionly segfaults since 3.6.5
# test_socket hangs since 3.8.2
# test_decimal fails since 3.8.2
# test_tk: https://bugs.python.org/issue41306
cd Python-${pkgver}
@ -90,8 +88,7 @@ check() {
LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \
LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" -a -n "$servernum" \
"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_gdb -x test_idle -x test_tk -x test_ttk_guionly \
-x test_socket -x test_decimal
"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_tk
}
package_python() {