--- Begin Message ---
Package: release.debian.org
Severity: normal
X-Debbugs-Cc: pdfarranger@packages.debian.org
Control: affects -1 + src:pdfarranger
User: release.debian.org@packages.debian.org
Usertags: unblock
[ Reason ]
pdfarranger was rendered completely non-functional by python3.13
3.13.4-1 in unstable, as described in https://bugs.debian.org/1107304.
[ Impact ]
If python3.13 3.13.4-1 doesn't migrate to testing, then it should be
fine; but otherwise pdfarranger will fail to start. I don't really want
to bank on the former not happening.
[ Tests ]
https://github.com/pdfarranger/pdfarranger/issues/1238 has a couple of
reports from people on various distributions that this patch fixes
things with Python 3.13.4. I tested it manually against the python3.13
version in testing as well.
pdfarranger doesn't have autopkgtests, so this won't migrate on its own.
[ Risks ]
This is a leaf package.
The patch just moves a multiprocessing.freeze_support
(https://docs.python.org/3/library/multiprocessing.html#multiprocessing.freeze_support)
call to a place where it won't be used unless you're using a frozen
executable. The Debian package isn't a frozen executable, and
multiprocessing.freeze_support is irrelevant if you aren't using a
frozen executable, so that should be exactly what we want.
[ Checklist ]
[x] all changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in testing
unblock pdfarranger/1.11.1-3
Thanks,
--
Colin Watson (he/him) [cjwatson@debian.org]
diff -Nru pdfarranger-1.11.1/debian/changelog pdfarranger-1.11.1/debian/changelog
--- pdfarranger-1.11.1/debian/changelog 2025-02-13 18:51:09.000000000 +0000
+++ pdfarranger-1.11.1/debian/changelog 2025-06-10 17:46:41.000000000 +0100
@@ -1,3 +1,10 @@
+pdfarranger (1.11.1-3) unstable; urgency=medium
+
+ * Team upload.
+ * Fix incompatibility with Python 3.13.4 (closes: #1107304).
+
+ -- Colin Watson <cjwatson@debian.org> Tue, 10 Jun 2025 17:46:41 +0100
+
pdfarranger (1.11.1-2) unstable; urgency=medium
* Team upload.
diff -Nru pdfarranger-1.11.1/debian/patches/freeze-py3134.patch pdfarranger-1.11.1/debian/patches/freeze-py3134.patch
--- pdfarranger-1.11.1/debian/patches/freeze-py3134.patch 1970-01-01 01:00:00.000000000 +0100
+++ pdfarranger-1.11.1/debian/patches/freeze-py3134.patch 2025-06-10 17:46:41.000000000 +0100
@@ -0,0 +1,29 @@
+From: David Auer <dreua@posteo.de>
+Date: Tue, 10 Jun 2025 01:14:30 +0200
+Subject: Fix incompatibility with Python 3.13.4
+
+Origin: other, https://github.com/pdfarranger/pdfarranger/pull/1239
+Bug: https://github.com/pdfarranger/pdfarranger/issues/1238
+Bug-Debian: https://bugs.debian.org/1107304
+Last-Update: 2025-06-10
+---
+ pdfarranger/pdfarranger.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pdfarranger/pdfarranger.py b/pdfarranger/pdfarranger.py
+index 1f1c6a7..0e6f273 100644
+--- a/pdfarranger/pdfarranger.py
++++ b/pdfarranger/pdfarranger.py
+@@ -41,11 +41,11 @@ from urllib.request import url2pathname
+ from functools import lru_cache
+ from math import log
+
+-multiprocessing.freeze_support() # Does nothing in Linux
+
+ sharedir = os.path.join(sys.prefix, 'share')
+ basedir = '.'
+ if getattr(sys, 'frozen', False):
++ multiprocessing.freeze_support()
+ basedir = os.path.dirname(sys.executable)
+ sharedir = os.path.join(basedir, 'share')
+ elif sys.argv[0]:
diff -Nru pdfarranger-1.11.1/debian/patches/series pdfarranger-1.11.1/debian/patches/series
--- pdfarranger-1.11.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ pdfarranger-1.11.1/debian/patches/series 2025-06-10 17:46:41.000000000 +0100
@@ -0,0 +1 @@
+freeze-py3134.patch
--- End Message ---