Skip to content

Commit

Permalink
Release mongo-c-driver 0.96.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hergert committed May 30, 2014
1 parent aa246ec commit 30bdc2d
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 28 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ include(FindBSON REQUIRED)
set (SOURCE_DIR "${PROJECT_SOURCE_DIR}/")

set (MONGOC_MAJOR_VERSION 0)
set (MONGOC_MINOR_VERSION 94)
set (MONGOC_MICRO_VERSION 3)
set (MONGOC_MINOR_VERSION 96)
set (MONGOC_MICRO_VERSION 0)
set (MONGOC_API_VERSION 1.0)
set (MONGOC_VERSION 0.94.3)
set (MONGOC_VERSION 0.96.0)

set (CPACK_RESOURCE_FILE_LICENSE "${SOURCE_DIR}/COPYING")
set (CPACK_PACKAGE_VERSION_MAJOR ${MONGOC_MAJOR_VERSION})
Expand Down
40 changes: 40 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
mongo-c-driver 0.96.0
=====================

It's that time again, time for another mongo-c-driver release!

This release includes much new documentation, which can be found at
http://docs.mongodb.org/ecosystem/drivers/c/.

Additionally, this release improves support for various exotic systems.
Solaris 10 is supported much better on SPARC and x86_64 based systems.

Some workarounds for mixed-mode sharded-clusters have been added to improve
resiliency when rolling upgrades are performed.

Build improvements have been added to help us detect SASL and SSL
implementations on platforms that do not support pkg-config. This should
simplify building for some of you.

We've added some more logging to SASL authentication to help debug
authentication failures.

A bug causing an abort() when SSL is used and a server is down has been fixed.

We've renamed various _delete() functions to _remove() to provide consistency
with other MongoDB drivers.

You can now specify SSL options for client pools.

-D_REENTRANT is always defined now on Solaris to help with errno detection.
This may not have been done before if using a non-GCC platform with pthreads.

A bug was fixed where timeouts could have been 1000x longer than expected
due to failure to convert from microseconds to milliseconds.

A bug was fixed with authentication in sharded cluster and replica set
scenarios.

Happy Hacking!


mongo-c-driver 0.94.2
=====================

Expand Down
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ Building from Release Tarball
Unless you intend on contributing to the mongo-c-driver, you will want to build
from a release tarball.

The most current release is 0.94.2 which you can download here.
`mongo-c-driver-0.94.2.tar.gz <https://github.com/mongodb/mongo-c-driver/releases/download/0.94.2/mongo-c-driver-0.94.2.tar.gz>`_.
The most current release is 0.96.0 which you can download here.
`mongo-c-driver-0.96.0.tar.gz <https://github.com/mongodb/mongo-c-driver/releases/download/0.96.0/mongo-c-driver-0.96.0.tar.gz>`_.

To build on UNIX-like systems, do the following::

$ tar xzf mongo-c-driver-0.94.2.tar.gz
$ cd mongo-c-driver-0.94.2
$ tar xzf mongo-c-driver-0.96.0.tar.gz
$ cd mongo-c-driver-0.96.0
$ ./configure
$ make
$ sudo make install
Expand All @@ -69,7 +69,7 @@ To see all of the options available to you during configuration, run::

To build on Windows Vista or newer with Visual Studio 2010, do the following::

cd mongo-c-driver-0.94.2
cd mongo-c-driver-0.96.0
cd src\libbson
cmake -DCMAKE_INSTALL_PREFIX=C:\usr -G "Visual Studio 10 Win64" .
msbuild.exe ALL_BUILD.vcxproj
Expand Down
4 changes: 2 additions & 2 deletions build/autotools/Versions.m4
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
m4_define([mongoc_major_version], [0])
m4_define([mongoc_minor_version], [94])
m4_define([mongoc_micro_version], [3])
m4_define([mongoc_minor_version], [96])
m4_define([mongoc_micro_version], [0])
m4_define([mongoc_version], [mongoc_major_version.mongoc_minor_version.mongoc_micro_version])

