mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
www-servers/uwsgi: add additional Python 3.10 patch
Bug: https://bugs.gentoo.org/829204 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
https://github.com/unbit/uwsgi/commit/94b28b156c26d5b0b4ba93fedb057e9aebf59545.patch
|
||||
|
||||
From 94b28b156c26d5b0b4ba93fedb057e9aebf59545 Mon Sep 17 00:00:00 2001
|
||||
From: Thea Flowers <me@thea.codes>
|
||||
Date: Tue, 2 Nov 2021 16:29:36 -0400
|
||||
Subject: [PATCH] Add PY_SSIZE_T_CLEAN define for Python 3.10 support
|
||||
|
||||
---
|
||||
plugins/python/uwsgi_python.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/plugins/python/uwsgi_python.h b/plugins/python/uwsgi_python.h
|
||||
index aca1f83b7..ec64ad80c 100644
|
||||
--- a/plugins/python/uwsgi_python.h
|
||||
+++ b/plugins/python/uwsgi_python.h
|
||||
@@ -1,4 +1,6 @@
|
||||
#include <uwsgi.h>
|
||||
+/* See https://docs.python.org/3.10/whatsnew/3.10.html#id2 */
|
||||
+#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
|
||||
#include <frameobject.h>
|
||||
|
||||
@@ -131,6 +131,7 @@ BDEPEND="virtual/pkgconfig"
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-py310-fix.patch"
|
||||
"${FILESDIR}/${P}-pynode-compile.patch"
|
||||
"${FILESDIR}/${P}-py310-fix-2.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
Reference in New Issue
Block a user