Thu Aug 17 17:00:48 2017 UTC ()
Update devel/libbson to 1.7.0.

- Changes to JSON encoding and decoding:
  - New functions bson_as_canonical_extended_json and
    bson_as_relaxed_extended_json convert BSON to canonical and
    relaxed extended JSON according to MongoDB Extended JSON Spec.
  - When parsing JSON type wrappers like "$timestamp", any missing or
    extra keys are an error.
  - The JSON format for BSON regular expressions is now
    "$regularExpression": {"pattern": "...", "options": "..."}.
  - The JSON format for BSON binary elements is now "$binary":
    {"base64": "...", "subType": "..."}.
  - BSON dates can be parsed from "$date" as an ISO8601 date or
    "$numberLong" as milliseconds since the epoch: "t": {"$date":
    {"$numberLong": "1234"}}.
  - The non-numbers NaN, Infinity, and -Infinity are now recognized
    (regardless of case) when parsing JSON.
- CMake build now installs .pc files for programs that link to libbson
  using pkg-config. Both the CMake and Autotools build systems now
  install .cmake
- New CMake option, "ENABLE_STATIC", defaults to ON.
- Minimum required CMake version has been increased to 3.1.
- New functions
  - bson_strcasecmp, a portable equivalent of strcasecmp.
  - bson_iter_as_double, cast the current value to double.
  - bson_iter_init_from_data, creates an iterator from BSON string.
  - bson_validate_with_error, checks a document like bson_validate
    does but also reports which key was invalid
- New convenience macros
  - BSON_ITER_HOLDS_INT, checks if iterator holds int32 or int64
  - BSON_ITER_HOLDS_NUMBER, checks if iterator holds int32, int64 or
    double
- Raised BSON recursion limit to 200


(fhajny)
diff -r1.24 -r1.25 pkgsrc/devel/libbson/Makefile
diff -r1.24 -r1.25 pkgsrc/devel/libbson/distinfo
diff -r1.8 -r1.9 pkgsrc/devel/libbson/PLIST

cvs diff -r1.24 -r1.25 pkgsrc/devel/libbson/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/libbson/Attic/Makefile 2017/07/30 22:32:15 1.24
+++ pkgsrc/devel/libbson/Attic/Makefile 2017/08/17 17:00:47 1.25
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.24 2017/07/30 22:32:15 wiz Exp $ 1# $NetBSD: Makefile,v 1.25 2017/08/17 17:00:47 fhajny Exp $
2 2
3DISTNAME= libbson-1.6.3 3DISTNAME= libbson-1.7.0
4CATEGORIES= devel 4CATEGORIES= devel
5MASTER_SITES= ${MASTER_SITE_GITHUB:=mongodb/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=mongodb/}
6 6
7MAINTAINER= filip@joyent.com 7MAINTAINER= filip@joyent.com
8HOMEPAGE= https://github.com/mongodb/libbson/ 8HOMEPAGE= https://github.com/mongodb/libbson/
9COMMENT= BSON utility library 9COMMENT= BSON utility library
10LICENSE= apache-2.0 10LICENSE= apache-2.0
11 11
12GITHUB_RELEASE= ${PKGVERSION_NOREV} 12GITHUB_RELEASE= ${PKGVERSION_NOREV}
13 13
14GNU_CONFIGURE= yes 14GNU_CONFIGURE= yes
15USE_LANGUAGES= c c++ 15USE_LANGUAGES= c c++
16USE_LIBTOOL= yes 16USE_LIBTOOL= yes

