Wed Aug 17 14:07:09 2016 UTC ()
Update devel/libbson to 1.4.0.

- bson_reader_reset seeks to the beginning of a BSON buffer.
- bson_steal efficiently transfers contents from one bson_t to
  another.
- Fix Windows compile error with BSON_EXTRA_ALIGN disabled.
- Potential buffer overrun in bson_strndup.
- bson_oid_to_string optimization for MS Visual Studio
- bson_oid_is_valid accepts uppercase hex characters.
- bson_json_reader_read aborted on some invalid Extended JSON
  documents.
- All man page names now begin with "bson_" to avoid install
  conflicts.
- Error messages sometimes truncated at 63 chars.


(fhajny)
diff -r1.18 -r1.19 pkgsrc/devel/libbson/Makefile
diff -r1.18 -r1.19 pkgsrc/devel/libbson/distinfo
diff -r1.5 -r1.6 pkgsrc/devel/libbson/PLIST
diff -r1.1 -r1.2 pkgsrc/devel/libbson/patches/patch-Makefile.in

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

--- pkgsrc/devel/libbson/Attic/Makefile 2016/04/05 12:43:23 1.18
+++ pkgsrc/devel/libbson/Attic/Makefile 2016/08/17 14:07:08 1.19
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.18 2016/04/05 12:43:23 fhajny Exp $ 1# $NetBSD: Makefile,v 1.19 2016/08/17 14:07:08 fhajny Exp $
2 2
3DISTNAME= libbson-1.3.5 3DISTNAME= libbson-1.4.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= http://github.com/mongodb/libbson/ 8HOMEPAGE= http://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.18 -r1.19 pkgsrc/devel/libbson/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/libbson/Attic/distinfo 2016/05/18 20:19:11 1.18
+++ pkgsrc/devel/libbson/Attic/distinfo 2016/08/17 14:07:08 1.19
@@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
1$NetBSD: distinfo,v 1.18 2016/05/18 20:19:11 joerg Exp $ 1$NetBSD: distinfo,v 1.19 2016/08/17 14:07:08 fhajny Exp $
2 2
3SHA1 (libbson-1.3.5.tar.gz) = 4eb4ac680aa162a838bfe29c382f607bd34214d2 3SHA1 (libbson-1.4.0.tar.gz) = b65bb26bef8d0e0838cb70bf7aad560ec616654f
4RMD160 (libbson-1.3.5.tar.gz) = c23f252b726ce207dfcc8633373087b493a8e002 4RMD160 (libbson-1.4.0.tar.gz) = 37c8d25965a9f43d74399f37e16579c8d94d49af
5SHA512 (libbson-1.3.5.tar.gz) = b55ae1d424f786aabed6567a77cd09aa26c74ab0a09392e88faef8c156b1650c026f86f245bc8431a0ebcf404c4f80eb1b22e978a24289d32692c84375a66596 5SHA512 (libbson-1.4.0.tar.gz) = 5345c0b91d4e0428b6b6f6d6562094fd9d899de4f42d53649b22df51cc766953f2aa764576e7e4cd37ad91357ad7b788bd6a810d6f994d9df51dc0d1311e2406
6Size (libbson-1.3.5.tar.gz) = 4547720 bytes 6Size (libbson-1.4.0.tar.gz) = 4592567 bytes
7SHA1 (patch-Makefile.in) = e59627368354da85936154118085700bb9b7431c 7SHA1 (patch-Makefile.in) = 0e63f88b7f6e9df5bbbdd7ee294afa93f23335b0

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

