diff -Nru mirage-0.11.1/debian/changelog mirage-0.11.1/debian/changelog --- mirage-0.11.1/debian/changelog 2022-03-17 14:06:39.000000000 +0000 +++ mirage-0.11.1/debian/changelog 2023-12-25 00:59:00.000000000 +0000 @@ -1,3 +1,9 @@ +mirage (0.11.1-1ubuntu0.22.04.1) jammy; urgency=medium + + * Add sentinel value to fix segfault. (LP: #1994145) + + -- Sudip Mukherjee Mon, 25 Dec 2023 00:59:00 +0000 + mirage (0.11.1-1build4) jammy; urgency=medium * No-change rebuild with Python 3.10 only. diff -Nru mirage-0.11.1/debian/patches/fix_sentinel.patch mirage-0.11.1/debian/patches/fix_sentinel.patch --- mirage-0.11.1/debian/patches/fix_sentinel.patch 1970-01-01 01:00:00.000000000 +0100 +++ mirage-0.11.1/debian/patches/fix_sentinel.patch 2023-12-25 00:58:56.000000000 +0000 @@ -0,0 +1,29 @@ +From 0ad50581a4554285190e4d7d47e69cd002ee94ad Mon Sep 17 00:00:00 2001 +From: Sudip Mukherjee +Date: Sun, 24 Dec 2023 19:11:49 +0000 +Subject: [PATCH] Add sentinel value to fix segfault + +Ubuntu was always segfaulting when mirage is executed. Upstream Python +developers pointed out that the sentinel value is not added. + +Ref: https://github.com/python/cpython/issues/113460 + +Signed-off-by: Sudip Mukherjee +Origin: upstream, https://gitlab.com/thomasross/mirage/-/commit/0ad50581a4554285190e4d7d47e69cd002ee94ad +Bug-Ubuntu: https://launchpad.net/bugs/1994145 +Last-Update: 2023-12-25 +--- + +diff --git a/mirage/xmouse.c b/mirage/xmouse.c +index 0309676..6a81425 100644 +--- a/mirage/xmouse.c ++++ b/mirage/xmouse.c +@@ -39,6 +39,7 @@ static PyMethodDef methods[] = + { + {"geometry", xmouse_geometry, METH_VARARGS, + "Get the geometry of the window under the mouse cursor."}, ++ {NULL, NULL, 0, NULL} + }; + + static PyModuleDef xmouse_module = { +-- diff -Nru mirage-0.11.1/debian/patches/series mirage-0.11.1/debian/patches/series --- mirage-0.11.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ mirage-0.11.1/debian/patches/series 2023-12-25 00:58:56.000000000 +0000 @@ -0,0 +1 @@ +fix_sentinel.patch