[packages/python-ReportLab] - added types patch (fixes python2 build with current gcc)
qboosh
qboosh at pld-linux.org
Sun Mar 16 20:19:11 CET 2025
commit d5cf5c790a5554dd4c298beb812a1fe141d594f4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 16 20:06:43 2025 +0100
- added types patch (fixes python2 build with current gcc)
python-ReportLab.spec | 2 ++
reportlab-types.patch | 11 +++++++++++
2 files changed, 13 insertions(+)
---
diff --git a/python-ReportLab.spec b/python-ReportLab.spec
index 9b41c48..d590223 100644
--- a/python-ReportLab.spec
+++ b/python-ReportLab.spec
@@ -20,6 +20,7 @@ Group: Libraries/Python
#Source0Download: https://bitbucket.org/rptlab/reportlab/downloads/?tab=tags
Source0: https://files.pythonhosted.org/packages/source/r/reportlab/reportlab-%{version}.tar.gz
# Source0-md5: 92f79d609974ae8d6c57d0e3187db297
+Patch0: reportlab-types.patch
URL: https://www.reportlab.com/dev/opensource/
BuildRequires: freetype-devel >= 2
BuildRequires: libart_lgpl-devel >= 2
@@ -106,6 +107,7 @@ Przykłady do biblioteki ReportLab.
%prep
%setup -q -n reportlab-%{version}
+%patch -P0 -p1
%build
%if %{with python2}
diff --git a/reportlab-types.patch b/reportlab-types.patch
new file mode 100644
index 0000000..d3c68a5
--- /dev/null
+++ b/reportlab-types.patch
@@ -0,0 +1,11 @@
+--- reportlab-3.5.68/src/rl_addons/rl_accel/_rl_accel.c.orig 2021-01-17 18:34:07.000000000 +0100
++++ reportlab-3.5.68/src/rl_addons/rl_accel/_rl_accel.c 2025-03-16 19:53:51.392468007 +0100
+@@ -622,7 +622,7 @@ static PyObject *unicode2T1(PyObject *mo
+ *_o1 = NULL, *_o2 = NULL, *_o3 = NULL;
+ static char *argnames[] = {"utext","fonts",NULL};
+ PyObject *encObj = NULL;
+- char *encStr;
++ const char *encStr;
+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO", argnames, &utext, &fonts)) return NULL;
+ Py_INCREF(utext);
+ Py_INCREF(fonts);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ReportLab.git/commitdiff/d5cf5c790a5554dd4c298beb812a1fe141d594f4
More information about the pld-cvs-commit
mailing list