[packages/dico] - rel 4, fix building with python 3.13

baggins baggins at pld-linux.org
Mon Mar 24 22:12:24 CET 2025


commit 7343294f5313697e84d734f7bcb7a061f83912ba
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Mar 24 23:07:33 2025 +0100

    - rel 4, fix building with python 3.13

 dico.spec        |  4 +++-
 python3.13.patch | 20 ++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/dico.spec b/dico.spec
index 76a03fa..c7b07a9 100644
--- a/dico.spec
+++ b/dico.spec
@@ -6,13 +6,14 @@ Summary:	GNU Dico - flexible implementation of DICT server
 Summary(pl.UTF-8):	GNU Dico - elastyczna implementacja serwera DICT
 Name:		dico
 Version:	2.12
-Release:	3
+Release:	4
 License:	GPL v3+
 Group:		Applications/Text
 Source0:	https://ftp.gnu.org/gnu/dico/%{name}-%{version}.tar.xz
 # Source0-md5:	db97706e7581f3ef26e0ae4c14480f40
 Patch0:		%{name}-nolibs.patch
 Patch1:		%{name}-info.patch
+Patch2:		python3.13.patch
 URL:		http://www.gnu.org/software/dico/
 BuildRequires:	WordNet-devel
 BuildRequires:	autoconf >= 2.71
@@ -95,6 +96,7 @@ Statyczna biblioteka GNU Dico.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 # configure.ac isn't rebuildable using files from dist tarball
diff --git a/python3.13.patch b/python3.13.patch
new file mode 100644
index 0000000..e45ddae
--- /dev/null
+++ b/python3.13.patch
@@ -0,0 +1,20 @@
+--- dico-2.12/modules/python/python.c~	2024-10-15 11:34:20.000000000 +0200
++++ dico-2.12/modules/python/python.c	2025-03-24 23:04:50.733315742 +0100
+@@ -100,7 +100,7 @@
+ }
+ 
+ static PyTypeObject PySelectionKeyType = {
+-    PyObject_HEAD_INIT(&PyType_Type)
++    PyVarObject_HEAD_INIT(&PyType_Type, 0)
+     .tp_name = "DicoSelectionKey",
+     .tp_basicsize = sizeof (PySelectionKey),
+     .tp_dealloc = _PySelectionKey_dealloc,
+@@ -185,7 +185,7 @@
+ }
+ 
+ static PyTypeObject PyStrategyType = {
+-    PyObject_HEAD_INIT(&PyType_Type)
++    PyVarObject_HEAD_INIT(&PyType_Type, 0)
+     .tp_name = "DicoStrategy",
+     .tp_basicsize = sizeof (PyStrategy),
+     .tp_dealloc = _PyStrategy_dealloc,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dico.git/commitdiff/7343294f5313697e84d734f7bcb7a061f83912ba



More information about the pld-cvs-commit mailing list