[csw-devel] SF.net SVN: gar:[21407] csw/mgar/pkg
cgrzemba at users.sourceforge.net
cgrzemba at users.sourceforge.net
Fri Jun 28 12:43:08 CEST 2013
Revision: 21407
http://gar.svn.sourceforge.net/gar/?rev=21407&view=rev
Author: cgrzemba
Date: 2013-06-28 10:43:01 +0000 (Fri, 28 Jun 2013)
Log Message:
-----------
json-c/trunk: initial commit
Added Paths:
-----------
csw/mgar/pkg/json-c/
csw/mgar/pkg/json-c/Makefile
csw/mgar/pkg/json-c/branches/
csw/mgar/pkg/json-c/tags/
csw/mgar/pkg/json-c/trunk/
csw/mgar/pkg/json-c/trunk/Makefile
csw/mgar/pkg/json-c/trunk/checksums
csw/mgar/pkg/json-c/trunk/files/
csw/mgar/pkg/json-c/trunk/files/0001-allow-to-use-public-vasprintf-symbol.patch
Added: csw/mgar/pkg/json-c/Makefile
===================================================================
--- csw/mgar/pkg/json-c/Makefile (rev 0)
+++ csw/mgar/pkg/json-c/Makefile 2013-06-28 10:43:01 UTC (rev 21407)
@@ -0,0 +1,2 @@
+%:
+ $(MAKE) -C trunk $*
Property changes on: csw/mgar/pkg/json-c/trunk
___________________________________________________________________
Added: svn:ignore
+ work
Added: csw/mgar/pkg/json-c/trunk/Makefile
===================================================================
--- csw/mgar/pkg/json-c/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/json-c/trunk/Makefile 2013-06-28 10:43:01 UTC (rev 21407)
@@ -0,0 +1,46 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = json-c
+VERSION = 0.10
+GARTYPE = v2
+
+DESCRIPTION = JSON objects in C
+define BLURB
+ JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects.
+endef
+
+MASTER_SITES = https://s3.amazonaws.com/json-c_releases/releases/
+# GIT_REPOS = git://github.com/json-c/json-c.git
+
+DISTFILES = $(DISTNAME).tar.gz
+
+GARCOMPILER = GCC4
+
+PATCHFILES = 0001-allow-to-use-public-vasprintf-symbol.patch
+
+PACKAGES += CSWlibjson0
+CATALOGNAME_CSWlibjson0 = libjson0
+PKGFILES_CSWlibjson0 += $(call baseisadirs,$(libdir),libjson\.so\.0\.1\.0)
+PKGFILES_CSWlibjson0 += $(call baseisadirs,$(libdir),libjson\.so\.0(\.\d+)*)
+SPKG_DESC_CSWlibjson0 += $(DESCRIPTION), libjson.so.0
+RUNTIME_DEP_PKGS_CSWlibjson0 += CSWlibgcc-s1
+
+PACKAGES += CSWjson-c-dev
+CATALOGNAME_CSWjson-c-dev = json_c_dev
+SPKG_DESC_CSWjson-c-dev += $(DESCRIPTION), development files
+PKGFILES_CSWjson-c-dev += $(PKGFILES_DEVEL)
+RUNTIME_DEP_PKGS_CSWjson-c-dev += CSWlibjson0
+
+# vasprintf test failes with:
+# symbol belongs to unavailable version /lib/libc.so (SUNW_1.22.7)
+# EXTRA_CONFIGURE_ENV = LD_OPTIONS=
+
+# EXTRA_CFLAGS = -xnorunpath
+
+SKIPTEST = 1
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+include gar/category.mk
+
Property changes on: csw/mgar/pkg/json-c/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: csw/mgar/pkg/json-c/trunk/checksums
===================================================================
--- csw/mgar/pkg/json-c/trunk/checksums (rev 0)
+++ csw/mgar/pkg/json-c/trunk/checksums 2013-06-28 10:43:01 UTC (rev 21407)
@@ -0,0 +1 @@
+a4edc79410eb894f08d7d52ca9f88732 json-c-0.10.tar.gz
Added: csw/mgar/pkg/json-c/trunk/files/0001-allow-to-use-public-vasprintf-symbol.patch
===================================================================
--- csw/mgar/pkg/json-c/trunk/files/0001-allow-to-use-public-vasprintf-symbol.patch (rev 0)
+++ csw/mgar/pkg/json-c/trunk/files/0001-allow-to-use-public-vasprintf-symbol.patch 2013-06-28 10:43:01 UTC (rev 21407)
@@ -0,0 +1,25 @@
+From c73861996d5b4bb9202c42aa2d6700f11b3026b3 Mon Sep 17 00:00:00 2001
+From: Carsten Grzemba <cgrzemba at opencsw.org>
+Date: Fri, 28 Jun 2013 12:33:28 +0200
+Subject: [PATCH] allow to use publiv vasprintf symbol
+
+---
+ printbuf.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/printbuf.c b/printbuf.c
+index b951c7b..50fe208 100644
+--- a/printbuf.c
++++ b/printbuf.c
+@@ -116,7 +116,7 @@ int printbuf_memset(struct printbuf *pb, int offset, int charvalue, int len)
+
+ #if !HAVE_VASPRINTF
+ /* CAW: compliant version of vasprintf */
+-static int vasprintf(char **buf, const char *fmt, va_list ap)
++int vasprintf(char **buf, const char *fmt, va_list ap)
+ {
+ #ifndef WIN32
+ static char _T_emptybuffer = '\0';
+--
+1.8.3.1
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list