upg python

This commit is contained in:
joborun linux 2023-11-14 16:06:07 +02:00
parent 62f7c93a6b
commit d2e0ac88fb
2 changed files with 20 additions and 27 deletions

View file

@ -8,24 +8,24 @@
shopt -s extglob
pkgbase=python
pkgname=(python python-tests)
pkgver=3.11.5
pkgrel=02
pkgver=3.11.6
pkgrel=01
_pybasever=${pkgver%.*}
pkgdesc="Next generation of the python high-level scripting language - no ipv6 "
pkgdesc="The Python programming language - ipv6 disabled "
url="https://www.python.org/"
depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib' 'tzdata')
makedepends=('tk' 'sqlite' 'bluez-libs' 'mpdecimal' 'llvm' 'gdb' 'xorg-server-xvfb' 'ttf-font')
#options=('debug') ## uncomment this to have the debug pkg produced
source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc}
$pkgbase-3.11.5-raw_fstring.patch::https://github.com/python/cpython/commit/ed749be3aab081ce4e5d54e0273b96bdea02983f.patch
EXTERNALLY-MANAGED)
# https://github.com/python/cpython/commit/178a238f25ab8aff7689d7a09d66dc1583ecd6cb.patch)
prepare() {
cd Python-${pkgver}
# test fails due to unhandled warning: https://github.com/python/cpython/issues/108569
patch -Np1 -i ../$pkgbase-3.11.5-raw_fstring.patch
# # test fails due to unhandled warning: https://github.com/python/cpython/issues/108569
# patch -Np1 -i ../$pkgbase-3.11.5-raw_fstring.patch
# $pkgbase-3.11.5-raw_fstring.patch::https://github.com/python/cpython/commit/ed749be3aab081ce4e5d54e0273b96bdea02983f.patch
# FS#23997
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
@ -69,6 +69,8 @@ build() {
# # test_pyexpat: our `debug` implementation rewrites source location, which breaks the build-time
# # only test test.test_pyexpat.HandlerExceptionTest as it cannot find source file in
# # the to-be-installed debug package
# # test_socket: https://github.com/python/cpython/issues/79428
# # test_unittest: https://github.com/python/cpython/issues/108927
#
# cd Python-${pkgver}
#
@ -78,7 +80,7 @@ build() {
#
# 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_tk -x test_pyexpat
# "${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_tk -x test_pyexpat -x test_socket -x test_unittest
#}
package_python() {
@ -164,16 +166,10 @@ validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python re
'E3FF2839C048B25C084DEBE9B26995E310250568' # Łukasz Langa (GPG langa.pl) <lukasz@langa.pl>
'A035C8C19219BA821ECEA86B64E628F8D684696D') # Pablo Galindo Salgado <pablogsal@gmail.com>
sha512sums=('93fa640bedcea449060caac8aa691aa315a19f172fd9f0422183d17749c3512d4ecac60e7599f9ef14e3cdb3c8b4b060e484c9061b1e7ee8d958200d6041e408'
'SKIP'
'310819a88a68ba3131a5e4a079fb383036c759d7c29340048bf6e28ded760a7bc98215bd3c24dd4a8ba05ee16ca80e6ba2a1073464af96d7a5bf921a4fe47b9d'
'62a6fbfbaeaa3ba7c54e109d9c3b7f67e73bb21986da4c1fcc5d28cca83d71e0fcae28e1fc70ee8ddce7dea8cd0b64e18d1031dae3a2eae5eaa379c53efd53a0')
sha256sums=(85cd12e9cf1d6d5a45f17f7afe1cebe7ee628d3282281c492e86adf636defa3f # Python-3.11.5.tar.xz
8933facdcc0c5d5467ae9280a86fef5cf861fe4599ea32bc234d978994edb9db # Python-3.11.5.tar.xz.asc
21063bf49e025b972e5b7f588bd8dacf5bbb1df6e93889ae0dd1d2bbff7edde0 # python-3.11.5-raw_fstring.patch
sha256sums=(0fab78fa7f133f4f38210c6260d90d7c0d5c7198446419ce057ec7ac2e6f5f38 # Python-3.11.6.tar.xz
aaafb01d35c0da8485a647f2480472dddff9761a7c5b6a1f345cf143ee2a0a48 # Python-3.11.6.tar.xz.asc
c07b94bf7dcbe7be5ba0cee29971a005a5be65002cbfb59c5a8f661fa92aa82f) # EXTERNALLY-MANAGED
## 3cda9541734361019e88b67dc6263aa8b054a8bbd46d3c6982756cc557213ca4 python-3.11.5-02-x86_64.pkg.tar.lz
## c7d4a0be4deac3b6d217cdd7348a6ef99d366735ea0a03e0ea00a3d0761f271e python-tests-3.11.5-02-x86_64.pkg.tar.lz
## 8108b76a62b1a31836076b81d3545f5396855e4aca883c77d9e5038f78b36b70 python-3.11.6-01-x86_64.pkg.tar.lz
## 75f723096aece1779344b341bdf0e31f0bd40a122bde30abbc60eb407a28c579 python-tests-3.11.6-01-x86_64.pkg.tar.lz

View file

@ -9,21 +9,19 @@ shopt -s extglob
pkgbase=python
pkgname=(python python-tests)
pkgver=3.11.5
pkgrel=2
pkgver=3.11.6
pkgrel=1
_pybasever=${pkgver%.*}
pkgdesc="Next generation of the python high-level scripting language"
pkgdesc="The Python programming language"
arch=('x86_64')
license=('custom')
url="https://www.python.org/"
depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib' 'tzdata')
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}
$pkgbase-3.11.5-raw_fstring.patch::https://github.com/python/cpython/commit/ed749be3aab081ce4e5d54e0273b96bdea02983f.patch
EXTERNALLY-MANAGED)
sha512sums=('93fa640bedcea449060caac8aa691aa315a19f172fd9f0422183d17749c3512d4ecac60e7599f9ef14e3cdb3c8b4b060e484c9061b1e7ee8d958200d6041e408'
sha512sums=('94b1038f6f53de0c44f99f72ed0f2e0791fd9d2a325ae00ba145b2b2c332c27b300b3ea3473017518089478f15e01867b1bb203c16610039cce36f8366de341a'
'SKIP'
'310819a88a68ba3131a5e4a079fb383036c759d7c29340048bf6e28ded760a7bc98215bd3c24dd4a8ba05ee16ca80e6ba2a1073464af96d7a5bf921a4fe47b9d'
'62a6fbfbaeaa3ba7c54e109d9c3b7f67e73bb21986da4c1fcc5d28cca83d71e0fcae28e1fc70ee8ddce7dea8cd0b64e18d1031dae3a2eae5eaa379c53efd53a0')
validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python release signing key) <nad@python.org>
'E3FF2839C048B25C084DEBE9B26995E310250568' # Łukasz Langa (GPG langa.pl) <lukasz@langa.pl>
@ -32,9 +30,6 @@ validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' # Ned Deily (Python re
prepare() {
cd Python-${pkgver}
# test fails due to unhandled warning: https://github.com/python/cpython/issues/108569
patch -Np1 -i ../$pkgbase-3.11.5-raw_fstring.patch
# FS#23997
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
@ -77,6 +72,8 @@ check() {
# test_pyexpat: our `debug` implementation rewrites source location, which breaks the build-time
# only test test.test_pyexpat.HandlerExceptionTest as it cannot find source file in
# the to-be-installed debug package
# test_socket: https://github.com/python/cpython/issues/79428
# test_unittest: https://github.com/python/cpython/issues/108927
cd Python-${pkgver}
@ -86,7 +83,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_tk -x test_pyexpat
"${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_tk -x test_pyexpat -x test_socket -x test_unittest
}
package_python() {