diff --git a/graphviz.changes b/graphviz.changes index 53f0a4a..21bc122 100644 --- a/graphviz.changes +++ b/graphviz.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 19 10:40:10 UTC 2022 - Klaus Kämpf + +- add swig-4.1.0.patch to work around graphviz's incompatibility + with swig-4.1.0. + ------------------------------------------------------------------- Fri Aug 12 13:33:05 UTC 2022 - Stephan Kulow diff --git a/graphviz.spec b/graphviz.spec index aaa4bfd..8906605 100644 --- a/graphviz.spec +++ b/graphviz.spec @@ -81,6 +81,8 @@ Patch3: graphviz-2.20.2-interpreter_names.patch Patch4: graphviz-useless_warnings.patch Patch5: graphviz-no_strict_aliasing.patch Patch6: graphviz-no_php_extra_libs.patch +# https://gitlab.com/graphviz/graphviz/-/issues/2303 +Patch7: swig-4.1.0.patch BuildRequires: autoconf BuildRequires: automake @@ -412,6 +414,7 @@ programs that use the graphviz libraries including man3 pages. %patch4 %patch5 -p1 %patch6 +%patch7 -p1 # pkg-config returns 0 (TRUE) when guile-2.2 is present if pkg-config --atleast-version=2.2 guile-2.2; then diff --git a/swig-4.1.0.patch b/swig-4.1.0.patch new file mode 100644 index 0000000..a62f731 --- /dev/null +++ b/swig-4.1.0.patch @@ -0,0 +1,18 @@ +diff --git a/tclpkg/gv/gv.i b/tclpkg/gv/gv.i +index ea65ada2f..0bab8817f 100644 +--- a/tclpkg/gv/gv.i ++++ b/tclpkg/gv/gv.i +@@ -10,6 +10,13 @@ + + %module gv + ++#ifdef SWIGPHP ++%pragma(php) code="/* ++This is a deprecated interface. ++Load graphviz via PHP's C API in php.ini instead. ++*/" ++#endif ++ + #ifdef SWIGTCL + // A typemap telling SWIG to ignore an argument for input + // However, we still need to pass a pointer to the C function