gs 9.18 renamed error namespace, but provides no good way of testing the version number so allow for both old and new names by testing the guard define of the gserrors.h that appeared at the same point.diff -r1.24 -r1.25 pkgsrc/print/libspectre/Makefile
(markd)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.24 2015/04/21 22:28:36 rodent Exp $ | 1 | # $NetBSD: Makefile,v 1.25 2015/12/10 12:03:41 markd Exp $ | |
2 | 2 | |||
3 | DISTNAME= libspectre-0.2.7 | 3 | DISTNAME= libspectre-0.2.7 | |
4 | PKGREVISION= 8 | 4 | PKGREVISION= 9 | |
5 | CATEGORIES= print | 5 | CATEGORIES= print | |
6 | MASTER_SITES= http://libspectre.freedesktop.org/releases/ | 6 | MASTER_SITES= http://libspectre.freedesktop.org/releases/ | |
7 | 7 | |||
8 | MAINTAINER= markd@NetBSD.org | 8 | MAINTAINER= markd@NetBSD.org | |
9 | HOMEPAGE= http://www.freedesktop.org/wiki/Software/libspectre/ | 9 | HOMEPAGE= http://www.freedesktop.org/wiki/Software/libspectre/ | |
10 | COMMENT= Small library for rendering Postscript documents | 10 | COMMENT= Small library for rendering Postscript documents | |
11 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
12 | 12 | |||
13 | GNU_CONFIGURE= yes | 13 | GNU_CONFIGURE= yes | |
14 | USE_LIBTOOL= yes | 14 | USE_LIBTOOL= yes | |
15 | 15 | |||
16 | PKGCONFIG_OVERRIDE+= libspectre.pc.in | 16 | PKGCONFIG_OVERRIDE+= libspectre.pc.in | |
17 | 17 |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.8 2015/11/04 01:01:35 agc Exp $ | 1 | $NetBSD: distinfo,v 1.9 2015/12/10 12:03:41 markd Exp $ | |
2 | 2 | |||
3 | SHA1 (libspectre-0.2.7.tar.gz) = a7efd97b82b84ff1bb7a0d88c7e35ad10cc84ea8 | 3 | SHA1 (libspectre-0.2.7.tar.gz) = a7efd97b82b84ff1bb7a0d88c7e35ad10cc84ea8 | |
4 | RMD160 (libspectre-0.2.7.tar.gz) = 66d8b82f2c1dd9eea57f1b3f80bae72e6b529861 | 4 | RMD160 (libspectre-0.2.7.tar.gz) = 66d8b82f2c1dd9eea57f1b3f80bae72e6b529861 | |
5 | SHA512 (libspectre-0.2.7.tar.gz) = 2e60905f7eeed9ac6ec3b5f8b47a7dad85178c8c35a63ba097ef6088dd334f7fde5797ecb05cf67532b759d07a65006427914d2cd6b09107ecc90620c9541794 | 5 | SHA512 (libspectre-0.2.7.tar.gz) = 2e60905f7eeed9ac6ec3b5f8b47a7dad85178c8c35a63ba097ef6088dd334f7fde5797ecb05cf67532b759d07a65006427914d2cd6b09107ecc90620c9541794 | |
6 | Size (libspectre-0.2.7.tar.gz) = 387947 bytes | 6 | Size (libspectre-0.2.7.tar.gz) = 387947 bytes | |
7 | SHA1 (patch-libspectre_spectre-gs.c) = c47dfaeac12da68315efa9b7b675c7d8c3a4635f |
$NetBSD: patch-libspectre_spectre-gs.c,v 1.1 2015/12/10 12:03:41 markd Exp $
gs 9.18 renamed error namespace, but provides no good way of testing the
version number so allow for both old and new names by testing the guard
define of the gserrors.h that appeared at the same point.
--- libspectre/spectre-gs.c.orig 2010-04-18 16:01:05.000000000 +0000
+++ libspectre/spectre-gs.c
@@ -29,6 +29,12 @@
#include <ghostscript/iapi.h>
#include <ghostscript/ierrors.h>
+#ifdef gserrors_INCLUDED
+# define e_Fatal gs_error_Fatal
+# define e_ExecStackUnderflow gs_error_ExecStackUnderflow
+# define e_NeedInput gs_error_NeedInput
+#endif
+
#define BUFFER_SIZE 32768
struct SpectreGS {