summaryrefslogtreecommitdiff
path: root/graphics/graphviz/ghostscript918.patch
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2016-05-31 21:13:40 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-06-01 23:54:53 +0700
commitd0573bcd0860e2ccf9eb895a32c8385f05be83fb (patch)
tree2551032490e0032fd008267d9960877018487d99 /graphics/graphviz/ghostscript918.patch
parent85ca1f46ca4f9354542a948cafdb007a2b10d77d (diff)
downloadslackbuilds-d0573bcd0860e2ccf9eb895a32c8385f05be83fb.tar.gz
graphics/graphviz: Fixed build with ghostscript-9.19.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'graphics/graphviz/ghostscript918.patch')
-rw-r--r--graphics/graphviz/ghostscript918.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/graphviz/ghostscript918.patch b/graphics/graphviz/ghostscript918.patch
new file mode 100644
index 0000000000..189c5134ae
--- /dev/null
+++ b/graphics/graphviz/ghostscript918.patch
@@ -0,0 +1,18 @@
+diff -uprb graphviz-2.38.0.orig/plugin/gs/gvloadimage_gs.c graphviz-2.38.0/plugin/gs/gvloadimage_gs.c
+--- graphviz-2.38.0.orig/plugin/gs/gvloadimage_gs.c 2014-04-13 23:40:25.000000000 +0300
++++ graphviz-2.38.0/plugin/gs/gvloadimage_gs.c 2015-11-11 00:08:32.916123704 +0200
+@@ -72,11 +72,11 @@ static void gs_error(GVJ_t * job, const
+
+ assert (err < 0);
+
+- if (err >= e_VMerror)
++ if (err >= gs_error_VMerror)
+ errsrc = "PostScript Level 1";
+- else if (err >= e_unregistered)
++ else if (err >= gs_error_unregistered)
+ errsrc = "PostScript Level 2";
+- else if (err >= e_invalidid)
++ else if (err >= gs_error_invalidid)
+ errsrc = "DPS error";
+ else
+ errsrc = "Ghostscript internal error";