cvs diff -r1.24 -r1.25 pkgsrc/devel/libbson/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/libbson/Attic/distinfo 2017/07/03 18:11:27 1.24
+++ pkgsrc/devel/libbson/Attic/distinfo 2017/08/17 17:00:47 1.25
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
1$NetBSD: distinfo,v 1.24 2017/07/03 18:11:27 joerg Exp $ 1$NetBSD: distinfo,v 1.25 2017/08/17 17:00:47 fhajny Exp $
2 2
3SHA1 (libbson-1.6.3.tar.gz) = 3571026b7d1819f8ff64dec238e58e44d826021b 3SHA1 (libbson-1.7.0.tar.gz) = 5c8119a7500a9131e0a6b0c7357bbac4069ade56
4RMD160 (libbson-1.6.3.tar.gz) = 3c81ea50475c889c960dd7c4d7eb636da4e3273e 4RMD160 (libbson-1.7.0.tar.gz) = bfb70baec15a93838f0ecaa83db80c3ef7e844d3
5SHA512 (libbson-1.6.3.tar.gz) = 602f700dbb268e5eeeb36d39f63499ce9a253f915042ef2f620b3cceddf449284eab583ac2e950e150a2edb75ade189e3624b2cbe96097db501e1359d0b9c1d9 5SHA512 (libbson-1.7.0.tar.gz) = af304348c4bdc0f6da0003283454814a0540ed38801d0a58f664a80195aa85b850861bdaae2e6845058b7dde2814b6ca808b97ce37a31dde44baf19b0b74e022
6Size (libbson-1.6.3.tar.gz) = 4831170 bytes 6Size (libbson-1.7.0.tar.gz) = 4916222 bytes
7SHA1 (patch-configure) = fc1e56e8e0d823801446440e59926b11caa388a8 7SHA1 (patch-configure) = fc1e56e8e0d823801446440e59926b11caa388a8

cvs diff -r1.8 -r1.9 pkgsrc/devel/libbson/Attic/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/libbson/Attic/PLIST 2017/06/14 10:24:15 1.8
+++ pkgsrc/devel/libbson/Attic/PLIST 2017/08/17 17:00:47 1.9
@@ -1,43 +1,44 @@ @@ -1,43 +1,44 @@
1@comment $NetBSD: PLIST,v 1.8 2017/06/14 10:24:15 fhajny Exp $ 1@comment $NetBSD: PLIST,v 1.9 2017/08/17 17:00:47 fhajny Exp $
2include/libbson-1.0/bcon.h 2include/libbson-1.0/bcon.h
3include/libbson-1.0/bson-atomic.h 3include/libbson-1.0/bson-atomic.h
4include/libbson-1.0/bson-clock.h 4include/libbson-1.0/bson-clock.h
5include/libbson-1.0/bson-compat.h 5include/libbson-1.0/bson-compat.h
6include/libbson-1.0/bson-config.h 6include/libbson-1.0/bson-config.h
7include/libbson-1.0/bson-context.h 7include/libbson-1.0/bson-context.h
8include/libbson-1.0/bson-decimal128.h 8include/libbson-1.0/bson-decimal128.h
9include/libbson-1.0/bson-endian.h 9include/libbson-1.0/bson-endian.h
10include/libbson-1.0/bson-error.h 10include/libbson-1.0/bson-error.h
11include/libbson-1.0/bson-iter.h 11include/libbson-1.0/bson-iter.h
12include/libbson-1.0/bson-json.h 12include/libbson-1.0/bson-json.h
13include/libbson-1.0/bson-keys.h 13include/libbson-1.0/bson-keys.h
14include/libbson-1.0/bson-macros.h 14include/libbson-1.0/bson-macros.h
15include/libbson-1.0/bson-md5.h 15include/libbson-1.0/bson-md5.h
16include/libbson-1.0/bson-memory.h 16include/libbson-1.0/bson-memory.h
17include/libbson-1.0/bson-oid.h 17include/libbson-1.0/bson-oid.h
18include/libbson-1.0/bson-reader.h 18include/libbson-1.0/bson-reader.h
19include/libbson-1.0/bson-stdint.h 19include/libbson-1.0/bson-stdint.h
20include/libbson-1.0/bson-string.h 20include/libbson-1.0/bson-string.h
21include/libbson-1.0/bson-types.h 21include/libbson-1.0/bson-types.h
22include/libbson-1.0/bson-utf8.h 22include/libbson-1.0/bson-utf8.h
23include/libbson-1.0/bson-value.h 23include/libbson-1.0/bson-value.h
24include/libbson-1.0/bson-version-functions.h 24include/libbson-1.0/bson-version-functions.h
25include/libbson-1.0/bson-version.h 25include/libbson-1.0/bson-version.h
26include/libbson-1.0/bson-writer.h 26include/libbson-1.0/bson-writer.h
27include/libbson-1.0/bson.h 27include/libbson-1.0/bson.h
 28lib/cmake/libbson-1.0/libbson-1.0-config-version.cmake
 29lib/cmake/libbson-1.0/libbson-1.0-config.cmake
