SHA256
1
0
forked from pool/graphviz
Dominique Leuenberger 2022-10-25 09:18:41 +00:00 committed by Git OBS Bridge
commit 0ee013670a
3 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 19 10:40:10 UTC 2022 - Klaus Kämpf <kkaempf@suse.com>
- 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 <coolo@suse.com>

View File

@ -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

18
swig-4.1.0.patch Normal file
View File

@ -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