Version in base suite: 5.0.0-2 Base version: python3-lxc_5.0.0-2 Target version: python3-lxc_5.0.0-2+deb13u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/p/python3-lxc/python3-lxc_5.0.0-2.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/p/python3-lxc/python3-lxc_5.0.0-2+deb13u1.dsc changelog | 7 +++ gbp.conf | 2 - patches/001-cherry-pick-python-313-fix.patch | 48 +++++++++++++++++++++++++++ patches/series | 1 4 files changed, 57 insertions(+), 1 deletion(-) dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmp4jimtxh3/python3-lxc_5.0.0-2.dsc: no acceptable signature found dpkg-source: warning: cannot verify inline signature for /srv/release.debian.org/tmp/tmp4jimtxh3/python3-lxc_5.0.0-2+deb13u1.dsc: no acceptable signature found diff -Nru python3-lxc-5.0.0/debian/changelog python3-lxc-5.0.0/debian/changelog --- python3-lxc-5.0.0/debian/changelog 2024-04-14 01:13:37.000000000 +0000 +++ python3-lxc-5.0.0/debian/changelog 2026-05-06 19:13:17.000000000 +0000 @@ -1,3 +1,10 @@ +python3-lxc (1:5.0.0-2+deb13u1) trixie; urgency=medium + + * Cherry-pick upstream fix for compatibility with Python 3.13+ + (Closes: #1135733) + + -- Mathias Gibbens Wed, 06 May 2026 19:13:17 +0000 + python3-lxc (1:5.0.0-2) unstable; urgency=medium * d/control: diff -Nru python3-lxc-5.0.0/debian/gbp.conf python3-lxc-5.0.0/debian/gbp.conf --- python3-lxc-5.0.0/debian/gbp.conf 2024-04-14 01:02:11.000000000 +0000 +++ python3-lxc-5.0.0/debian/gbp.conf 2026-05-06 19:13:11.000000000 +0000 @@ -1,3 +1,3 @@ [DEFAULT] pristine-tar = True -debian-branch = debian/unstable +debian-branch = debian/trixie diff -Nru python3-lxc-5.0.0/debian/patches/001-cherry-pick-python-313-fix.patch python3-lxc-5.0.0/debian/patches/001-cherry-pick-python-313-fix.patch --- python3-lxc-5.0.0/debian/patches/001-cherry-pick-python-313-fix.patch 1970-01-01 00:00:00.000000000 +0000 +++ python3-lxc-5.0.0/debian/patches/001-cherry-pick-python-313-fix.patch 2026-05-06 19:13:13.000000000 +0000 @@ -0,0 +1,48 @@ +From 5c603a76658d7d278086682ad4481d4c792224f4 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20V=C3=B6gele?= +Date: Tue, 13 May 2025 12:07:36 +0200 +Subject: [PATCH] Replace the deprecated PyOS_AfterFork() function +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Container_attach_and_possibly_wait() fails in Python 3.13 with +"PyMutex_Unlock: unlocking mutex that is not locked" if PyOS_AfterFork() +is used. + +Signed-off-by: Andreas Vögele +--- + lxc.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/lxc.c b/lxc.c +index b515acd..3039cfc 100644 +--- a/lxc.c ++++ b/lxc.c +@@ -198,7 +198,11 @@ static int lxc_attach_python_exec(void* _payload) + * container. As lxc_attach() calls fork() PyOS_AfterFork should be called + * in the new process if the Python interpreter will continue to be used. + */ ++#if PY_VERSION_HEX >= 0x030700F0 ++ PyOS_AfterFork_Child(); ++#else + PyOS_AfterFork(); ++#endif + + struct lxc_attach_python_payload *payload = + (struct lxc_attach_python_payload *)_payload; +@@ -748,8 +752,14 @@ Container_attach_and_possibly_wait(Container *self, PyObject *args, + if (!options) + return NULL; + ++#if PY_VERSION_HEX >= 0x030700F0 ++ PyOS_BeforeFork(); ++#endif + ret = self->container->attach(self->container, lxc_attach_python_exec, + &payload, options, &pid); ++#if PY_VERSION_HEX >= 0x030700F0 ++ PyOS_AfterFork_Parent(); ++#endif + if (ret < 0) + goto out; + diff -Nru python3-lxc-5.0.0/debian/patches/series python3-lxc-5.0.0/debian/patches/series --- python3-lxc-5.0.0/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ python3-lxc-5.0.0/debian/patches/series 2026-05-06 19:13:13.000000000 +0000 @@ -0,0 +1 @@ +001-cherry-pick-python-313-fix.patch