--- pkgsrc/devel/libbson/Attic/PLIST 2015/12/08 09:34:38 1.5
+++ pkgsrc/devel/libbson/Attic/PLIST 2016/08/17 14:07:08 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.5 2015/12/08 09:34:38 fhajny Exp $ 1@comment $NetBSD: PLIST,v 1.6 2016/08/17 14:07:08 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-endian.h 8include/libbson-1.0/bson-endian.h
9include/libbson-1.0/bson-error.h 9include/libbson-1.0/bson-error.h
10include/libbson-1.0/bson-iter.h 10include/libbson-1.0/bson-iter.h
11include/libbson-1.0/bson-json.h 11include/libbson-1.0/bson-json.h
12include/libbson-1.0/bson-keys.h 12include/libbson-1.0/bson-keys.h
13include/libbson-1.0/bson-macros.h 13include/libbson-1.0/bson-macros.h
14include/libbson-1.0/bson-md5.h 14include/libbson-1.0/bson-md5.h
@@ -47,50 +47,56 @@ man/man3/bson_append_minkey.3 @@ -47,50 +47,56 @@ man/man3/bson_append_minkey.3
47man/man3/bson_append_now_utc.3 47man/man3/bson_append_now_utc.3
48man/man3/bson_append_null.3 48man/man3/bson_append_null.3
49man/man3/bson_append_oid.3 49man/man3/bson_append_oid.3
50man/man3/bson_append_regex.3 50man/man3/bson_append_regex.3
51man/man3/bson_append_symbol.3 51man/man3/bson_append_symbol.3
52man/man3/bson_append_time_t.3 52man/man3/bson_append_time_t.3
53man/man3/bson_append_timestamp.3 53man/man3/bson_append_timestamp.3
54man/man3/bson_append_timeval.3 54man/man3/bson_append_timeval.3
55man/man3/bson_append_undefined.3 55man/man3/bson_append_undefined.3
56man/man3/bson_append_utf8.3 56man/man3/bson_append_utf8.3
57man/man3/bson_append_value.3 57man/man3/bson_append_value.3
58man/man3/bson_as_json.3 58man/man3/bson_as_json.3
59man/man3/bson_check_version.3 59man/man3/bson_check_version.3
 60man/man3/bson_clock.3
60man/man3/bson_compare.3 61man/man3/bson_compare.3
61man/man3/bson_concat.3 62man/man3/bson_concat.3
62man/man3/bson_context_destroy.3 63man/man3/bson_context_destroy.3
63man/man3/bson_context_get_default.3 64man/man3/bson_context_get_default.3
64man/man3/bson_context_new.3 65man/man3/bson_context_new.3
65man/man3/bson_context_t.3 66man/man3/bson_context_t.3
66man/man3/bson_copy.3 67man/man3/bson_copy.3
67man/man3/bson_copy_to.3 68man/man3/bson_copy_to.3
68man/man3/bson_copy_to_excluding.3 69man/man3/bson_copy_to_excluding.3
69man/man3/bson_count_keys.3 70man/man3/bson_count_keys.3
 71man/man3/bson_creating.3
70man/man3/bson_destroy.3 72man/man3/bson_destroy.3
71man/man3/bson_destroy_with_steal.3 73man/man3/bson_destroy_with_steal.3
 74man/man3/bson_endianness.3
72man/man3/bson_equal.3 75man/man3/bson_equal.3
73man/man3/bson_error_t.3 76man/man3/bson_error_t.3
 77man/man3/bson_errors.3
74man/man3/bson_free.3 78man/man3/bson_free.3
75man/man3/bson_get_data.3 79man/man3/bson_get_data.3
76man/man3/bson_get_major_version.3 80man/man3/bson_get_major_version.3
77man/man3/bson_get_micro_version.3 81man/man3/bson_get_micro_version.3
78man/man3/bson_get_minor_version.3 82man/man3/bson_get_minor_version.3
79man/man3/bson_get_version.3 83man/man3/bson_get_version.3
80man/man3/bson_has_field.3 84man/man3/bson_has_field.3
 85man/man3/bson_index.3
81man/man3/bson_init.3 86man/man3/bson_init.3
82man/man3/bson_init_from_json.3 87man/man3/bson_init_from_json.3
83man/man3/bson_init_static.3 88man/man3/bson_init_static.3
 89man/man3/bson_installing.3
