Add python313.patch #1

Open
dgarcia wants to merge 1 commits from dgarcia/pdfarranger:python313 into leap-16.0
3 changed files with 34 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 3 06:53:51 UTC 2026 - Daniel Garcia <daniel.garcia@suse.com>
- Add python313.patch to fix compatibility with python313
boo#1257190, gh#pdfarranger/pdfarranger#1238
-------------------------------------------------------------------
Thu Oct 17 09:06:21 UTC 2024 - Christophe Marin <christophe@krop.fr>

View File

@@ -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

26
python313.patch Normal file
View File

@@ -0,0 +1,26 @@
From 681fa51a2a20b13b4c77cc11a6007f99bf8da1e0 Mon Sep 17 00:00:00 2001
From: David Auer <dreua@posteo.de>
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]: