Merge pull request #3560 from lazka/python-3.11

python: Update to 3.11
This commit is contained in:
Christoph Reiter 2023-02-14 18:55:28 +01:00 committed by GitHub
commit 8af42b51b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
76 changed files with 102 additions and 223 deletions

View File

@ -2,7 +2,7 @@
pkgname=ansible-core
pkgver=2.14.1
pkgrel=1
pkgrel=2
pkgdesc='Radically simple IT automation platform'
arch=('any')
url='https://pypi.org/project/ansible-core'

View File

@ -2,7 +2,7 @@
pkgname=ansible
pkgver=7.1.0
pkgrel=1
pkgrel=2
pkgdesc='Official assortment of Ansible collections'
arch=('any')
url='https://pypi.org/project/ansible/'

View File

@ -2,7 +2,7 @@
pkgname=asciidoc
pkgver=10.2.0
pkgrel=2
pkgrel=3
pkgdesc='Text document format for short documents, articles, books and UNIX man pages.'
arch=('any')
url='https://asciidoc.org/'

View File

@ -2,7 +2,7 @@
pkgname=breezy
pkgver=3.2.2
pkgrel=1
pkgrel=2
pkgdesc='A decentralized revision control system with support for Bazaar and Git file formats'
arch=('i686' 'x86_64')
url='https://www.breezy-vcs.org/'

View File

@ -3,7 +3,7 @@
pkgbase=brotli
pkgname=('brotli' 'brotli-devel' 'python-brotli' 'brotli-testdata')
pkgver=1.0.9
pkgrel=6
pkgrel=7
pkgdesc='Brotli compression library'
arch=('i686' 'x86_64')
license=('MIT')

View File

@ -4,7 +4,7 @@ _realname=cython
pkgbase=${_realname}
pkgname=('cython')
pkgver=0.29.32
pkgrel=2
pkgrel=3
pkgdesc='C-Extensions for Python'
arch=('i686' 'x86_64')
url='https://cython.org/'

View File

@ -2,7 +2,7 @@
pkgname=dtc
pkgver=1.6.1
pkgrel=2
pkgrel=3
pkgdesc="Device Tree Compiler"
arch=('i686' 'x86_64')
url="https://git.kernel.org/pub/scm/utils/dtc/dtc/git"

View File

@ -2,7 +2,7 @@
pkgname=file
pkgver=5.44
pkgrel=3
pkgrel=4
pkgdesc="File type identification utility"
arch=('i686' 'x86_64')
license=('custom')

View File

@ -2,7 +2,7 @@
pkgname=gdb
pkgver=11.1
pkgrel=4
pkgrel=5
_gcc_ver=11.3.0
pkgdesc="GNU Debugger (MSYS2 version)"
arch=('i686' 'x86_64')

View File

@ -3,7 +3,7 @@
pkgbase=glib2
pkgname=(glib2 glib2-devel glib2-docs)
pkgver=2.74.4
pkgrel=1
pkgrel=2
pkgdesc="Common C routines used by GTK+ and other libs"
license=(LGPL2)
url="https://www.gtk.org/"

View File

@ -2,7 +2,7 @@
pkgname=gnome-doc-utils
pkgver=0.20.10
pkgrel=5
pkgrel=6
pkgdesc="Documentation utilities for Gnome"
arch=('any')
license=('GPL' 'LGPL')

View File

@ -3,7 +3,7 @@
pkgbase=gpgme
pkgname=('libgpgme' 'libgpgme-devel' 'libgpgme-python')
pkgver=1.18.0
pkgrel=1
pkgrel=2
pkgdesc="A C wrapper library for GnuPG"
arch=('i686' 'x86_64')
url="https://gnupg.org/related_software/gpgme/"

View File

@ -4,7 +4,7 @@
_realname=gyp
pkgname=${_realname}-git
pkgver=r2163.caa60026
pkgrel=6
pkgrel=7
pkgdesc="GYP can Generate Your Projects"
url="https://gyp.gsrc.io/"
arch=('i686' 'x86_64')

View File