84man/man3/bson_iter_array.3 90man/man3/bson_iter_array.3
85man/man3/bson_iter_as_bool.3 91man/man3/bson_iter_as_bool.3
86man/man3/bson_iter_as_int64.3 92man/man3/bson_iter_as_int64.3
87man/man3/bson_iter_binary.3 93man/man3/bson_iter_binary.3
88man/man3/bson_iter_bool.3 94man/man3/bson_iter_bool.3
89man/man3/bson_iter_code.3 95man/man3/bson_iter_code.3
90man/man3/bson_iter_codewscope.3 96man/man3/bson_iter_codewscope.3
91man/man3/bson_iter_date_time.3 97man/man3/bson_iter_date_time.3
92man/man3/bson_iter_dbpointer.3 98man/man3/bson_iter_dbpointer.3
93man/man3/bson_iter_document.3 99man/man3/bson_iter_document.3
94man/man3/bson_iter_double.3 100man/man3/bson_iter_double.3
95man/man3/bson_iter_dup_utf8.3 101man/man3/bson_iter_dup_utf8.3
96man/man3/bson_iter_find.3 102man/man3/bson_iter_find.3
@@ -109,107 +115,119 @@ man/man3/bson_iter_overwrite_double.3 @@ -109,107 +115,119 @@ man/man3/bson_iter_overwrite_double.3
109man/man3/bson_iter_overwrite_int32.3 115man/man3/bson_iter_overwrite_int32.3
110man/man3/bson_iter_overwrite_int64.3 116man/man3/bson_iter_overwrite_int64.3
111man/man3/bson_iter_recurse.3 117man/man3/bson_iter_recurse.3
112man/man3/bson_iter_regex.3 118man/man3/bson_iter_regex.3
113man/man3/bson_iter_symbol.3 119man/man3/bson_iter_symbol.3
114man/man3/bson_iter_t.3 120man/man3/bson_iter_t.3
115man/man3/bson_iter_time_t.3 121man/man3/bson_iter_time_t.3
116man/man3/bson_iter_timestamp.3 122man/man3/bson_iter_timestamp.3
117man/man3/bson_iter_timeval.3 123man/man3/bson_iter_timeval.3
118man/man3/bson_iter_type.3 124man/man3/bson_iter_type.3
119man/man3/bson_iter_utf8.3 125man/man3/bson_iter_utf8.3
120man/man3/bson_iter_value.3 126man/man3/bson_iter_value.3
121man/man3/bson_iter_visit_all.3 127man/man3/bson_iter_visit_all.3
 128man/man3/bson_json.3
122man/man3/bson_json_data_reader_ingest.3 129man/man3/bson_json_data_reader_ingest.3
123man/man3/bson_json_data_reader_new.3 130man/man3/bson_json_data_reader_new.3
124man/man3/bson_json_reader_destroy.3 131man/man3/bson_json_reader_destroy.3
125man/man3/bson_json_reader_new.3 132man/man3/bson_json_reader_new.3
126man/man3/bson_json_reader_new_from_fd.3 133man/man3/bson_json_reader_new_from_fd.3
127man/man3/bson_json_reader_new_from_file.3 134man/man3/bson_json_reader_new_from_file.3
128man/man3/bson_json_reader_read.3 135man/man3/bson_json_reader_read.3
129man/man3/bson_json_reader_t.3 136man/man3/bson_json_reader_t.3
130man/man3/bson_malloc.3 137man/man3/bson_malloc.3
131man/man3/bson_malloc0.3 138man/man3/bson_malloc0.3
132man/man3/bson_md5_append.3 139man/man3/bson_md5_append.3
133man/man3/bson_md5_finish.3 140man/man3/bson_md5_finish.3
134man/man3/bson_md5_init.3 141man/man3/bson_md5_init.3
135man/man3/bson_md5_t.3 142man/man3/bson_md5_t.3
136man/man3/bson_mem_restore_vtable.3 143man/man3/bson_mem_restore_vtable.3
137man/man3/bson_mem_set_vtable.3 144man/man3/bson_mem_set_vtable.3
 145man/man3/bson_memory.3
138man/man3/bson_new.3 146man/man3/bson_new.3
139man/man3/bson_new_from_buffer.3 147man/man3/bson_new_from_buffer.3
140man/man3/bson_new_from_data.3 148man/man3/bson_new_from_data.3
141man/man3/bson_new_from_json.3 149man/man3/bson_new_from_json.3
 150man/man3/bson_oid.3
