Source: python-pygraphviz
Version: 1.14-2
Severity: normal
Tags: ftbfs patch
X-Debbugs-Cc: [email protected]

Hi,

Your package participates in the upcoming Graphviz transition. There's
a variable type change and as Graphviz now modularized, you need to
add that for package testing.
To make life easier, I provide a patch.

Regards,
Laszlo/GCS
diff -Nru python-pygraphviz-1.14/debian/control python-pygraphviz-1.14/debian/control
--- python-pygraphviz-1.14/debian/control	2025-08-02 21:43:59.000000000 +0200
+++ python-pygraphviz-1.14/debian/control	2025-11-22 14:25:02.000000000 +0100
@@ -8,6 +8,7 @@
  debhelper-compat (= 13),
  dh-sequence-python3,
  graphviz <!nocheck>,
+ libgvplugin-neato-layout <!nocheck>,
  libgraphviz-dev,
  pkgconf,
  pybuild-plugin-pyproject,
diff -Nru python-pygraphviz-1.14/debian/patches/gv14.0.patch python-pygraphviz-1.14/debian/patches/gv14.0.patch
--- python-pygraphviz-1.14/debian/patches/gv14.0.patch	1970-01-01 01:00:00.000000000 +0100
+++ python-pygraphviz-1.14/debian/patches/gv14.0.patch	2025-11-22 14:25:02.000000000 +0100
@@ -0,0 +1,28 @@
+Description: fix build with Graphviz 14.0+
+ The size variable type became the official size_t.
+Author: Laszlo Boszormenyi (GCS) <[email protected]>
+Forwarded: no
+Last-Update: 2025-11-22
+
+---
+
+--- python-pygraphviz-1.14.orig/pygraphviz/graphviz_wrap.c
++++ python-pygraphviz-1.14/pygraphviz/graphviz_wrap.c
+@@ -5447,7 +5447,7 @@ SWIGINTERN PyObject *_wrap_gvRenderData(
+   Agraph_t *arg2 = (Agraph_t *) 0 ;
+   char *arg3 = (char *) 0 ;
+   char **arg4 = (char **) 0 ;
+-  unsigned int *arg5 = (unsigned int *) 0 ;
++  size_t *arg5 = (size_t *) 0 ;
+   void *argp1 = 0 ;
+   int res1 = 0 ;
+   void *argp2 = 0 ;
+@@ -5456,7 +5456,7 @@ SWIGINTERN PyObject *_wrap_gvRenderData(
+   char *buf3 = 0 ;
+   int alloc3 = 0 ;
+   char *temp4 = 0 ;
+-  unsigned int tempn4 ;
++  size_t tempn4 ;
+   PyObject *swig_obj[3] ;
+   int result;
+   
diff -Nru python-pygraphviz-1.14/debian/patches/series python-pygraphviz-1.14/debian/patches/series
--- python-pygraphviz-1.14/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ python-pygraphviz-1.14/debian/patches/series	2025-11-22 14:25:02.000000000 +0100
@@ -0,0 +1 @@
+gv14.0.patch

Reply via email to