From c823ef588e53f557cf0b358d0e5b486d51619d6d466d3a5462dc356ab55af4d7 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Moreno Date: Tue, 3 Feb 2026 07:55:52 +0100 Subject: [PATCH] Add python313.patch Add python313.patch to fix compatibility with python313 boo#1257190, gh#pdfarranger/pdfarranger#1238 --- pdfarranger.changes | 6 ++++++ pdfarranger.spec | 2 ++ python313.patch | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 python313.patch diff --git a/pdfarranger.changes b/pdfarranger.changes index 1770412..a68c946 100644 --- a/pdfarranger.changes +++ b/pdfarranger.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 3 06:53:51 UTC 2026 - Daniel Garcia + +- Add python313.patch to fix compatibility with python313 + boo#1257190, gh#pdfarranger/pdfarranger#1238 + ------------------------------------------------------------------- Thu Oct 17 09:06:21 UTC 2024 - Christophe Marin diff --git a/pdfarranger.spec b/pdfarranger.spec index dccebdd..ab91783 100644 --- a/pdfarranger.spec +++ b/pdfarranger.spec @@ -24,6 +24,8 @@ Summary: Merge, split, rotate, crop, and rearrange pages of PDF documents License: GPL-3.0-only URL: https://github.com/pdfarranger/pdfarranger Source: https://github.com/pdfarranger/pdfarranger/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM python313.patch gh#pdfarranger/pdfarranger@681fa51a2a20 +Patch0: python313.patch BuildRequires: fdupes BuildRequires: intltool BuildRequires: python3-devel diff --git a/python313.patch b/python313.patch new file mode 100644 index 0000000..b0f59ec --- /dev/null +++ b/python313.patch @@ -0,0 +1,26 @@ +From 681fa51a2a20b13b4c77cc11a6007f99bf8da1e0 Mon Sep 17 00:00:00 2001 +From: David Auer +Date: Tue, 10 Jun 2025 01:14:30 +0200 +Subject: [PATCH] Fix incompatibility with Python 3.13.4 + +--- + pdfarranger/pdfarranger.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pdfarranger/pdfarranger.py b/pdfarranger/pdfarranger.py +index 631e19d94..07d90ab4c 100644 +--- a/pdfarranger/pdfarranger.py ++++ b/pdfarranger/pdfarranger.py +@@ -41,11 +41,11 @@ + 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]: -- 2.51.1