142man/man3/bson_oid_compare.3 151man/man3/bson_oid_compare.3
143man/man3/bson_oid_copy.3 152man/man3/bson_oid_copy.3
144man/man3/bson_oid_equal.3 153man/man3/bson_oid_equal.3
145man/man3/bson_oid_get_time_t.3 154man/man3/bson_oid_get_time_t.3
146man/man3/bson_oid_hash.3 155man/man3/bson_oid_hash.3
147man/man3/bson_oid_init.3 156man/man3/bson_oid_init.3
148man/man3/bson_oid_init_from_data.3 157man/man3/bson_oid_init_from_data.3
149man/man3/bson_oid_init_from_string.3 158man/man3/bson_oid_init_from_string.3
150man/man3/bson_oid_init_sequence.3 159man/man3/bson_oid_init_sequence.3
151man/man3/bson_oid_is_valid.3 160man/man3/bson_oid_is_valid.3
152man/man3/bson_oid_t.3 161man/man3/bson_oid_t.3
153man/man3/bson_oid_to_string.3 162man/man3/bson_oid_to_string.3
 163man/man3/bson_parsing.3
 164man/man3/bson_performance.3
154man/man3/bson_reader_destroy.3 165man/man3/bson_reader_destroy.3
155man/man3/bson_reader_destroy_func_t.3 166man/man3/bson_reader_destroy_func_t.3
156man/man3/bson_reader_new_from_data.3 167man/man3/bson_reader_new_from_data.3
157man/man3/bson_reader_new_from_fd.3 168man/man3/bson_reader_new_from_fd.3
158man/man3/bson_reader_new_from_file.3 169man/man3/bson_reader_new_from_file.3
159man/man3/bson_reader_new_from_handle.3 170man/man3/bson_reader_new_from_handle.3
160man/man3/bson_reader_read.3 171man/man3/bson_reader_read.3
161man/man3/bson_reader_read_func_t.3 172man/man3/bson_reader_read_func_t.3
 173man/man3/bson_reader_reset.3
162man/man3/bson_reader_set_destroy_func.3 174man/man3/bson_reader_set_destroy_func.3
163man/man3/bson_reader_set_read_func.3 175man/man3/bson_reader_set_read_func.3
164man/man3/bson_reader_t.3 176man/man3/bson_reader_t.3
165man/man3/bson_reader_tell.3 177man/man3/bson_reader_tell.3
166man/man3/bson_realloc.3 178man/man3/bson_realloc.3
167man/man3/bson_realloc_ctx.3 179man/man3/bson_realloc_ctx.3
168man/man3/bson_realloc_func.3 180man/man3/bson_realloc_func.3
169man/man3/bson_reinit.3 181man/man3/bson_reinit.3
 182man/man3/bson_reserve_buffer.3
170man/man3/bson_set_error.3 183man/man3/bson_set_error.3
171man/man3/bson_sized_new.3 184man/man3/bson_sized_new.3
172man/man3/bson_snprintf.3 185man/man3/bson_snprintf.3
 186man/man3/bson_steal.3
173man/man3/bson_strdup.3 187man/man3/bson_strdup.3
174man/man3/bson_strdup_printf.3 188man/man3/bson_strdup_printf.3
175man/man3/bson_strdupv_printf.3 189man/man3/bson_strdupv_printf.3
 190man/man3/bson_streaming_bson.3
176man/man3/bson_strerror_r.3 191man/man3/bson_strerror_r.3
177man/man3/bson_strfreev.3 192man/man3/bson_strfreev.3
178man/man3/bson_string_append.3 193man/man3/bson_string_append.3
179man/man3/bson_string_append_c.3 194man/man3/bson_string_append_c.3
180man/man3/bson_string_append_printf.3 195man/man3/bson_string_append_printf.3
181man/man3/bson_string_append_unichar.3 196man/man3/bson_string_append_unichar.3
182man/man3/bson_string_free.3 197man/man3/bson_string_free.3
183man/man3/bson_string_new.3 198man/man3/bson_string_new.3
184man/man3/bson_string_t.3 199man/man3/bson_string_t.3
185man/man3/bson_string_truncate.3 200man/man3/bson_string_truncate.3
186man/man3/bson_strncpy.3 201man/man3/bson_strncpy.3
187man/man3/bson_strndup.3 202man/man3/bson_strndup.3
188man/man3/bson_strnlen.3 203man/man3/bson_strnlen.3
189man/man3/bson_subtype_t.3 204man/man3/bson_subtype_t.3
190man/man3/bson_t.3 205man/man3/bson_t.3
 206man/man3/bson_threading.3