# bump up by 1 for every micro release with no API changes, otherwise
Expand Down
7 changes: 5 additions & 2 deletions build/rpm/mongo-c-driver.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Name: mongo-c-driver
Version: 0.94.3
Version: 0.96.0
Release: 1%{?dist}
Summary: BSON library

License: ASL 2.0
URL: https://github.com/mongodb/mongo-c-driver
Source0: https://github.com/mongodb/mongo-c-driver/releases/download/0.94.3/mongo-c-driver-0.94.3.tar.gz
Source0: https://github.com/mongodb/mongo-c-driver/releases/download/0.96.0/mongo-c-driver-0.96.0.tar.gz
BuildRequires: automake
BuildRequires: libbson-devel
BuildRequires: cyrus-sasl-devel
Expand Down Expand Up @@ -61,5 +61,8 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_bindir}/mongoc-stat

%changelog
* Fri May 30 2014 Christian Hergert <[email protected]> - 0.96.0-1
- Release 0.96.0

* Tue May 06 2014 Christian Hergert <[email protected]> - 0.94.3-1
- Initial package
2 changes: 1 addition & 1 deletion doc/aggregate.page
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<section id="requirements">
<title>Requirements</title>

<p><link href="https://mongodb.org">MongoDB</link>, version 2.2.0 or later. <link href="https://github.com/mongodb/mongo-c-driver">MongoDB C driver</link>, version 0.94.4 or later.</p>
<p><link href="https://mongodb.org">MongoDB</link>, version 2.2.0 or later. <link href="https://github.com/mongodb/mongo-c-driver">MongoDB C driver</link>, version 0.96.0 or later.</p>
<p>Let's check if everything is installed.</p>
<p>Use the following command to load zips.json data set into mongod instance:</p>

Expand Down
16 changes: 8 additions & 8 deletions doc/installing.page
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@

<p>The following instructions are for UNIX-like systems such as GNU/Linux, FreeBSD, and Solaris. To build on Windows, see the instructions for <link xref="installing#building-windows">Building on Windows</link>.</p>

<p>The most recent release of the mongo-c-driver is 0.94.3 and can be <link href="https://github.com/mongodb/mongo-c-driver/releases/download/0.94.3/mongo-c-driver-0.94.3.tar.gz">downloaded here</link>. The following snippet will download and extract the current release of the driver.</p>
<p>The most recent release of the mongo-c-driver is 0.96.0 and can be <link href="https://github.com/mongodb/mongo-c-driver/releases/download/0.96.0/mongo-c-driver-0.96.0.tar.gz">downloaded here</link>. The following snippet will download and extract the current release of the driver.</p>

<screen><output style="prompt">$ </output><input>wget https://github.com/mongodb/mongo-c-driver/releases/download/0.94.3/mongo-c-driver-0.94.3.tar.gz</input>
<output style="prompt">$ </output><input>tar -xzf mongo-c-driver-0.94.3.tar.gz</input>
<output style="prompt">$ </output><input>cd mongo-c-driver-0.94.3/</input></screen>
<screen><output style="prompt">$ </output><input>wget https://github.com/mongodb/mongo-c-driver/releases/download/0.96.0/mongo-c-driver-0.96.0.tar.gz</input>
<output style="prompt">$ </output><input>tar -xzf mongo-c-driver-0.96.0.tar.gz</input>
<output style="prompt">$ </output><input>cd mongo-c-driver-0.96.0/</input></screen>

<p>Minimal dependencies are needed to build the MongoDB C driver. Optionally, if you want Kerberos (GSSAPI) or SSL support, you need to install <code>libsasl2</code> and <code>OpenSSL</code> libraries and development headers respectively.</p>

