Commit graph

31 commits

Author SHA1 Message Date
fhajny
b3d9343bf4 Update devel/libbson to 1.8.1.
- Removes a syntax error in the configure script
2017-10-13 14:23:10 +00:00
fhajny
1331e7bc7a Update devel/libbson to 1.8.0.
- Make symbols bson_get_major_version, bson_get_minor_version,
  bson_get_micro_version, bson_get_version, and bson_check_version
  available to C++ programs.
- New CMake option ENABLE_MAINTAINER_FLAGS.
- Crash iterating over invalid code with scope.
2017-09-26 14:16:56 +00:00
fhajny
c71550c93d 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
2017-08-17 17:00:47 +00:00
wiz
5d86518619 Switch github HOMEPAGEs to https. 2017-07-30 22:32:10 +00:00
joerg
f8cc86d033 Fix nonsense shell syntax. From Robert Elz. 2017-07-03 18:11:27 +00:00
fhajny
448e17de13 Update devel/libbson to 1.6.3.
libbson-1.6.3
- No change since 1.6.2; released to keep pace with libmongoc's
  version.

libbson-1.6.2
- This release further improves HP-UX compatibility, especially when
  building with CMake, and fixes some distribution issues we
  introduced when porting the documentation from Mallard to Sphinx.

Libbson-1.6.1
- This is a bugfix release that resolves GCC 7 compiler warnings,
  improves HP-UX compatibility, and avoids a test failure from
  launching too many threads on 32-bit MIPS.

Libbson-1.6.0
- Use jsonsl instead of libyajl as our JSON parsing library, parse
  JSON more strictly, fix minor parsing bugs.
- Extended JSON documents like '{"$code": "...", "$scope": {}}' are
  now parsed into BSON "code" elements.
- ISO8601 dates now allow years from 0000 to 9999 inclusive. Before,
  years before 1970 were prohibited.
- BSON floats and ints are now distinguished in JSON output.
- The library is now built and continuously tested with MinGW-W64 on
  Windows.
- The documentation is ported from Mallard XML to ReStructured Text,
  the HTML documentation is restyled, and numerous man page syntax
  errors fixed.
- All public functions now have the __cdecl calling convention on
  Windows.
2017-06-14 10:24:15 +00:00
fhajny
026eb0cc21 Update devel/libbson to 1.5.3.
Changes since 1.5.0:
- CDRIVER-1982 fix ifdef for strerror_s with mingw.
2017-01-12 14:44:43 +00:00
fhajny
f9ec83ca7b Update devel/libbsob to 1.5.0.
- New BSON Type, Decimal128 (bson_decimal128_t) along with appropriate
  new functions and helpers.
- bson_validate and bson_iter_next now validate that BSON boolean values
  are 0 or 1.
- bson_append_code_with_scope now preserves the "code with scope" type
  if scope is an empty, non-NULL BSON document.
- BSON "code" and "code with scope" types are properly translated to
  JSON of the form '{"$code": "...", "$scope": {...}}'.
- bson_json_reader functions now always validate UTF-8.
- JSON parsing now preserves integer width.
- bson_strtoll now matches stroll: it detects range errors, and when
  parsing octal it stops at non-octal digits and returns what it parsed
  instead of setting errno.
- New flag BSON_VALIDATE_EMPTY_KEYS causes bson_validate to fail if a
  document contains zero-length field names.
- The configure option "--enable-hardening" had had no effect. It is
  removed in favor of system-wide compiler configuration.
2016-12-09 10:05:57 +00:00
fhajny
1333b9da69 Update devel/libbson to 1.4.2.
libbson 1.4.2
- No change since 1.4.1; released to keep pace with libmongoc's
  version.