191man/man3/bson_type_t.3 207man/man3/bson_type_t.3
192man/man3/bson_uint32_to_string.3 208man/man3/bson_uint32_to_string.3
193man/man3/bson_unichar_t.3 209man/man3/bson_unichar_t.3
 210man/man3/bson_utf8.3
194man/man3/bson_utf8_escape_for_json.3 211man/man3/bson_utf8_escape_for_json.3
195man/man3/bson_utf8_from_unichar.3 212man/man3/bson_utf8_from_unichar.3
196man/man3/bson_utf8_get_char.3 213man/man3/bson_utf8_get_char.3
197man/man3/bson_utf8_next_char.3 214man/man3/bson_utf8_next_char.3
198man/man3/bson_utf8_validate.3 215man/man3/bson_utf8_validate.3
199man/man3/bson_validate.3 216man/man3/bson_validate.3
200man/man3/bson_value_copy.3 217man/man3/bson_value_copy.3
201man/man3/bson_value_destroy.3 218man/man3/bson_value_destroy.3
202man/man3/bson_value_t.3 219man/man3/bson_value_t.3
 220man/man3/bson_version.3
203man/man3/bson_visitor_t.3 221man/man3/bson_visitor_t.3
204man/man3/bson_vsnprintf.3 222man/man3/bson_vsnprintf.3
205man/man3/bson_writer_begin.3 223man/man3/bson_writer_begin.3
206man/man3/bson_writer_destroy.3 224man/man3/bson_writer_destroy.3
207man/man3/bson_writer_end.3 225man/man3/bson_writer_end.3
208man/man3/bson_writer_get_length.3 226man/man3/bson_writer_get_length.3
209man/man3/bson_writer_new.3 227man/man3/bson_writer_new.3
210man/man3/bson_writer_rollback.3 228man/man3/bson_writer_rollback.3
211man/man3/bson_writer_t.3 229man/man3/bson_writer_t.3
212man/man3/bson_zero_free.3 230man/man3/bson_zero_free.3
213share/doc/libbson/COPYING 231share/doc/libbson/COPYING
214share/doc/libbson/NEWS 232share/doc/libbson/NEWS
215share/doc/libbson/README 233share/doc/libbson/README

cvs diff -r1.1 -r1.2 pkgsrc/devel/libbson/patches/Attic/patch-Makefile.in (expand / switch to unified diff)

--- pkgsrc/devel/libbson/patches/Attic/patch-Makefile.in 2016/05/18 20:19:11 1.1
+++ pkgsrc/devel/libbson/patches/Attic/patch-Makefile.in 2016/08/17 14:07:09 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1$NetBSD: patch-Makefile.in,v 1.1 2016/05/18 20:19:11 joerg Exp $ 1$NetBSD: patch-Makefile.in,v 1.2 2016/08/17 14:07:09 fhajny Exp $
2 2
3--- Makefile.in.orig 2016-05-18 12:42:33.000000000 +0000 3--- Makefile.in.orig 2016-08-10 19:11:28.000000000 +0000
4+++ Makefile.in 4+++ Makefile.in
5@@ -781,7 +781,8 @@ test_libbson_LDFLAGS = $(COVERAGE_LDFLAG 5@@ -793,7 +793,8 @@ test_libbson_LDFLAGS = $(COVERAGE_LDFLAG
6 test_libbson_LDADD = \ 6 test_libbson_LDADD = \
7 $(PTHREAD_LIBS) \ 7 $(PTHREAD_LIBS) \
8 libbson-1.0.la \ 8 libbson-1.0.la \
9- libbson.la 9- libbson.la
10+ libbson.la \ 10+ libbson.la \
11+ libyajl.la 11+ libyajl.la
12  12
13 TEST_ARGS = $(am__append_7) 13 @OS_DARWIN_FALSE@DEBUGGER = gdb --args
14 EXAMPLE_CFLAGS = \ 14 @OS_DARWIN_TRUE@DEBUGGER = lldb --