@ -3,7 +3,7 @@
pkgbase=libxml2
pkgname=('libxml2' 'libxml2-devel' 'libxml2-python')
pkgver=2.10.3
pkgrel=2
pkgrel=3
pkgdesc="XML parsing library, version 2"
arch=(i686 x86_64)
license=('spdx:MIT')

View File

@ -2,7 +2,7 @@
pkgname=mercurial
pkgver=6.3.1
pkgrel=2
pkgrel=3
pkgdesc="A scalable distributed SCM tool"
arch=('i686' 'x86_64')
url="https://www.mercurial-scm.org/"

View File

@ -2,7 +2,7 @@
pkgname=meson
pkgver=1.0.0
pkgrel=1
pkgrel=2
pkgdesc='High-productivity build system'
arch=('any')
url="https://mesonbuild.com/"

View File

@ -2,7 +2,7 @@
pkgname=namcap
pkgver=3.3.1
pkgrel=3
pkgrel=4
pkgdesc="A Pacman package analyzer"
arch=('any')
url="https://gitlab.archlinux.org/pacman/namcap"

View File

@ -3,7 +3,7 @@
pkgbase=python-appdirs
pkgname=(python-appdirs)
pkgver=1.4.4
pkgrel=4
pkgrel=5
pkgdesc='A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".'
arch=('any')
url="https://github.com/ActiveState/appdirs"

View File

@ -4,7 +4,7 @@ _realname=attrs
pkgbase=python-attrs
pkgname=("python-${_realname}")
pkgver=22.2.0
pkgrel=1
pkgrel=2
pkgdesc="Attributes without boilerplate."
arch=('any')
license=('spdx:MIT')

View File

@ -4,7 +4,7 @@ _realname=beaker
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=1.12.0
pkgrel=3
pkgrel=4
pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications"
arch=('any')
license=('PSF')

View File

@ -3,7 +3,7 @@
_realname=build
pkgname="python-${_realname}"
pkgver=0.10.0
pkgrel=1
pkgrel=2
pkgdesc="A simple, correct Python build frontend"
arch=('any')
url='https://github.com/pypa/build'

View File

@ -3,7 +3,7 @@
_realname=certifi
pkgname="python-${_realname}"
pkgver=2022.12.7
pkgrel=2
pkgrel=3
pkgdesc="Python package for providing Mozilla's CA Bundle"
url='https://pypi.python.org/pypi/certifi'
license=('spdx:MPL-2.0')

View File

@ -4,7 +4,7 @@ _realname=configobj
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=5.0.6
pkgrel=5
pkgrel=6
pkgdesc="Simple but powerful config file reader and writer for Python"
arch=('any')
license=('spdx:BSD-3-Clause')

View File

@ -3,7 +3,7 @@
_realname=dulwich
pkgname="python-${_realname}"
pkgver=0.21.2
pkgrel=1
pkgrel=2
pkgdesc='Pure-Python implementation of the Git file formats and protocols'
arch=('any')
url='https://www.dulwich.io'

View File

@ -3,7 +3,7 @@
_pyname=editables
pkgname=python-editables
pkgver=0.3
pkgrel=1
pkgrel=2
pkgdesc='A Python library for creating editable wheels'
arch=(any)
url='https://github.com/pfmoore/editables'

View File

@ -2,7 +2,7 @@
pkgname=python-fastbencode
pkgver=0.1
pkgrel=1
pkgrel=2
pkgdesc='Implementation of bencode with optional fast C extensions'
arch=('i686' 'x86_64')
url='https://github.com/breezy-team/fastbencode'

View File

@ -4,7 +4,7 @@ _realname=fastimport
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=0.9.14
pkgrel=2
pkgrel=3
pkgdesc="VCS fastimport/fastexport parser"
arch=('any')
license=('spdx:GPL-2.0-or-later')

View File

@ -3,7 +3,7 @@
_realname=flit
pkgname="python-$_realname-core"
pkgver=3.8.0
pkgrel=1
pkgrel=2
pkgdesc='Simplified packaging of Python modules (core backend)'
arch=('any')
url='https://github.com/pypa/flit'

View File