libbson 1.4.1
- This release improves the HTML documentation's Makefile.
2016-10-02 09:31:05 +00:00
fhajny
4760165840 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.
2016-08-17 14:07:08 +00:00
joerg
6a668ca1b9 Help linking the test program by providing all internal libraries. 2016-05-18 20:19:11 +00:00
fhajny
b45a01f2df Update devel/libbson to 1.3.5.
No changes since 1.3.3, versioned to keep pace with libmongoc.
2016-04-05 12:43:23 +00:00
fhajny
fddd257ebd Update devel/libbson to 1.3.3.
1.3.3
- No changes

1.3.2
- man pages couldn't be built from a distribution tarball.

1.3.1
- bson_strnlen is off by one on Windows.
- BSON_HAVE_STRNLEN config check used incorrectly.
- Incompatibility with older CMake versions.
- Wrong-sized allocation in bson_json_reader_new.
2016-02-16 15:25:53 +00:00
fhajny
e6698d6d81 Update devel/libbson to 1.3.0.
pkgsrc changes:
- Release tarballs cannot build man pages any more, use pre-built
  ones instead.

Changes since 1.2.1:
- Fix potential crash in bson_strncpy on Windows.
- Parse DBRefs correctly from JSON.
- CMake option to disable building tests: "cmake -DENABLE_TESTS:BOOL=OFF".
- Refactor the build system to declare library version in one place.
- Fix compiler warnings and errors, especially with Visual Studio 2015
  and IBM XL C.
- Combine environment's CFLAGS with configure options when building.
2015-12-08 09:34:38 +00:00
fhajny
bd0c84454d Update devel/libbson to 1.2.1.
- Fixed compiler warnings and build failures on MinGW.
- Improve content and format of HTML documentation and man pages.
2015-11-05 13:41:18 +00:00
agc
efd9ad4549 Remove duplicate SHA512 digests that crept in. 2015-11-04 17:41:15 +00:00
agc
d9e4cfe05d Add SHA512 digests for distfiles for devel category
Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 03:27:11 +00:00
fhajny
4d162f6470 Update devel/libbson 1.1.10 to 1.2.0.
libbson 1.2.0
- Add bson_mem_restore_vtable(), the inverse of bson_mem_set_vtable().
- Enable runtime asserts in release build.
- Fixed compiler warnings and build failures on various platforms.
- Improvements to the formatting and contents of the documentation.

libbson 1.1.11
- Document bson streaming reads with an example, bson-streaming-reader.c.
- Document callback function types bson_reader_destroy_func_t and
  bson_reader_read_func_t.
2015-10-19 11:42:18 +00:00
fhajny
0119094929 Update devel/libbson to 1.1.10.
No change since 1.1.9; released to keep pace with mongo-c-driver.
2015-08-24 15:56:07 +00:00
fhajny
333f29123b Update devel/libbson to 1.1.9.
1.1.9
- "./configure --enable-coverage" works now.

1.1.8
- no change
2015-07-04 15:01:27 +00:00
fhajny
95259d9321 Use mk/fetch/github.mk support. 2015-06-10 17:24:49 +00:00
fhajny
9c09ea6908 Update devel/libbson to 1.1.7.
Libbson 1.1.7
- Unchecked error in bson_utf8_escape_for_json caused unbounded memory
  growth and a crash.
- Nicer floating-point formatting in bson_as_json.
- Link error with CMake on Mac.

Libbson 1.1.5
- Fix link error "missing __sync_add_and_fetch_4" in GCC on i386 -
  the functions bson_atomic_int_add and bson_atomic_int64_add are
  now compiled and exported if needed in i386 mode
- Fix version check for GCC 5 and future versions of Clang
- Fix warnings and errors building on various platforms
2015-06-10 17:13:38 +00:00
fhajny
a075dc9e70 Update libbson to 1.1.4.
Minor patch release with one bug fix for bson_iter_timeval.
2015-04-21 07:58:09 +00:00
fhajny
66bafb1a22 Update devel/libbson to 1.1.2.
Libbson 1.1.2
=============
* sscanf_s doesn't exist for mingw.