28lib/libbson-1.0.la 30lib/libbson-1.0.la
29lib/pkgconfig/libbson-1.0.pc 31lib/pkgconfig/libbson-1.0.pc
30man/man3/bson_api.3 
31man/man3/bson_append_array.3 32man/man3/bson_append_array.3
32man/man3/bson_append_array_begin.3 33man/man3/bson_append_array_begin.3
33man/man3/bson_append_array_end.3 34man/man3/bson_append_array_end.3
34man/man3/bson_append_binary.3 35man/man3/bson_append_binary.3
35man/man3/bson_append_bool.3 36man/man3/bson_append_bool.3
36man/man3/bson_append_code.3 37man/man3/bson_append_code.3
37man/man3/bson_append_code_with_scope.3 38man/man3/bson_append_code_with_scope.3
38man/man3/bson_append_date_time.3 39man/man3/bson_append_date_time.3
39man/man3/bson_append_dbpointer.3 40man/man3/bson_append_dbpointer.3
40man/man3/bson_append_decimal128.3 41man/man3/bson_append_decimal128.3
41man/man3/bson_append_document.3 42man/man3/bson_append_document.3
42man/man3/bson_append_document_begin.3 43man/man3/bson_append_document_begin.3
43man/man3/bson_append_document_end.3 44man/man3/bson_append_document_end.3
@@ -48,82 +49,90 @@ man/man3/bson_append_iter.3 @@ -48,82 +49,90 @@ man/man3/bson_append_iter.3
48man/man3/bson_append_maxkey.3 49man/man3/bson_append_maxkey.3
49man/man3/bson_append_minkey.3 50man/man3/bson_append_minkey.3
50man/man3/bson_append_now_utc.3 51man/man3/bson_append_now_utc.3
51man/man3/bson_append_null.3 52man/man3/bson_append_null.3
52man/man3/bson_append_oid.3 53man/man3/bson_append_oid.3
53man/man3/bson_append_regex.3 54man/man3/bson_append_regex.3
54man/man3/bson_append_symbol.3 55man/man3/bson_append_symbol.3
55man/man3/bson_append_time_t.3 56man/man3/bson_append_time_t.3
56man/man3/bson_append_timestamp.3 57man/man3/bson_append_timestamp.3
57man/man3/bson_append_timeval.3 58man/man3/bson_append_timeval.3
58man/man3/bson_append_undefined.3 59man/man3/bson_append_undefined.3
59man/man3/bson_append_utf8.3 60man/man3/bson_append_utf8.3
60man/man3/bson_append_value.3 61man/man3/bson_append_value.3
 62man/man3/bson_array_as_json.3
 63man/man3/bson_as_canonical_extended_json.3
61man/man3/bson_as_json.3 64man/man3/bson_as_json.3
 65man/man3/bson_as_relaxed_extended_json.3
 66man/man3/bson_ascii_strtoll.3
 67man/man3/bson_character_and_string_routines.3
62man/man3/bson_check_version.3 68man/man3/bson_check_version.3
63man/man3/bson_compare.3 69man/man3/bson_compare.3
64man/man3/bson_concat.3 70man/man3/bson_concat.3
65man/man3/bson_context_destroy.3 71man/man3/bson_context_destroy.3
66man/man3/bson_context_get_default.3 72man/man3/bson_context_get_default.3
67man/man3/bson_context_new.3 73man/man3/bson_context_new.3
68man/man3/bson_context_t.3 74man/man3/bson_context_t.3
69man/man3/bson_copy.3 75man/man3/bson_copy.3
70man/man3/bson_copy_to.3 76man/man3/bson_copy_to.3
71man/man3/bson_copy_to_excluding.3 77man/man3/bson_copy_to_excluding.3
 78man/man3/bson_copy_to_excluding_noinit.3
