git: 64c1db0187c1 - main - textproc/redland-bindings: unbreak build with python 3.13+

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Thu, 24 Sep 2026 12:56:39 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=64c1db0187c1ee7bf24a0006b5a23e70d0334f82

commit 64c1db0187c1ee7bf24a0006b5a23e70d0334f82
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2026-09-24 12:55:58 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2026-09-24 12:55:58 +0000

    textproc/redland-bindings: unbreak build with python 3.13+
    
    Reported by:    bulk -t
---
 .../files/patch-python_redland-post.i                | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/textproc/redland-bindings/files/patch-python_redland-post.i b/textproc/redland-bindings/files/patch-python_redland-post.i
new file mode 100644
index 000000000000..6e89505dc19f
--- /dev/null
+++ b/textproc/redland-bindings/files/patch-python_redland-post.i
@@ -0,0 +1,20 @@
+--- python/redland-post.i.orig	2014-01-07 02:39:02 UTC
++++ python/redland-post.i
+@@ -111,7 +111,7 @@ librdf_call_python_message(int code, int level, int fa
+     fprintf(stderr, "librdf_call_python_message: Out of memory\n");
+     return 0;
+   }
+-  result = PyEval_CallObject(librdf_python_callback, arglist);
++  result = (PyObject *)PyEval_CallObject(librdf_python_callback, arglist);
+   Py_DECREF(arglist);
+   if(result) {
+     if(PyInt_Check(result))
+@@ -201,7 +201,7 @@ librdf_call_python_uri_filter(void* user_data, librdf_
+     fprintf(stderr, "librdf_call_python_uri_filter: Out of memory\n");
+     return 0;
+   }
+-  result = PyEval_CallObject(callback, arglist);
++  result = (PyObject *)PyEval_CallObject(callback, arglist);
+   Py_DECREF(arglist);
+   if(result) {
+     if(PyInt_Check(result))