@ -3,7 +3,7 @@
_pyname=hatch-vcs
pkgname=python-hatch-vcs
pkgver=0.3.0
pkgrel=2
pkgrel=3
pkgdesc="Hatch plugin for versioning with your preferred VCS"
url="https://github.com/ofek/hatch-vcs"
license=('spdx:MIT')

View File

@ -3,7 +3,7 @@
_pyname=hatchling
pkgname=python-hatchling
pkgver=1.13.0
pkgrel=1
pkgrel=2
pkgdesc="A modern project, package, and virtual env manager (backend)"
arch=('any')
url="https://github.com/pypa/hatch"

View File

@ -3,7 +3,7 @@
_pyname=iniconfig
pkgname=python-iniconfig
pkgver=2.0.0
pkgrel=1
pkgrel=2
pkgdesc="brain-dead simple config-ini parsing"
url="https://github.com/pytest-dev/iniconfig"
license=('spdx:MIT')

View File

@ -3,7 +3,7 @@
_realname=installer
pkgname="python-${_realname}"
pkgver=0.6.0
pkgrel=1
pkgrel=2
pkgdesc="A low-level library for installing from a Python wheel distribution"
arch=('any')
url='https://github.com/pypa/installer'

View File

@ -4,7 +4,7 @@ _realname=jinja
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
pkgver=3.1.2
pkgrel=2
pkgrel=3
pkgdesc='A simple pythonic template language written in Python'
arch=('i686' 'x86_64')
license=('spdx:BSD-3-Clause')

View File

@ -4,7 +4,7 @@ _realname=lxml
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=4.9.2
pkgrel=1
pkgrel=2
pkgdesc="Python binding for the libxml2 and libxslt libraries"
arch=('any')
url="https://lxml.de/"

View File

@ -4,7 +4,7 @@ _realname=mako
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=1.2.4
pkgrel=1
pkgrel=2
pkgdesc="A super-fast templating language that borrows the best ideas from the existing templating languages"
arch=('any')
url="https://pypi.python.org/pypi/Mako"

View File

@ -4,7 +4,7 @@ _realname=mallard-ducktype
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=1.0.2
pkgrel=3
pkgrel=4
pkgdesc="Parser for the lightweight Ducktype syntax for Mallard"
arch=('any')
url="http://projectmallard.org/"

View File

@ -4,7 +4,7 @@ _realname=markupsafe
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=2.1.2
pkgrel=1
pkgrel=2
pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python"
arch=('i686' 'x86_64')
license=('spdx:BSD-3-Clause')

View File

@ -7,7 +7,7 @@ provides=("python3-${_realname}")
replaces=("python3-${_realname}")
conflicts=("python3-${_realname}")
pkgver=9.0.0
pkgrel=1
pkgrel=2
pkgdesc='More routines for operating on iterables, beyond itertools'
arch=('any')
url='https://github.com/erikrose/more-itertools'

View File

@ -4,7 +4,7 @@ _realname=pacdb
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
pkgver=0.1.0
pkgrel=3
pkgrel=4
pkgdesc="Pure-python module to parse and read pacman sync dbs"
arch=('any')
license=('spdx:MIT')

View File

@ -4,7 +4,7 @@ _realname=packaging
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=23.0
pkgrel=1
pkgrel=2
pkgdesc="Core utilities for Python packages"
arch=('any')
url="https://github.com/pypa/packaging"

View File

@ -3,7 +3,7 @@
_name=pathspec
pkgname=python-pathspec
pkgver=0.11.0
pkgrel=1
pkgrel=2
pkgdesc='Utility library for gitignore style pattern matching of file paths'
arch=('any')
url=https://github.com/cpburnz/python-pathspec

View File

@ -3,7 +3,7 @@
_realname=patiencediff
pkgname="python-${_realname}"
pkgver=0.2.13
pkgrel=1
pkgrel=2
pkgdesc='Patiencediff Python and C implementations'
arch=('i686' 'x86_64')
url='https://github.com/breezy-team/patiencediff'

View File

