summaryrefslogtreecommitdiff
path: root/textproc/json-c/Makefile
diff options
context:
space:
mode:
authorryoon <ryoon>2014-04-20 00:09:04 +0000
committerryoon <ryoon>2014-04-20 00:09:04 +0000
commitd4b82cc70709fc941bd9ca76e2a364015415f065 (patch)
tree6671ce5cb4e32705125bec7f91f2d42d3535d41a /textproc/json-c/Makefile
parent1eb6771c4b68a0ca3e1f6a181667a1c5836fe53e (diff)
downloadpkgsrc-d4b82cc70709fc941bd9ca76e2a364015415f065.tar.gz
Update to 0.12
* Security update for CVE-2013-6370 and CVE-2013-6371 * Update API version 0.12 * Address security issues: * CVE-2013-6371: hash collision denial of service * CVE-2013-6370: buffer overflow if size_t is larger than int * Avoid potential overflow in json_object_get_double * Eliminate the mc_abort() function and MC_ABORT macro. * Make the json_tokener_errors array local. It has been deprecated for a while, and json_tokener_error_desc() should be used instead. * change the floating point output format to %.17g so values with more than 6 digits show up in the output. * Remove the old libjson.so name compatibility support. The library is only created as libjson-c.so now and headers are only installed into the ${prefix}/json-c directory. * When supported by the linker, add the -Bsymbolic-functions flag. * Various changes to fix the build on MSVC. * Make strict mode more strict: * number must not start with 0 * no single-quote strings * no comments * trailing char not allowed * only allow lowercase literals * Added a json_object_new_double_s() convenience function to allow an exact string representation of a double to be specified when creating the object and use it in json_tokener_parse_ex() so a re-serialized object more exactly matches the input. * Add support NaN and Infinity
Diffstat (limited to 'textproc/json-c/Makefile')
-rw-r--r--textproc/json-c/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/textproc/json-c/Makefile b/textproc/json-c/Makefile
index a160c78b6b4..918ed5a9d49 100644
--- a/textproc/json-c/Makefile
+++ b/textproc/json-c/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2013/11/29 17:57:07 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2014/04/20 00:09:04 ryoon Exp $
-DISTNAME= json-c-0.11
-PKGREVISION= 1
+DISTNAME= json-c-0.12
CATEGORIES= textproc
MASTER_SITES= https://s3.amazonaws.com/json-c_releases/releases/
@@ -20,6 +19,9 @@ PKGCONFIG_OVERRIDE+= json-c.pc.in
CONFIGURE_ARGS+= --disable-oldname-compat
+# Workaround for https://github.com/json-c/json-c/pull/132
+BUILDLINK_TRANSFORM+= rm:-Werror
+
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CFLAGS+= -Wno-tautological-compare -Wno-unused-value