[arch-commits] Commit in python/trunk (PKGBUILD mpdecimal-2.5.1.patch)

Felix Yan felixonmars at gemini.archlinux.org
Sat Nov 27 23:06:39 UTC 2021


    Date: Saturday, November 27, 2021 @ 23:06:38
  Author: felixonmars
Revision: 429401

upgpkg: python 3.10.0-1

Modified:
  python/trunk/PKGBUILD
Deleted:
  python/trunk/mpdecimal-2.5.1.patch

-----------------------+
 PKGBUILD              |   29 +++++++++++------------------
 mpdecimal-2.5.1.patch |   45 ---------------------------------------------
 2 files changed, 11 insertions(+), 63 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-27 20:01:59 UTC (rev 429400)
+++ PKGBUILD	2021-11-27 23:06:38 UTC (rev 429401)
@@ -8,7 +8,7 @@
 
 pkgbase=python
 pkgname=(python python-tests)
-pkgver=3.9.9
+pkgver=3.10.0
 pkgrel=1
 _pybasever=${pkgver%.*}
 pkgdesc="Next generation of the python high-level scripting language"
@@ -17,22 +17,16 @@
 url="https://www.python.org/"
 depends=('bzip2' 'expat' 'gdbm' 'libffi' 'libnsl' 'libxcrypt' 'openssl' 'zlib')
 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}
-        mpdecimal-2.5.1.patch)
-sha512sums=('0ab29fb9a7ecb808bd08d84d28908d5a934e0f021853da0f7a9c94670eb30c8dbbc233d461afdb3995b0de59275ef7e1de43e82d7f848802cbd6e6e50b7b25a6'
-            'SKIP'
-            '58f683cbfdc6aa84c03d068c1bc2f1d8d2c17ba4f7b632c14ab1d529d8332e767354266c3815e239427497fff1a42ec2a37739ea312d24cb76a69dcf1c98c0ad')
+source=("https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz"{,.asc})
+sha512sums=('82b2729afc7d72a80882f199970667dce7d971a2e5ecfe6cf84f7b68612ab2caf6ed6d7a8cb81f24ea85cb0816464bb2e8b2e6884eda62fa40742edc674193bd'
+            'SKIP')
 validpgpkeys=('0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D'  # Ned Deily (Python release signing key) <nad at python.org>
-              'E3FF2839C048B25C084DEBE9B26995E310250568') # Łukasz Langa (GPG langa.pl) <lukasz at langa.pl>
+              'E3FF2839C048B25C084DEBE9B26995E310250568'  # Łukasz Langa (GPG langa.pl) <lukasz at langa.pl>
+              'A035C8C19219BA821ECEA86B64E628F8D684696D') # Pablo Galindo Salgado <pablogsal at gmail.com>
 
 prepare() {
   cd Python-${pkgver}
 
-  patch -p1 -i ../mpdecimal-2.5.1.patch
-
-  # https://bugs.python.org/issue41346
-  sed -i 's/-j0 //' Makefile.pre.in
-
   # FS#23997
   sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
 
@@ -50,10 +44,7 @@
   cd Python-${pkgver}
 
   # PGO should be done with -O3
-  # Also included the -fno-semantic-interposition optimization:
-  # https://fedoraproject.org/wiki/Changes/PythonNoSemanticInterpositionSpeedup
-  CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
-  LDFLAGS="$LDFLAGS -fno-semantic-interposition"
+  CFLAGS="${CFLAGS/-O2/-O3}"
 
   # Disable bundled pip & setuptools
   ./configure --prefix=/usr \
@@ -78,7 +69,9 @@
 }
 
 check() {
-  # test_tk and test_ttk_guionly: https://bugs.python.org/issue43139
+  # test_socket: test.test_socket.RDSTest.testPeek hangs https://bugs.python.org/issue35247
+  # test_tk: tkinter.test.test_tkinter.test_colorchooser.DefaultRootTest hangs
+  # test_ttk_guionly: test failures about "AssertionError: TclError not raised"
 
   cd Python-${pkgver}
 
@@ -88,7 +81,7 @@
 
   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_ttk_guionly
+    "${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_socket -x test_tk -x test_ttk_guionly
 }
 
 package_python() {

Deleted: mpdecimal-2.5.1.patch
===================================================================
--- mpdecimal-2.5.1.patch	2021-11-27 20:01:59 UTC (rev 429400)
+++ mpdecimal-2.5.1.patch	2021-11-27 23:06:38 UTC (rev 429401)
@@ -1,45 +0,0 @@
-From dd436be488bdca2123d12d1e148d85cb6f98be5f Mon Sep 17 00:00:00 2001
-From: Stefan Krah <skrah at bytereef.org>
-Date: Sun, 10 Jan 2021 16:35:48 +0100
-Subject: [PATCH] Portability fixes.
-
----
- Modules/_decimal/_decimal.c | 4 ++--
- setup.py                    | 2 +-
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
-index 664d45a90481d..bbd540bc376e2 100644
---- a/Modules/_decimal/_decimal.c
-+++ b/Modules/_decimal/_decimal.c
-@@ -3295,7 +3295,7 @@ dec_format(PyObject *dec, PyObject *args)
-     }
-     else {
-         size_t n = strlen(spec.dot);
--        if (n > 1 || (n == 1 && !isascii((uchar)spec.dot[0]))) {
-+        if (n > 1 || (n == 1 && !isascii((unsigned char)spec.dot[0]))) {
-             /* fix locale dependent non-ascii characters */
-             dot = dotsep_as_utf8(spec.dot);
-             if (dot == NULL) {
-@@ -3304,7 +3304,7 @@ dec_format(PyObject *dec, PyObject *args)
-             spec.dot = PyBytes_AS_STRING(dot);
-         }
-         n = strlen(spec.sep);
--        if (n > 1 || (n == 1 && !isascii((uchar)spec.sep[0]))) {
-+        if (n > 1 || (n == 1 && !isascii((unsigned char)spec.sep[0]))) {
-             /* fix locale dependent non-ascii characters */
-             sep = dotsep_as_utf8(spec.sep);
-             if (sep == NULL) {
-diff --git a/setup.py b/setup.py
-index ddc0bd067d4e4..c547a68664e8c 100644
---- a/setup.py
-+++ b/setup.py
-@@ -2199,7 +2199,7 @@ def detect_decimal(self):
-         undef_macros = []
-         if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"):
-             include_dirs = []
--            libraries = [':libmpdec.so.2']
-+            libraries = ['mpdec']
-             sources = ['_decimal/_decimal.c']
-             depends = ['_decimal/docstrings.h']
-         else:



More information about the arch-commits mailing list