@ -4,7 +4,7 @@ _realname=pbr
pkgbase=python-${_realname}
pkgname=(python-${_realname})
pkgver=5.11.1
pkgrel=1
pkgrel=2
pkgdesc="Python Build Reasonableness"
arch=('any')
url='https://pypi.python.org/pypi/pbr'

View File

@ -4,7 +4,7 @@ _realname=pip
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=23.0
pkgrel=1
pkgrel=2
pkgdesc="The PyPA recommended tool for installing Python packages"
url="https://pip.pypa.io/"
arch=('any')

View File

@ -1,6 +1,6 @@
pkgname=python-pkgconfig
pkgver=1.5.5
pkgrel=2
pkgrel=3
pkgdesc='Python module to interface with the pkg-config command line tool'
arch=(any)
url='https://github.com/matze/pkgconfig'

View File

@ -4,7 +4,7 @@ _realname=pluggy
pkgbase=python-pluggy
pkgname=(python-${_realname})
pkgver=1.0.0
pkgrel=1
pkgrel=2
pkgdesc="Plugin and hook calling mechanisms for python"
arch=('any')
url="https://github.com/pytest-dev/pluggy"

View File

@ -1,7 +1,7 @@
_realname=poetry-core
pkgname="python-${_realname}"
pkgver=1.5.0
pkgrel=1
pkgrel=2
pkgdesc='Poetry PEP 517 Build Backend'
arch=(any)
url='https://github.com/python-poetry/poetry-core'

View File

@ -3,7 +3,7 @@
pkgbase=python-py
pkgname=('python-py')
pkgver=1.11.0
pkgrel=1
pkgrel=2
pkgdesc="library with cross-python path, ini-parsing, io, code, log facilities"
arch=('any')
license=('spdx:MIT')

View File

@ -4,7 +4,7 @@ _realname=py3c
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=1.4
pkgrel=2
pkgrel=3
pkgdesc="A Python 2/3 compatibility layer for C extensions"
arch=('i686' 'x86_64')
license=('spdx:MIT')

View File

@ -4,7 +4,7 @@ _realname=pyalpm
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=0.10.6
pkgrel=2
pkgrel=3
pkgdesc="Libalpm bindings for Python"
arch=('i686' 'x86_64')
license=('GPL')

View File

@ -4,7 +4,7 @@ _pyname=Pygments
pkgbase="python-pygments"
pkgname=("python-pygments")
pkgver=2.14.0
pkgrel=1
pkgrel=2
pkgdesc="A syntax highlighting engine written in Python"
arch=("i686" "x86_64")
url="https://pygments.org/"

View File

@ -4,7 +4,7 @@ _realname=pyparsing
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=3.0.9
pkgrel=1
pkgrel=2
pkgdesc='General parsing module for Python'
arch=('any')
url='https://github.com/pyparsing/pyparsing/'

View File

@ -3,7 +3,7 @@
_name=pyproject_hooks
pkgname=python-pyproject-hooks
pkgver=1.0.0
pkgrel=1
pkgrel=2
pkgdesc="A low-level library for calling build-backends in pyproject.toml-based project"
arch=(any)
url="https://github.com/pypa/pyproject-hooks"

View File

@ -4,7 +4,7 @@ _realname=pytest-runner
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
pkgver=6.0.0
pkgrel=1
pkgrel=2
pkgdesc="Invoke py.test as distutils command with dependency resolution"
arch=('any')
license=('MIT')

View File

@ -3,7 +3,7 @@
pkgbase=python-pytest
pkgname=('python-pytest')
pkgver=7.2.1
pkgrel=1
pkgrel=2
provides=("python3-pytest")
replaces=("python3-pytest")
conflicts=("python3-pytest")

View File

@ -4,7 +4,7 @@ _realname=setuptools-scm
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=7.1.0
pkgrel=1
pkgrel=2
pkgdesc="Handles managing your python package versions in scm metadata"
arch=('any')
license=('spdx:MIT')

View File

@ -4,7 +4,7 @@ _realname=setuptools
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=67.2.0
pkgrel=1
pkgrel=2
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('any')
license=('PSF')

View File

