summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2015-08-11 18:16:50 +0000
committerwiz <wiz@pkgsrc.org>2015-08-11 18:16:50 +0000
commit99879969a2444eea6faffcfbfb7627d740e22053 (patch)
treeda5851910937a4278a9826523fe5f323d79bb585 /print
parent72eb59ff2b1e8cfe672412c5acec2eda1024a368 (diff)
downloadpkgsrc-99879969a2444eea6faffcfbfb7627d740e22053.tar.gz
Rely on header to provide memset().
Gets us further in a PKGSRC_USE_FORT build; however, still fails with: [1] Abort trap (core dumped) ./soobj/aux/mkro... base/lib.mak:3063: recipe for target 'soobj/gsromfs1_.c' failed
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript-gpl/distinfo3
-rw-r--r--print/ghostscript-gpl/patches/patch-base_memento.c18
2 files changed, 20 insertions, 1 deletions
diff --git a/print/ghostscript-gpl/distinfo b/print/ghostscript-gpl/distinfo
index d4a6ae8de6f..1e43f006c7e 100644
--- a/print/ghostscript-gpl/distinfo
+++ b/print/ghostscript-gpl/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2015/03/11 20:58:26 spz Exp $
+$NetBSD: distinfo,v 1.10 2015/08/11 18:16:50 wiz Exp $
SHA1 (ghostscript-9.06.tar.bz2) = 4c1c2b4cddd16d86b21f36ad4fc15f6100162238
RMD160 (ghostscript-9.06.tar.bz2) = 11ef74cf783ec5f7cde0ceaaf2823a1f62fb4d1d
@@ -18,4 +18,5 @@ SHA1 (patch-an) = 22ed9965aec5d540adb31334d8dd9e05eab8e0c2
SHA1 (patch-base_configure_ac) = c0f5ee586df05d1d136b7c89b4776c0bf480cc57
SHA1 (patch-base_gdevpng.c) = 24120e26bd2a846f6d4c8ab9753dfe91f151343f
SHA1 (patch-base_gserrors_h) = fde64bd096a6e6f94005c8352a6295df06c19bae
+SHA1 (patch-base_memento.c) = d30cfb9285a0268e743c90cdf831674eaa24789b
SHA1 (patch-openjpeg_libopenjpeg_opj_malloc_h) = 24f15c55cd7961afc1254f6c4bccd6d0c2a5e737
diff --git a/print/ghostscript-gpl/patches/patch-base_memento.c b/print/ghostscript-gpl/patches/patch-base_memento.c
new file mode 100644
index 00000000000..7d7f4cf2396
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-base_memento.c
@@ -0,0 +1,18 @@
+$NetBSD: patch-base_memento.c,v 1.1 2015/08/11 18:16:50 wiz Exp $
+
+Rely on header to get memset prototype.
+
+--- base/memento.c.orig 2012-08-08 08:01:36.000000000 +0000
++++ base/memento.c
+@@ -40,11 +40,7 @@
+ #ifdef MEMENTO_GS_HACKS
+ /* For GS we include malloc_.h. Anyone else would just include memento.h */
+ #include "malloc_.h"
+-#ifdef __MACH__
+ #include <string.h>
+-#else
+-void *memset(void *,int,size_t);
+-#endif
+ int atexit(void (*)(void));
+ #else
+ #include "memento.h"