[packages/libprelude] - added ac and python 3.13 fixes; release 4
qboosh
qboosh at pld-linux.org
Sun Apr 6 18:07:30 CEST 2025
commit 4de3d2fe8d690da0803f0ef90ab97fea44faec3a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 6 17:41:06 2025 +0200
- added ac and python 3.13 fixes; release 4
libprelude-python.patch | 23 +++++++++++++++++++++++
libprelude.spec | 6 +++++-
2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/libprelude.spec b/libprelude.spec
index 18bb352..5974412 100644
--- a/libprelude.spec
+++ b/libprelude.spec
@@ -14,7 +14,7 @@ Summary: The Prelude library
Summary(pl.UTF-8): Biblioteka Prelude
Name: libprelude
Version: 5.2.0
-Release: 3
+Release: 4
License: GPL v2 or commercial
Group: Libraries
#Source0Download: https://www.prelude-siem.org/projects/prelude/files
@@ -24,6 +24,7 @@ Patch0: python-install.patch
Patch1: %{name}-lua.patch
Patch2: gtk-doc-1.32.patch
Patch3: %{name}-cast.patch
+Patch4: %{name}-python.patch
URL: https://www.prelude-siem.org/
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1:1.9
@@ -231,6 +232,7 @@ Wiązania języka Ruby do libprelude.
%patch -P 1 -p1
%patch -P 2 -p1
%patch -P 3 -p1
+%patch -P 4 -p1
# in case swig regeneration is required:
#%{__rm} bindings/python/{_prelude.cxx,prelude.py}
@@ -247,7 +249,9 @@ gnulib-tool --copy-file m4/fseeko.m4 libmissing/m4/fseeko.m4
%{__autoconf}
%{__autoheader}
%{__automake}
+# ac_cv_prog_HAVE_CXX=yes is a hack for some broken check
%configure \
+ ac_cv_prog_HAVE_CXX=yes \
am_cv_ruby_rbexecdir=%{ruby_vendorarchdir} \
--enable-gtk-doc \
%{?with_static_libs:--enable-static} \
diff --git a/libprelude-python.patch b/libprelude-python.patch
new file mode 100644
index 0000000..34358f2
--- /dev/null
+++ b/libprelude-python.patch
@@ -0,0 +1,23 @@
+Avoid rebuilding swig (not compatible with upstream version)
+#--- libprelude-5.2.0/bindings/python/libpreludecpp-python.i.orig 2020-09-09 16:30:32.510000000 +0200
+#+++ libprelude-5.2.0/bindings/python/libpreludecpp-python.i 2025-04-06 17:00:10.480012421 +0200
+#@@ -86,7 +86,7 @@ static void _cb_python_log(int level, co
+# SWIG_PYTHON_THREAD_BEGIN_BLOCK;
+#
+# arglist = Py_BuildValue("(i,s)", level, str);
+#- result = PyEval_CallObject(__prelude_log_func, arglist);
+#+ result = PyObject_CallObject(__prelude_log_func, arglist);
+#
+# Py_DECREF(arglist);
+# Py_XDECREF(result);
+--- libprelude-5.2.0/bindings/python/_prelude.cxx.orig 2020-09-09 16:30:32.510000000 +0200
++++ libprelude-5.2.0/bindings/python/_prelude.cxx 2025-04-06 17:24:12.589469239 +0200
+@@ -4112,7 +4112,7 @@ static void _cb_python_log(int level, co
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
+
+ arglist = Py_BuildValue("(i,s)", level, str);
+- result = PyEval_CallObject(__prelude_log_func, arglist);
++ result = PyObject_CallObject(__prelude_log_func, arglist);
+
+ Py_DECREF(arglist);
+ Py_XDECREF(result);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libprelude.git/commitdiff/4de3d2fe8d690da0803f0ef90ab97fea44faec3a
More information about the pld-cvs-commit
mailing list