Control: tags -1 patch

I am including a debdiff and uploading it as a NMU.
diff -Nru jsonnet-0.20.0+ds/debian/changelog jsonnet-0.20.0+ds/debian/changelog
--- jsonnet-0.20.0+ds/debian/changelog  2024-11-02 10:59:46.000000000 +0100
+++ jsonnet-0.20.0+ds/debian/changelog  2025-01-15 13:37:08.000000000 +0100
@@ -1,3 +1,10 @@
+jsonnet (0.20.0+ds-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * remove deprecated declarations in python bindings (Closes: #1047367)
+
+ -- Bastian Germann <b...@debian.org>  Wed, 15 Jan 2025 13:37:08 +0100
+
 jsonnet (0.20.0+ds-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru 
jsonnet-0.20.0+ds/debian/patches/0005-remove-deprecated-declarations-in-python-binding.patch
 
jsonnet-0.20.0+ds/debian/patches/0005-remove-deprecated-declarations-in-python-binding.patch
--- 
jsonnet-0.20.0+ds/debian/patches/0005-remove-deprecated-declarations-in-python-binding.patch
        1970-01-01 01:00:00.000000000 +0100
+++ 
jsonnet-0.20.0+ds/debian/patches/0005-remove-deprecated-declarations-in-python-binding.patch
        2025-01-15 13:35:19.000000000 +0100
@@ -0,0 +1,32 @@
+Origin: upstream, 913281d203578bb394995bacc792f2576371e06c
+From: Pat Riehecky <3534830+jcp...@users.noreply.github.com>
+Date: Sun, 23 Jun 2024 07:47:36 -0500
+Subject: fix: remove deprecated declarations in python bindings (#1159)
+
+Fixes: https://github.com/google/jsonnet/issues/1032
+---
+ python/_jsonnet.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/python/_jsonnet.c b/python/_jsonnet.c
+index 5acd4aa..6bca5c7 100644
+--- a/python/_jsonnet.c
++++ b/python/_jsonnet.c
+@@ -186,7 +186,7 @@ static struct JsonnetJsonValue *cpython_native_callback(
+     }
+ 
+     // Call python function.
+-    result = PyEval_CallObject(ctx->callback, arglist);
++    result = PyObject_CallObject(ctx->callback, arglist);
+     Py_DECREF(arglist);
+ 
+     if (result == NULL) {
+@@ -226,7 +226,7 @@ static int cpython_import_callback(void *ctx_, const char 
*base, const char *rel
+ 
+     PyEval_RestoreThread(*ctx->py_thread);
+     arglist = Py_BuildValue("(s, s)", base, rel);
+-    result = PyEval_CallObject(ctx->callback, arglist);
++    result = PyObject_CallObject(ctx->callback, arglist);
+     Py_DECREF(arglist);
+ 
+     if (result == NULL) {
diff -Nru jsonnet-0.20.0+ds/debian/patches/series 
jsonnet-0.20.0+ds/debian/patches/series
--- jsonnet-0.20.0+ds/debian/patches/series     2024-11-02 10:59:46.000000000 
+0100
+++ jsonnet-0.20.0+ds/debian/patches/series     2025-01-15 13:36:42.000000000 
+0100
@@ -2,3 +2,4 @@
 0002-fix-compile-error-in-armel.patch
 0003-add-support-riscv64.patch
 0004-add-loongarch64-support.patch
+0005-remove-deprecated-declarations-in-python-binding.patch

Reply via email to