pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/mustach devel/mustach: Patch to fix on Solaris-l...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32a1aeeea8a2
branches:  trunk
changeset: 406519:32a1aeeea8a2
user:      sjmulder <sjmulder%pkgsrc.org@localhost>
date:      Wed Dec 25 17:34:31 2019 +0000

description:
devel/mustach: Patch to fix on Solaris-likes

diffstat:

 devel/mustach/Makefile                       |   8 +++++++-
 devel/mustach/patches/patch-mustach-json-c.c |  16 ++++++++++++++++
 devel/mustach/patches/patch-mustach.c        |  16 ++++++++++++++++
 3 files changed, 39 insertions(+), 1 deletions(-)

diffs (63 lines):

diff -r 4567ff0151c5 -r 32a1aeeea8a2 devel/mustach/Makefile
--- a/devel/mustach/Makefile    Wed Dec 25 17:34:10 2019 +0000
+++ b/devel/mustach/Makefile    Wed Dec 25 17:34:31 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2019/09/19 11:46:30 sjmulder Exp $
+# $NetBSD: Makefile,v 1.2 2019/12/25 17:34:31 sjmulder Exp $
 
 DISTNAME=      mustach-0.99
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  https://gitlab.com/jobol/mustach/-/archive/${PKGVERSION_NOREV}/
 
@@ -9,5 +10,10 @@
 COMMENT=       C implementation of mustache templating
 LICENSE=       apache-2.0
 
+.include "../../mk/bsd.prefs.mk"
+
+# Workaround is portable, might as well use it everywhere.
+CFLAGS+=       -DNO_OPEN_MEMSTREAM
+
 .include "../../textproc/json-c/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 4567ff0151c5 -r 32a1aeeea8a2 devel/mustach/patches/patch-mustach-json-c.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mustach/patches/patch-mustach-json-c.c      Wed Dec 25 17:34:31 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-mustach-json-c.c,v 1.1 2019/12/25 17:34:32 sjmulder Exp $
+
+Include alloca.h on Solaris-likes to fix the build.
+
+--- mustach-json-c.c.orig      2019-09-19 08:20:36.000000000 +0000
++++ mustach-json-c.c
+@@ -21,6 +21,9 @@
+ 
+ #include <stdio.h>
+ #include <string.h>
++#ifdef __sun
++# include <alloca.h>
++#endif
+ 
+ #include <json-c/json.h>
+ 
diff -r 4567ff0151c5 -r 32a1aeeea8a2 devel/mustach/patches/patch-mustach.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mustach/patches/patch-mustach.c     Wed Dec 25 17:34:31 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-mustach.c,v 1.1 2019/12/25 17:34:32 sjmulder Exp $
+
+Include alloca.h on Solaris-likes to fix the build.
+
+--- mustach.c.orig     2019-09-19 08:20:36.000000000 +0000
++++ mustach.c
+@@ -24,6 +24,9 @@
+ #include <string.h>
+ #include <errno.h>
+ #include <ctype.h>
++#ifdef __sun
++# include <alloca.h>
++#endif
+ 
+ #include "mustach.h"
+ 



Home | Main Index | Thread Index | Old Index