From 17de6fc6cb0d9a9babf5950a29ced84109a3c3e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 22 Sep 2022 22:22:45 +0700 Subject: [PATCH] python3-fpylll: fix build with Python 3.11 --- srcpkgs/python3-fpylll/patches/python-3.11.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 srcpkgs/python3-fpylll/patches/python-3.11.patch diff --git a/srcpkgs/python3-fpylll/patches/python-3.11.patch b/srcpkgs/python3-fpylll/patches/python-3.11.patch new file mode 100644 index 00000000000..b5a6c0efbf1 --- /dev/null +++ b/srcpkgs/python3-fpylll/patches/python-3.11.patch @@ -0,0 +1,11 @@ +--- a/src/fpylll/gmp/pylong.pxd ++++ b/src/fpylll/gmp/pylong.pxd +@@ -3,7 +3,7 @@ + Various functions to deal with conversion mpz <-> Python int/long + """ + +-cdef extern from "longintrepr.h": ++cdef extern from "Python.h": + cdef _PyLong_New(Py_ssize_t s) + cdef long PyLong_SHIFT + ctypedef unsigned int digit