72man/man3/bson_count_keys.3 79man/man3/bson_count_keys.3
73man/man3/bson_creating.3 80man/man3/bson_creating.3
74man/man3/bson_cross_platform_notes.3 81man/man3/bson_cross_platform_notes.3
75man/man3/bson_decimal128_from_string.3 82man/man3/bson_decimal128_from_string.3
76man/man3/bson_decimal128_t.3 83man/man3/bson_decimal128_t.3
77man/man3/bson_decimal128_to_string.3 84man/man3/bson_decimal128_to_string.3
78man/man3/bson_destroy.3 85man/man3/bson_destroy.3
79man/man3/bson_destroy_with_steal.3 86man/man3/bson_destroy_with_steal.3
80man/man3/bson_endianness.3 87man/man3/bson_endianness.3
81man/man3/bson_equal.3 88man/man3/bson_equal.3
82man/man3/bson_error_t.3 89man/man3/bson_error_t.3
83man/man3/bson_errors.3 90man/man3/bson_errors.3
84man/man3/bson_free.3 91man/man3/bson_free.3
85man/man3/bson_get_data.3 92man/man3/bson_get_data.3
86man/man3/bson_get_major_version.3 93man/man3/bson_get_major_version.3
87man/man3/bson_get_micro_version.3 94man/man3/bson_get_micro_version.3
88man/man3/bson_get_minor_version.3 95man/man3/bson_get_minor_version.3
89man/man3/bson_get_monotonic_time.3 96man/man3/bson_get_monotonic_time.3
90man/man3/bson_get_version.3 97man/man3/bson_get_version.3
91man/man3/bson_guides.3 98man/man3/bson_guides.3
92man/man3/bson_has_field.3 99man/man3/bson_has_field.3
93man/man3/bson_index.3 100man/man3/bson_include_and_link.3
94man/man3/bson_init.3 101man/man3/bson_init.3
95man/man3/bson_init_from_json.3 102man/man3/bson_init_from_json.3
96man/man3/bson_init_static.3 103man/man3/bson_init_static.3
97man/man3/bson_installing.3 104man/man3/bson_installing.3
98man/man3/bson_iter_array.3 105man/man3/bson_iter_array.3
99man/man3/bson_iter_as_bool.3 106man/man3/bson_iter_as_bool.3
 107man/man3/bson_iter_as_double.3
100man/man3/bson_iter_as_int64.3 108man/man3/bson_iter_as_int64.3
101man/man3/bson_iter_binary.3 109man/man3/bson_iter_binary.3
102man/man3/bson_iter_bool.3 110man/man3/bson_iter_bool.3
103man/man3/bson_iter_code.3 111man/man3/bson_iter_code.3
104man/man3/bson_iter_codewscope.3 112man/man3/bson_iter_codewscope.3
105man/man3/bson_iter_date_time.3 113man/man3/bson_iter_date_time.3
106man/man3/bson_iter_dbpointer.3 114man/man3/bson_iter_dbpointer.3
107man/man3/bson_iter_decimal128.3 115man/man3/bson_iter_decimal128.3
108man/man3/bson_iter_document.3 116man/man3/bson_iter_document.3
109man/man3/bson_iter_double.3 117man/man3/bson_iter_double.3
110man/man3/bson_iter_dup_utf8.3 118man/man3/bson_iter_dup_utf8.3
111man/man3/bson_iter_find.3 119man/man3/bson_iter_find.3
112man/man3/bson_iter_find_case.3 120man/man3/bson_iter_find_case.3
113man/man3/bson_iter_find_descendant.3 121man/man3/bson_iter_find_descendant.3
114man/man3/bson_iter_init.3 122man/man3/bson_iter_init.3
115man/man3/bson_iter_init_find.3 123man/man3/bson_iter_init_find.3
116man/man3/bson_iter_init_find_case.3 124man/man3/bson_iter_init_find_case.3
 125man/man3/bson_iter_init_from_data.3