Libbson 1.1.0
=============
ABI/API changes include:
* Deprecation of bson_copy_to_excluding
* Addition of bson_copy_to_excluding_noinit
* Removal of MIN, MAX and ABS macros in favor of BSON_MIN, BSON_MAX and
  BSON_ABS.  Note this is a breaking source level change if you relied on
  these from bson.h.  Also note that this is not a breaking ABI change.
* Addition of BSON_ERROR_BUFFER_SIZE macro

Other changes include:
* Addition of a versioned ABI for the libbson shared library
* fixed bson_get_monotonic_time fallback when a system monotonic clock can not
  be found.  Formerly failed to compile with an incorrect call to
  bson_gettimeofday
* Allow the "dbref" convention in bson_validate when BSON_VALIDATE_DOLLAR_KEYS
  is present
* Support for ISO-8601 or $numberLong dates in bson <-> json parsing
* Quiet various compiler warnings
2015-03-24 13:21:43 +00:00
tnn
7f75da8cfb requires pthreads on non-Windows platforms 2015-03-12 15:25:24 +00:00
fhajny
c80db01ccf Update libbson to 1.0.2.
- bson_init_from_json supports top level arrays
- fixes for bson_strerror_r
- fix for timeouts on OS X
- house cleaning for various integer types
2014-12-12 11:29:32 +00:00
fhajny
5dc2334fc7 Update libbson to 1.0.0.
No official changelog, see commits made since 0.98.0:

https://github.com/mongodb/libbson/compare/0.98.0...1.0.0
2014-10-02 10:21:27 +00:00
fhajny
d11b2eaaf0 Update libbson to 0.98.
Changes in 0.98:
- This release includes a new memory callback vtable to help in embedding
  situations that have their own custom allocator such as various language
  runtimes.
- A few compilation fixes for various C++ compilers have also been included.

Changes in 0.8.4:
- Alignment fixes for Solaris Studio C compiler.
- RPM and Debian packaging helpers.
- bson_gettimeofday() has dropped the deprecated timezone field used when
  calling posix gettimeofday(). This eases portability concerns. It is
  technically an ABI break, but since the field was never set, in reality
  it shouldn't be an issue.
- Multi-byte optimizations for bson_oid_to_string() have been disabled on
  non-x86 based platforms. This should aid in architecture portability.
- The JSON parser can now support $numberLong.
- bson_ascii_strtoll() has been added, which is a portable strtoll()
  implementation. This is primarily useful for Windows users and is used
  by the JSON parser.
- A bug was fixed in bson_iter_find_descendant() where the wrong field
  could be matched if it's prefix matched the query.
- bson_array_as_json() has been added to convert a bson_t as a top-level
  array.
2014-07-18 10:31:48 +00:00
fhajny
2eb16428e4 Update libbson to 0.8.2.
Changes in 0.8.2
----------------
 * A fix for BCON when used from C++.
 * Change bson_next_power_of_two() to accept size_t. This should not be
   an ABI break since it is static inline.

Changes in 0.8.0
----------------
This cycle includes much, much more documentation for your perusing. There is
much more cross-referencing and structure for your navigation pleasure.

We've improved support for Libbson on a few more exotic platforms. SPARC
support is looking pretty good these days.

You'll also find some new examples in this release to help you get started a
bit faster. If there is something you'd like to see, just ask!

There are a few ABI breaks this cycle, as we are well on the road to a 1.0 and
would like things as clean as possible. I anticipate a few more during the next
couple of cycles, but we will try to keep them to a minimum.  With that said,
you *WILL* need to recompile your application against 0.8.0.
2014-06-11 13:50:19 +00:00
joerg
aaf8d130a4 Needs xmlto. 2014-05-18 21:19:36 +00:00
fhajny
1a1d3769e5 Import libbson as devel/libbson.
libbson is a library providing useful routines related to building,
parsing, and iterating BSON documents. It is a useful base for those
wanting to write high-performance C extensions to higher level
languages such as python, ruby, or perl.
2014-05-07 15:43:59 +00:00