From b1c81de4fadbd00897700a7321f03b390d952b2e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 26 Aug 2021 00:09:36 +0100 Subject: gentoo resync : 26.08.2021 --- dev-python/pycups/files/pycups-2.0.1-py3.10.patch | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 dev-python/pycups/files/pycups-2.0.1-py3.10.patch (limited to 'dev-python/pycups/files/pycups-2.0.1-py3.10.patch') diff --git a/dev-python/pycups/files/pycups-2.0.1-py3.10.patch b/dev-python/pycups/files/pycups-2.0.1-py3.10.patch new file mode 100644 index 000000000000..557b485fbafe --- /dev/null +++ b/dev-python/pycups/files/pycups-2.0.1-py3.10.patch @@ -0,0 +1,24 @@ +From 8cbf6d40a0132764ad51e7416aa7034966875091 Mon Sep 17 00:00:00 2001 +From: Zdenek Dohnal +Date: Mon, 28 Jun 2021 13:17:45 +0200 +Subject: [PATCH] cupsipp.h: define PY_SSIZE_T_CLEAN + +Fixes traceback during IPPRequest.writeIO with Python 3.10 +--- + NEWS | 2 ++ + cupsipp.h | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/cupsipp.h b/cupsipp.h +index 2a15ce6..b890198 100644 +--- a/cupsipp.h ++++ b/cupsipp.h +@@ -21,6 +21,8 @@ + #ifndef HAVE_CUPSIPP_H + #define HAVE_CUPSIPP_H + ++#define PY_SSIZE_T_CLEAN ++ + #include + #include + -- cgit v1.2.3