117man/man3/bson_iter_int32.3 126man/man3/bson_iter_int32.3
118man/man3/bson_iter_int64.3 127man/man3/bson_iter_int64.3
119man/man3/bson_iter_key.3 128man/man3/bson_iter_key.3
120man/man3/bson_iter_next.3 129man/man3/bson_iter_next.3
121man/man3/bson_iter_oid.3 130man/man3/bson_iter_oid.3
122man/man3/bson_iter_overwrite_bool.3 131man/man3/bson_iter_overwrite_bool.3
123man/man3/bson_iter_overwrite_decimal128.3 132man/man3/bson_iter_overwrite_decimal128.3
124man/man3/bson_iter_overwrite_double.3 133man/man3/bson_iter_overwrite_double.3
125man/man3/bson_iter_overwrite_int32.3 134man/man3/bson_iter_overwrite_int32.3
126man/man3/bson_iter_overwrite_int64.3 135man/man3/bson_iter_overwrite_int64.3
127man/man3/bson_iter_recurse.3 136man/man3/bson_iter_recurse.3
128man/man3/bson_iter_regex.3 137man/man3/bson_iter_regex.3
129man/man3/bson_iter_symbol.3 138man/man3/bson_iter_symbol.3
@@ -161,50 +170,50 @@ man/man3/bson_oid.3 @@ -161,50 +170,50 @@ man/man3/bson_oid.3
161man/man3/bson_oid_compare.3 170man/man3/bson_oid_compare.3
162man/man3/bson_oid_copy.3 171man/man3/bson_oid_copy.3
163man/man3/bson_oid_equal.3 172man/man3/bson_oid_equal.3
164man/man3/bson_oid_get_time_t.3 173man/man3/bson_oid_get_time_t.3
165man/man3/bson_oid_hash.3 174man/man3/bson_oid_hash.3
166man/man3/bson_oid_init.3 175man/man3/bson_oid_init.3
167man/man3/bson_oid_init_from_data.3 176man/man3/bson_oid_init_from_data.3
168man/man3/bson_oid_init_from_string.3 177man/man3/bson_oid_init_from_string.3
169man/man3/bson_oid_init_sequence.3 178man/man3/bson_oid_init_sequence.3
170man/man3/bson_oid_is_valid.3 179man/man3/bson_oid_is_valid.3
171man/man3/bson_oid_t.3 180man/man3/bson_oid_t.3
172man/man3/bson_oid_to_string.3 181man/man3/bson_oid_to_string.3
173man/man3/bson_parsing.3 182man/man3/bson_parsing.3
174man/man3/bson_performance.3 
175man/man3/bson_reader_destroy.3 183man/man3/bson_reader_destroy.3
176man/man3/bson_reader_destroy_func_t.3 184man/man3/bson_reader_destroy_func_t.3
177man/man3/bson_reader_new_from_data.3 185man/man3/bson_reader_new_from_data.3
178man/man3/bson_reader_new_from_fd.3 186man/man3/bson_reader_new_from_fd.3
179man/man3/bson_reader_new_from_file.3 187man/man3/bson_reader_new_from_file.3
180man/man3/bson_reader_new_from_handle.3 188man/man3/bson_reader_new_from_handle.3
181man/man3/bson_reader_read.3 189man/man3/bson_reader_read.3
182man/man3/bson_reader_read_func_t.3 190man/man3/bson_reader_read_func_t.3
183man/man3/bson_reader_reset.3 191man/man3/bson_reader_reset.3
184man/man3/bson_reader_set_destroy_func.3 192man/man3/bson_reader_set_destroy_func.3
185man/man3/bson_reader_set_read_func.3 193man/man3/bson_reader_set_read_func.3
186man/man3/bson_reader_t.3 194man/man3/bson_reader_t.3
187man/man3/bson_reader_tell.3 195man/man3/bson_reader_tell.3
188man/man3/bson_realloc.3 196man/man3/bson_realloc.3
189man/man3/bson_realloc_ctx.3 197man/man3/bson_realloc_ctx.3
190man/man3/bson_realloc_func.3 198man/man3/bson_realloc_func.3
191man/man3/bson_reference.3 199man/man3/bson_reference.3
192man/man3/bson_reinit.3 200man/man3/bson_reinit.3
193man/man3/bson_reserve_buffer.3 201man/man3/bson_reserve_buffer.3
194man/man3/bson_set_error.3 202man/man3/bson_set_error.3
195man/man3/bson_sized_new.3 203man/man3/bson_sized_new.3
196man/man3/bson_snprintf.3 204man/man3/bson_snprintf.3
197man/man3/bson_steal.3 205man/man3/bson_steal.3
 206man/man3/bson_strcasecmp.3