@ -3,7 +3,7 @@
pkgbase=python-six
pkgname=('python-six')
pkgver=1.16.0
pkgrel=2
pkgrel=3
provides=("python3-six")
replaces=("python3-six")
conflicts=("python3-six")

View File

@ -1,6 +1,6 @@
pkgname=python-tomli
pkgver=2.0.1
pkgrel=2
pkgrel=3
pkgdesc="A lil' TOML parser"
url="https://github.com/hukkin/tomli"
license=('spdx:MIT')

View File

@ -3,7 +3,7 @@
_realname=urllib3
pkgname="python-${_realname}"
pkgver=1.26.13
pkgrel=2
pkgrel=3
pkgdesc="HTTP library with thread-safe connection pooling and file post support"
url='https://github.com/urllib3/urllib3'
license=('spdx:MIT')

View File

@ -4,7 +4,7 @@ _realname=wcwidth
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
pkgver=0.2.5
pkgrel=4
pkgrel=5
pkgdesc='Measures number of Terminal column cells of wide-character codes'
url='https://github.com/jquast/wcwidth'
arch=('any')

View File

@ -3,7 +3,7 @@
_realname=wheel
pkgname="python-${_realname}"
pkgver=0.38.4
pkgrel=2
pkgrel=3
pkgdesc="A built-package format for Python"
arch=('any')
url="https://pypi.python.org/pypi/wheel"

View File

@ -5,7 +5,7 @@ _realname=yaml
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
pkgver=6.0
pkgrel=1
pkgrel=2
pkgdesc='Python bindings for YAML, using fast libYAML library'
arch=('i686' 'x86_64')
url='https://pyyaml.org/'

View File

@ -2,7 +2,7 @@
pkgname=python-zstandard
pkgver=0.19.0
pkgrel=2
pkgrel=3
pkgdesc='Python bindings to the Zstandard (zstd) compression library'
arch=('i686' 'x86_64')
url="https://github.com/indygreg/python-zstandard"

View File

@ -1,14 +0,0 @@
--- Python-3.7.2-orig/configure.ac 2019-01-06 19:25:12.660930750 -0600
+++ Python-3.7.2/configure.ac 2019-01-06 19:27:23.594427904 -0600
@@ -131,11 +131,6 @@ AC_DEFINE(_GNU_SOURCE, 1, [Define on Lin
AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features])
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
-# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
-# them.
-AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features])
-
-# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
# them.
AC_DEFINE(_DARWIN_C_SOURCE, 1, [Define on Darwin to activate all library features])

View File

@ -1,11 +0,0 @@
--- Python-3.8.0a4-orig/setup.py 2019-05-19 12:20:42.157823300 -0400
+++ Python-3.8.0a4/setup.py 2019-05-19 14:13:32.603602100 -0400
@@ -2216,7 +2216,7 @@ class PyBuildExt(build_ext):
depends=sha3_deps))
def detect_nis(self):
- if MS_WINDOWS or CYGWIN or HOST_PLATFORM == 'qnx6':
+ if MS_WINDOWS or HOST_PLATFORM == 'qnx6':
self.missing.append('nis')
return

View File

@ -9,9 +9,9 @@
".dll",
#else /* !__CYGWIN__ */
"." SOABI ".so",
--- Python-3.8.0a3-orig/configure.ac 2019-03-29 13:16:29.207031200 -0400
+++ Python-3.8.0a3/configure.ac 2019-03-29 13:20:15.713867100 -0400
@@ -837,6 +837,14 @@ cat >> conftest.c <<EOF
--- Python-3.11.2/configure.ac.orig 2023-02-13 19:44:27.282349300 +0100
+++ Python-3.11.2/configure.ac 2023-02-13 20:30:23.784979600 +0100
@@ -1057,6 +1057,14 @@
darwin
#elif defined(__VXWORKS__)
vxworks
@ -23,6 +23,6 @@
+# else
+# error unknown platform triplet
+# endif
#else
# error unknown platform triplet
#endif
#elif defined(__wasm32__)
# if defined(__EMSCRIPTEN__)
wasm32-emscripten

View File