Expand Down Expand Up @@ -132,8 +132,8 @@ Python (experimental) : no
<p>The following commands will download the most recent MongoDB binary release and install it using the <code>pkgadd</code> command on Solaris 10.</p>
<screen><output style="prompt">$ </output><input>bash</input>
<output style="prompt">bash-3.2$ </output><input>export ARCH=`uname -m`</input>
<output style="prompt">bash-3.2$ </output><input>/usr/sfw/bin/wget --no-check-certificate "https://github.com/mongodb/mongo-c-driver/releases/download/0.94.3/MONGOmongo-c-driver-0.94.3.${ARCH}.pkg.tar.gz"</input>
<output style="prompt">bash-3.2$ </output><input>gunzip -c "MONGOmongo-c-driver-0.94.3.${ARCH}.pkg.tar.gz" | tar -xf -</input>
<output style="prompt">bash-3.2$ </output><input>/usr/sfw/bin/wget --no-check-certificate "https://github.com/mongodb/mongo-c-driver/releases/download/0.96.0/MONGOmongo-c-driver-0.96.0.${ARCH}.pkg.tar.gz"</input>
<output style="prompt">bash-3.2$ </output><input>gunzip -c "MONGOmongo-c-driver-0.96.0.${ARCH}.pkg.tar.gz" | tar -xf -</input>
<output style="prompt">bash-3.2$ </output><input>pkgadd -d . MONGOmongo-c-driver</input></screen>

</section>
Expand All @@ -145,7 +145,7 @@ Python (experimental) : no

<p>Let's start by generating Visual Studio project files for libbson, a dependency of the C driver. The following assumes we are compiling for 64-bit Windows using Visual Studio 2010 Express which can be freely downloaded from Microsoft.</p>

<screen>cd mongo-c-driver-0.94.3\src\libbson
<screen>cd mongo-c-driver-0.96.0\src\libbson
cmake -G "Visual Studio 10 Win64" "-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver"</screen>

<p>Now that we have project files generated, we can either open the project in Visual Studio or compile from the command line. Let's build using the command line program <code>msbuild.exe</code></p>
Expand All @@ -160,7 +160,7 @@ cmake -G "Visual Studio 10 Win64" "-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver"</sc

<p>Now let's do the same for the MongoDB C driver.</p>

<screen>cd mongo-c-driver-0.94.3
<screen>cd mongo-c-driver-0.96.0
cmake -G "Visual Studio 2010 Win64" "-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver" "-DBSON_ROOT_DIR=C:\mongo-c-driver"
msbuild.exe ALL_BUILD.vcxproj
msbuild.exe INSTALL.vcxproj</screen>
Expand Down
4 changes: 2 additions & 2 deletions doc/mongoc_client_pool_set_ssl_opts.page
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ mongoc_client_pool_set_ssl_opts (mongoc_client_pool_t *pool,

<section id="parameters">
<title>Availability</title>
<p>Since 0.94.4</p>
<p>This feature requires that the MongoDB C driver was compiled with <code>--enable-ssl</code>.</p>
<p>Since 0.96.0</p>
<note style="tip"><p>This feature requires that the MongoDB C driver was compiled with <code>--enable-ssl</code>.</p></note>
</section>

</page>
10 changes: 5 additions & 5 deletions doc/mongoc_version.page
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
<screen><![CDATA[#include <mongoc.h>

#define MONGOC_MAJOR_VERSION (0)
#define MONGOC_MINOR_VERSION (94)
#define MONGOC_MICRO_VERSION (2)
#define MONGOC_VERSION_S "0.94.2"
#define MONGOC_MINOR_VERSION (96)
#define MONGOC_MICRO_VERSION (0)
#define MONGOC_VERSION_S "0.96.0"
#define MONGOC_VERSION_HEX ((0 << 24) | (94 << 16) | (2 << 8) | 0)
#define MONGOC_CHECK_VERSION(major, minor, micro)
]]></screen>


<listing>
<title>MongoDB C Driver version check</title>
<desc>Only compile a block on MongoDB C Driver 0.94.2 and newer.</desc>
<code mime="text/x-csrc"><![CDATA[#if MONGOC_CHECK_VERSION(0, 94, 2)
<desc>Only compile a block on MongoDB C Driver 0.96.0 and newer.</desc>
<code mime="text/x-csrc"><![CDATA[#if MONGOC_CHECK_VERSION(0, 96, 0)
static void do_something (void) {
}
#endif]]></code>
Expand Down

0 comments on commit 30bdc2d

Please sign in to comment.