198man/man3/bson_strdup.3 207man/man3/bson_strdup.3
199man/man3/bson_strdup_printf.3 208man/man3/bson_strdup_printf.3
200man/man3/bson_strdupv_printf.3 209man/man3/bson_strdupv_printf.3
201man/man3/bson_streaming_bson.3 210man/man3/bson_streaming_bson.3
202man/man3/bson_strerror_r.3 211man/man3/bson_strerror_r.3
203man/man3/bson_strfreev.3 212man/man3/bson_strfreev.3
204man/man3/bson_string_append.3 213man/man3/bson_string_append.3
205man/man3/bson_string_append_c.3 214man/man3/bson_string_append_c.3
206man/man3/bson_string_append_printf.3 215man/man3/bson_string_append_printf.3
207man/man3/bson_string_append_unichar.3 216man/man3/bson_string_append_unichar.3
208man/man3/bson_string_free.3 217man/man3/bson_string_free.3
209man/man3/bson_string_new.3 218man/man3/bson_string_new.3
210man/man3/bson_string_t.3 219man/man3/bson_string_t.3
@@ -216,26 +225,27 @@ man/man3/bson_subtype_t.3 @@ -216,26 +225,27 @@ man/man3/bson_subtype_t.3
216man/man3/bson_t.3 225man/man3/bson_t.3
217man/man3/bson_threading.3 226man/man3/bson_threading.3
218man/man3/bson_tutorial.3 227man/man3/bson_tutorial.3
219man/man3/bson_type_t.3 228man/man3/bson_type_t.3
220man/man3/bson_uint32_to_string.3 229man/man3/bson_uint32_to_string.3
221man/man3/bson_unichar_t.3 230man/man3/bson_unichar_t.3
222man/man3/bson_utf8.3 231man/man3/bson_utf8.3
223man/man3/bson_utf8_escape_for_json.3 232man/man3/bson_utf8_escape_for_json.3
224man/man3/bson_utf8_from_unichar.3 233man/man3/bson_utf8_from_unichar.3
225man/man3/bson_utf8_get_char.3 234man/man3/bson_utf8_get_char.3
226man/man3/bson_utf8_next_char.3 235man/man3/bson_utf8_next_char.3
227man/man3/bson_utf8_validate.3 236man/man3/bson_utf8_validate.3
228man/man3/bson_validate.3 237man/man3/bson_validate.3
 238man/man3/bson_validate_with_error.3
229man/man3/bson_value_copy.3 239man/man3/bson_value_copy.3
230man/man3/bson_value_destroy.3 240man/man3/bson_value_destroy.3
231man/man3/bson_value_t.3 241man/man3/bson_value_t.3
232man/man3/bson_version.3 242man/man3/bson_version.3
233man/man3/bson_visitor_t.3 243man/man3/bson_visitor_t.3
234man/man3/bson_vsnprintf.3 244man/man3/bson_vsnprintf.3
235man/man3/bson_writer_begin.3 245man/man3/bson_writer_begin.3
236man/man3/bson_writer_destroy.3 246man/man3/bson_writer_destroy.3
237man/man3/bson_writer_end.3 247man/man3/bson_writer_end.3
238man/man3/bson_writer_get_length.3 248man/man3/bson_writer_get_length.3
239man/man3/bson_writer_new.3 249man/man3/bson_writer_new.3
240man/man3/bson_writer_rollback.3 250man/man3/bson_writer_rollback.3
241man/man3/bson_writer_t.3 251man/man3/bson_writer_t.3