[arch-commits] Commit in graphviz/trunk (PKGBUILD ghostscript918.patch)
Evangelos Foutras
foutrelis at archlinux.org
Tue Nov 10 22:12:05 UTC 2015
Date: Tuesday, November 10, 2015 @ 23:12:05
Author: foutrelis
Revision: 250593
Fix build with ghostscript 9.18
Added:
graphviz/trunk/ghostscript918.patch
Modified:
graphviz/trunk/PKGBUILD
----------------------+
PKGBUILD | 7 +++++--
ghostscript918.patch | 18 ++++++++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-11-10 21:56:29 UTC (rev 250592)
+++ PKGBUILD 2015-11-10 22:12:05 UTC (rev 250593)
@@ -24,9 +24,11 @@
'qt4: gvedit'
'gtk2: gtk output plugin')
source=("${url}/pub/${pkgname}/stable/SOURCES/${pkgname}-${pkgver}.tar.gz"
- 'format-string.patch')
+ 'format-string.patch'
+ 'ghostscript918.patch')
sha1sums=('053c771278909160916ca5464a0a98ebf034c6ef'
- '271d116bc022596a64b6ee061f3d2e50fa2e6025')
+ '271d116bc022596a64b6ee061f3d2e50fa2e6025'
+ 'bcce75a535c277556e196638e59ea019b0a63fa1')
install=install
@@ -33,6 +35,7 @@
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 -i ../format-string.patch # FS#42983
+ patch -p1 -i ../ghostscript918.patch
}
build() {
Added: ghostscript918.patch
===================================================================
--- ghostscript918.patch (rev 0)
+++ ghostscript918.patch 2015-11-10 22:12:05 UTC (rev 250593)
@@ -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";
More information about the arch-commits
mailing list