diff -Nru python-qrencode-1.2/debian/changelog python-qrencode-1.2/debian/changelog --- python-qrencode-1.2/debian/changelog 2022-03-17 14:07:22.000000000 +0000 +++ python-qrencode-1.2/debian/changelog 2024-03-12 21:01:40.000000000 +0000 @@ -1,3 +1,9 @@ +python-qrencode (1.2-5ubuntu0.1) jammy; urgency=medium + + * fix crash in Python 3.10 (LP: #2056361) + + -- Sudip Mukherjee Tue, 12 Mar 2024 21:01:40 +0000 + python-qrencode (1.2-5build6) jammy; urgency=medium * No-change rebuild with Python 3.10 only. diff -Nru python-qrencode-1.2/debian/control python-qrencode-1.2/debian/control --- python-qrencode-1.2/debian/control 2019-08-30 13:31:57.000000000 +0100 +++ python-qrencode-1.2/debian/control 2024-03-12 21:01:40.000000000 +0000 @@ -1,7 +1,8 @@ Source: python-qrencode Section: python Priority: optional -Maintainer: Hugo Lefeuvre +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Hugo Lefeuvre Build-Depends: debhelper-compat (= 12), dh-python, libqrencode-dev, diff -Nru python-qrencode-1.2/debian/patches/python3-10-port.patch python-qrencode-1.2/debian/patches/python3-10-port.patch --- python-qrencode-1.2/debian/patches/python3-10-port.patch 1970-01-01 01:00:00.000000000 +0100 +++ python-qrencode-1.2/debian/patches/python3-10-port.patch 2024-03-12 21:01:40.000000000 +0000 @@ -0,0 +1,15 @@ +Description: adapt to changes in Python 3.10 +Author: anarcat@debian.org +Origin: Debian, https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1032287;filename=python-qrencode-1.2-5.1-nmu.diff;msg=14 +Bug-Ubuntu: https://bugs.launchpad.net/bugs/2056361 +Forwarded: no +Last-Update: 2024-03-12 +--- + +--- python-qrencode-1.2.orig/qr_encode.c ++++ python-qrencode-1.2/qr_encode.c +@@ -1,3 +1,4 @@ ++#define PY_SSIZE_T_CLEAN + #include + #include + #include diff -Nru python-qrencode-1.2/debian/patches/series python-qrencode-1.2/debian/patches/series --- python-qrencode-1.2/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ python-qrencode-1.2/debian/patches/series 2024-03-12 20:16:21.000000000 +0000 @@ -0,0 +1 @@ +python3-10-port.patch