@ -1,27 +0,0 @@
--- Python-3.8.0a3-orig/setup.py 2019-03-29 13:13:05.105468700 -0400
+++ Python-3.8.0a3/setup.py 2019-03-29 13:21:39.245117100 -0400
@@ -1871,12 +1871,6 @@ class PyBuildExt(build_ext):
include_dirs.append('/usr/X11/include')
added_lib_dirs.append('/usr/X11/lib')
- # If Cygwin, then verify that X is installed before proceeding
- if CYGWIN:
- x11_inc = find_file('X11/Xlib.h', [], include_dirs)
- if x11_inc is None:
- return False
-
# Check for BLT extension
if self.compiler.find_library_file(self.lib_dirs + added_lib_dirs,
'BLT8.0'):
@@ -1894,9 +1888,8 @@ class PyBuildExt(build_ext):
if HOST_PLATFORM in ['aix3', 'aix4']:
libs.append('ld')
- # Finally, link with the X11 libraries (not appropriate on cygwin)
- if not CYGWIN:
- libs.append('X11')
+ # Finally, link with the X11 libraries
+ libs.append('X11')
# XXX handle these, but how to detect?
# *** Uncomment and edit for PIL (TkImaging) extension only:

View File

@ -1,55 +0,0 @@
From 2e386cc70a7a719bbf664a9712e3c86ffbe63900 Mon Sep 17 00:00:00 2001
From: Mike Gilbert <floppym@gentoo.org>
Date: Mon, 11 Oct 2021 13:50:03 -0400
Subject: [PATCH] bpo-45433: Do not link libpython against libcrypt
Save/restore LIBS when calling AC_SEARCH_LIBS(..., crypt). This avoid
linking libpython with libcrypt.
---
Doc/whatsnew/3.11.rst | 2 ++
.../NEWS.d/next/Build/2021-10-11-16-08-37.bpo-45433.pVDkMV.rst | 1 +
configure | 3 +++
configure.ac | 3 +++
4 files changed, 9 insertions(+)
create mode 100644 Misc/NEWS.d/next/Build/2021-10-11-16-08-37.bpo-45433.pVDkMV.rst
--- a/configure
+++ b/configure
@@ -13227,6 +13227,8 @@ done
# We search for both crypt and crypt_r as one or the other may be defined
# This gets us our -lcrypt in LIBS when required on the target platform.
+# Save/restore LIBS to avoid linking libpython with libcrypt.
+LIBS_SAVE=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
$as_echo_n "checking for library containing crypt... " >&6; }
if ${ac_cv_search_crypt+:} false; then :
@@ -13368,6 +13370,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
+LIBS=$LIBS_SAVE
for ac_func in clock_gettime
do :
diff --git a/configure.ac b/configure.ac
index 6c65b2914bf66..afdc68363ceaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4085,6 +4085,8 @@ AC_CHECK_FUNCS(setpgrp,
# We search for both crypt and crypt_r as one or the other may be defined
# This gets us our -lcrypt in LIBS when required on the target platform.
+# Save/restore LIBS to avoid linking libpython with libcrypt.
+LIBS_SAVE=$LIBS
AC_SEARCH_LIBS(crypt, crypt)
AC_SEARCH_LIBS(crypt_r, crypt)
@@ -4099,6 +4101,7 @@ char *r = crypt_r("", "", &d);
[AC_DEFINE(HAVE_CRYPT_R, 1, [Define if you have the crypt_r() function.])],
[])
)
+LIBS=$LIBS_SAVE
AC_CHECK_FUNCS(clock_gettime, [], [
AC_CHECK_LIB(rt, clock_gettime, [

View File

@ -1,13 +0,0 @@
--- Python-3.8.5/Modules/socketmodule.h.orig 2020-07-20 15:01:32.000000000 +0200
+++ Python-3.8.5/Modules/socketmodule.h 2020-07-23 09:32:42.727747500 +0200
@@ -8,9 +8,7 @@
# include <sys/socket.h>
# endif
# include <netinet/in.h>
-# if !defined(__CYGWIN__)
-# include <netinet/tcp.h>
-# endif
+# include <netinet/tcp.h>
#else /* MS_WINDOWS */
# include <winsock2.h>

View File

@ -0,0 +1,20 @@
--- Python-3.11.2/Modules/ossaudiodev.c.orig 2023-02-07 14:37:51.000000000 +0100
+++ Python-3.11.2/Modules/ossaudiodev.c 2023-02-13 20:51:13.398293500 +0100
@@ -964,7 +964,7 @@
};
static PyTypeObject OSSAudioType = {
- PyVarObject_HEAD_INIT(&PyType_Type, 0)
+ PyVarObject_HEAD_INIT(NULL, 0)
"ossaudiodev.oss_audio_device", /*tp_name*/
sizeof(oss_audio_t), /*tp_basicsize*/
0, /*tp_itemsize*/
@@ -998,7 +998,7 @@
};
static PyTypeObject OSSMixerType = {
- PyVarObject_HEAD_INIT(&PyType_Type, 0)
+ PyVarObject_HEAD_INIT(NULL, 0)
"ossaudiodev.oss_mixer_device", /*tp_name*/
sizeof(oss_mixer_t), /*tp_basicsize*/
0, /*tp_itemsize*/

View File

@ -3,8 +3,8 @@
pkgbase=python
pkgname=('python' 'python-devel')
pkgver=3.10.10
pkgrel=2
pkgver=3.11.2
pkgrel=1
_pybasever=${pkgver%.*}
pkgdesc="Next generation of the python high-level scripting language"
arch=('i686' 'x86_64')
@ -30,46 +30,38 @@ source=(https://www.python.org/ftp/python/${pkgver%rc*}/Python-${pkgver}.tar.xz
001-3.1-enable-new-dtags.patch
003-3.4-select-cygwin.patch
005-3.7-ctypes-cygwin.patch
006-3.7-ftm.patch
007-3.8-dbm-cygwin.patch
008-3.8-distutils-cygwin.patch
009-3.8-export-PySignal_SetWakeupFd.patch
010-3.8-nis-cygwin.patch
012-3.8-pep3149-cygwin.patch
013-3.8-tkinter-cygwin.patch
014-3.8-xxsubinterpreters-cygwin.patch
015-rpath.patch
025-MINGW-compiler-customize-mingw-cygwin-compilers.patch
027-install-import-library.patch
900-msysize.patch
920-allow-win-drives-in-os-path-isabs.patch
930-fix-missing-tcp-include.patch
940-rebase-python-dll.patch
950-rebase-dlls.patch
960-fix-parallel-make.patch
28881-backport.patch)
sha256sums=('0419e9085bf51b7a672009b3f50dbf1859acdf18ba725d0ec19aa5c8503f0ea3'
970-ossaudiodev.patch)
sha256sums=('29e4b8f5f1658542a8c13e2dd277358c9c48f2b2f7318652ef1675e402b9d2af'
'be96ddaca58a39ddaf1e3e5bb7900b34c0e6d00e9b64c4e0f8a3565a74a44e84'
'82cfafc5b31ad4c9bb4c9786044c39c75762dbc2656abdfdc433c23fee69c02f'
'f0bb75ca69c63894fc43e0f8218c9dbcc746935bf5ea095a724e6fb2f5dcc566'
'098a756dfdb69b43bece4efe9d53a4f6ffc05a9a19a3d48854de787e69fc453c'
'dc044b0651a67f7c76e4119d65085e42277c0513b8e9653f0972d955c3dde2c5'
'8c460bf9522e50e06aa2c21a921eb42543d7a4cac6c598b13be43940a96966bf'
'70f854f00de71372e49f2ebbff7491e09e9e036e8e3f3646fe2984e30fb4a9da'
'62588723eb4051dccd0c8ab4183455e7ab99a3dca6c3c07e7403e1919b934ef0'
'9b84b5e027ff39ed3f827e805079f260db319a78571012815da30765ee2ceabc'
'4c6d9d786da1673208b0ef2bc3340e1acf08ce861b49193eb1592c53c3a4bd26'
'e3d3f4f8b653ddd7eec305d7af43928c070d409bcf7f1b59269d59545c8f1862'
'e48c719be36cb266ac3ceae834739fb1faae6740524cd672fd367f9304894a39'
'437332e1a7195dd0adcd505ecdeab5c3a7a793efdd7fea7bec55f97957bb8934'
'3e6c115c9b8e044193c0524b94275dfb13c1adfba3d250131b065f632b6d5512'
'9d0efb7e7e913e96b9f7953802311bbc2d046a7bfdcc3ffaf11fc509731b4d18'
'5dfed4be015e93ab6f4e99a69fc5b3eece9c801ea504c8d0517c3cb6bb7dbe89'
'85d9d042e0fa3493ec54b364e6b4fb6d2b12ba09641e01047bc84a09605ef76b'
'17e4ac1b5f0fa8a6c410fb80d1ad99ec9185efef51b8450a31932b553c354ed1'
'b439ff4f0a1f13858f8fb596414b74ed2c14fc3103d90287bb8e461ee89288b9'
'612bc5bcbe24c2f623713172d318c65a69ae601d72bcc5a170fe7c4eee458d18'
'c59025ca9d1219bbb42d620ca8d19398610737c5754f1873db07d55c47b2dad1'
'81e9e1a55fee1031b19dac55dbd068ed878abc5a6092cf4ab120486893ebb03a')
'ee109d91a1c7ea84d278d9a8b0e1feb397e691b8868d79f77ea7bb6b1b3b1968')
apply_patch_with_msg() {
for _patch in "$@"
@ -86,13 +78,10 @@ prepare() {
001-3.1-enable-new-dtags.patch \
003-3.4-select-cygwin.patch \
005-3.7-ctypes-cygwin.patch \
006-3.7-ftm.patch \
007-3.8-dbm-cygwin.patch \
008-3.8-distutils-cygwin.patch \
009-3.8-export-PySignal_SetWakeupFd.patch \
010-3.8-nis-cygwin.patch \
012-3.8-pep3149-cygwin.patch \
013-3.8-tkinter-cygwin.patch \
014-3.8-xxsubinterpreters-cygwin.patch \
015-rpath.patch \
025-MINGW-compiler-customize-mingw-cygwin-compilers.patch \
@ -101,15 +90,8 @@ prepare() {
920-allow-win-drives-in-os-path-isabs.patch \
940-rebase-python-dll.patch \
950-rebase-dlls.patch \
960-fix-parallel-make.patch
# https://bugs.python.org/issue41374
apply_patch_with_msg \
930-fix-missing-tcp-include.patch
# https://github.com/python/cpython/pull/28881
apply_patch_with_msg \
28881-backport.patch
960-fix-parallel-make.patch \
970-ossaudiodev.patch
# Ensure that we are using the system copy of various libraries (expat, zlib and libffi),
# rather than copies shipped in the tarball
@ -166,9 +148,6 @@ package_python() {
# License
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# fix permissons
find ${pkgdir}/usr -type f \( -name *.dll -o -name *.exe \) | xargs chmod 0755
}
package_python-devel() {

View File

@ -3,7 +3,7 @@
pkgname=scons
pkgver=3.1.2
pkgrel=8
pkgrel=9
pkgdesc="Extensible Python-based build utility"
arch=('any')
url="https://scons.org/"

View File

@ -2,7 +2,7 @@
pkgname=subversion
pkgver=1.14.0
pkgrel=8
pkgrel=9
pkgdesc="A Modern Concurrent Version Control System"
arch=('i686' 'x86_64')
url="https://subversion.apache.org/"

View File

@ -3,7 +3,7 @@
pkgname=txt2tags
pkgver=3.7
pkgrel=6
pkgrel=7
pkgdesc='A text formatting and conversion tool.'
arch=('any')
url='https://www.txt2tags.org/'

View File

@ -2,7 +2,7 @@
pkgname=znc
pkgver=1.8.2
pkgrel=10
pkgrel=11
pkgdesc='An IRC bouncer with modules & scripts support'
url='https://znc.in/'
license=('spdx:Apache-2.0')