pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/databases/mongo-c-driver
Module Name: pkgsrc
Committed By: fhajny
Date: Tue Jan 2 10:47:52 UTC 2018
Modified Files:
pkgsrc/databases/mongo-c-driver: Makefile PLIST distinfo
pkgsrc/databases/mongo-c-driver/patches:
patch-src_mongoc_mongoc-cursor.c
Log Message:
Update databases/mongo-c-driver to 1.9.0.
This version drops support for MongoDB 2.4 and adds support
for MongoDB 3.6 features:
- New struct mongoc_change_stream_t to watch a collection for changes.
- New struct mongoc_client_session_t represents a MongoDB 3.6 session,
which supports causal consistency: you are guaranteed to read your writes
and to perform monotonic reads, even when reading from secondaries or in
a sharded cluster.
- New functions that accept flexible options as a BSON document. These
accept a "sessionId" option and any future options. In addition, the
two new "update" functions accept the "arrayFilters" option that is new
in MongoDB 3.6:
- mongoc_collection_insert_one
- mongoc_collection_insert_many
- mongoc_collection_update_one
- mongoc_collection_update_many
- mongoc_collection_replace_one
- mongoc_collection_delete_one
- mongoc_collection_delete_many
- mongoc_client_command_with_opts
- mongoc_database_command_with_opts
- mongoc_collection_command_with_opts
- mongoc_client_find_databases_with_opts
- mongoc_client_get_database_names_with_opts
- mongoc_collection_create_bulk_operation_with_opts
- mongoc_collection_find_indexes_with_opts
- mongoc_database_find_collections_with_opts
- mongoc_database_get_collection_names_with_opts
- New URI option "retryWrites=true" safely and automatically retries certain
write operations if the server is a MongoDB 3.6 replica set or sharded
cluster.
- Support for MongoDB OP_MSG wire protocol.
Additional changes not specific to MongoDB 3.6:
- Support for mongodb+srv URIs to query DNS for SRV and TXT records that
configure the connection to MongoDB.
- Support LibreSSL with CMake build
- The "minPoolSize" URI option is deprecated: it's confusing and not useful.
Bug fixes:
- mongoc_bulk_operation_execute did not always initialize "reply".
- Fix C99 pedantic warnings.
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 pkgsrc/databases/mongo-c-driver/Makefile
cvs rdiff -u -r1.15 -r1.16 pkgsrc/databases/mongo-c-driver/PLIST
cvs rdiff -u -r1.28 -r1.29 pkgsrc/databases/mongo-c-driver/distinfo
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/databases/mongo-c-driver/patches/patch-src_mongoc_mongoc-cursor.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/databases/mongo-c-driver/Makefile
diff -u pkgsrc/databases/mongo-c-driver/Makefile:1.29 pkgsrc/databases/mongo-c-driver/Makefile:1.30
--- pkgsrc/databases/mongo-c-driver/Makefile:1.29 Mon Nov 20 16:06:11 2017
+++ pkgsrc/databases/mongo-c-driver/Makefile Tue Jan 2 10:47:52 2018
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.29 2017/11/20 16:06:11 fhajny Exp $
+# $NetBSD: Makefile,v 1.30 2018/01/02 10:47:52 fhajny Exp $
-DISTNAME= mongo-c-driver-1.8.2
+DISTNAME= mongo-c-driver-1.9.0
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GITHUB:=mongodb/}
Index: pkgsrc/databases/mongo-c-driver/PLIST
diff -u pkgsrc/databases/mongo-c-driver/PLIST:1.15 pkgsrc/databases/mongo-c-driver/PLIST:1.16
--- pkgsrc/databases/mongo-c-driver/PLIST:1.15 Tue Sep 26 14:18:21 2017
+++ pkgsrc/databases/mongo-c-driver/PLIST Tue Jan 2 10:47:52 2018
@@ -1,8 +1,10 @@
-@comment $NetBSD: PLIST,v 1.15 2017/09/26 14:18:21 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.16 2018/01/02 10:47:52 fhajny Exp $
bin/mongoc-stat
include/libmongoc-1.0/mongoc-apm.h
include/libmongoc-1.0/mongoc-bulk-operation.h
+include/libmongoc-1.0/mongoc-change-stream.h
include/libmongoc-1.0/mongoc-client-pool.h
+include/libmongoc-1.0/mongoc-client-session.h
include/libmongoc-1.0/mongoc-client.h
include/libmongoc-1.0/mongoc-collection.h
include/libmongoc-1.0/mongoc-config.h
@@ -156,21 +158,30 @@ man/man3/mongoc_bulk_operation_remove_on
man/man3/mongoc_bulk_operation_replace_one.3
man/man3/mongoc_bulk_operation_replace_one_with_opts.3
man/man3/mongoc_bulk_operation_set_bypass_document_validation.3
+man/man3/mongoc_bulk_operation_set_client.3
+man/man3/mongoc_bulk_operation_set_client_session.3
man/man3/mongoc_bulk_operation_set_hint.3
man/man3/mongoc_bulk_operation_t.3
man/man3/mongoc_bulk_operation_update.3
man/man3/mongoc_bulk_operation_update_many_with_opts.3
man/man3/mongoc_bulk_operation_update_one.3
man/man3/mongoc_bulk_operation_update_one_with_opts.3
+man/man3/mongoc_change_stream_destroy.3
+man/man3/mongoc_change_stream_error_document.3
+man/man3/mongoc_change_stream_next.3
+man/man3/mongoc_change_stream_t.3
man/man3/mongoc_check_version.3
man/man3/mongoc_cleanup.3
man/man3/mongoc_client_command.3
man/man3/mongoc_client_command_simple.3
man/man3/mongoc_client_command_simple_with_server_id.3
+man/man3/mongoc_client_command_with_opts.3
man/man3/mongoc_client_destroy.3
+man/man3/mongoc_client_find_databases_with_opts.3
man/man3/mongoc_client_get_collection.3
man/man3/mongoc_client_get_database.3
man/man3/mongoc_client_get_database_names.3
+man/man3/mongoc_client_get_database_names_with_opts.3
man/man3/mongoc_client_get_default_database.3
man/man3/mongoc_client_get_gridfs.3
man/man3/mongoc_client_get_max_bson_size.3
@@ -199,6 +210,16 @@ man/man3/mongoc_client_pool_try_pop.3
man/man3/mongoc_client_read_command_with_opts.3
man/man3/mongoc_client_read_write_command_with_opts.3
man/man3/mongoc_client_select_server.3
+man/man3/mongoc_client_session_advance_cluster_time.3
+man/man3/mongoc_client_session_advance_operation_time.3
+man/man3/mongoc_client_session_append.3
+man/man3/mongoc_client_session_destroy.3
+man/man3/mongoc_client_session_get_client.3
+man/man3/mongoc_client_session_get_cluster_time.3
+man/man3/mongoc_client_session_get_lsid.3
+man/man3/mongoc_client_session_get_operation_time.3
+man/man3/mongoc_client_session_get_opts.3
+man/man3/mongoc_client_session_t.3
man/man3/mongoc_client_set_apm_callbacks.3
man/man3/mongoc_client_set_appname.3
man/man3/mongoc_client_set_error_api.3
@@ -207,18 +228,23 @@ man/man3/mongoc_client_set_read_prefs.3
man/man3/mongoc_client_set_ssl_opts.3
man/man3/mongoc_client_set_stream_initiator.3
man/man3/mongoc_client_set_write_concern.3
+man/man3/mongoc_client_start_session.3
man/man3/mongoc_client_t.3
man/man3/mongoc_client_write_command_with_opts.3
man/man3/mongoc_collection_aggregate.3
man/man3/mongoc_collection_command.3
man/man3/mongoc_collection_command_simple.3
+man/man3/mongoc_collection_command_with_opts.3
man/man3/mongoc_collection_copy.3
man/man3/mongoc_collection_count.3
man/man3/mongoc_collection_count_with_opts.3
man/man3/mongoc_collection_create_bulk_operation.3
+man/man3/mongoc_collection_create_bulk_operation_with_opts.3
man/man3/mongoc_collection_create_index.3
man/man3/mongoc_collection_create_index_with_opts.3
man/man3/mongoc_collection_delete.3
+man/man3/mongoc_collection_delete_many.3
+man/man3/mongoc_collection_delete_one.3
man/man3/mongoc_collection_destroy.3
man/man3/mongoc_collection_drop.3
man/man3/mongoc_collection_drop_index.3
@@ -229,6 +255,7 @@ man/man3/mongoc_collection_find.3
man/man3/mongoc_collection_find_and_modify.3
man/man3/mongoc_collection_find_and_modify_with_opts.3
man/man3/mongoc_collection_find_indexes.3
+man/man3/mongoc_collection_find_indexes_with_opts.3
man/man3/mongoc_collection_find_with_opts.3
man/man3/mongoc_collection_get_last_error.3
man/man3/mongoc_collection_get_name.3
@@ -237,12 +264,15 @@ man/man3/mongoc_collection_get_read_pref
man/man3/mongoc_collection_get_write_concern.3
man/man3/mongoc_collection_insert.3
man/man3/mongoc_collection_insert_bulk.3
+man/man3/mongoc_collection_insert_many.3
+man/man3/mongoc_collection_insert_one.3
man/man3/mongoc_collection_keys_to_index_string.3
man/man3/mongoc_collection_read_command_with_opts.3
man/man3/mongoc_collection_read_write_command_with_opts.3
man/man3/mongoc_collection_remove.3
man/man3/mongoc_collection_rename.3
man/man3/mongoc_collection_rename_with_opts.3
+man/man3/mongoc_collection_replace_one.3
man/man3/mongoc_collection_save.3
man/man3/mongoc_collection_set_read_concern.3
man/man3/mongoc_collection_set_read_prefs.3
@@ -250,7 +280,10 @@ man/man3/mongoc_collection_set_write_con
man/man3/mongoc_collection_stats.3
man/man3/mongoc_collection_t.3
man/man3/mongoc_collection_update.3
+man/man3/mongoc_collection_update_many.3
+man/man3/mongoc_collection_update_one.3
man/man3/mongoc_collection_validate.3
+man/man3/mongoc_collection_watch.3
man/man3/mongoc_collection_write_command_with_opts.3
man/man3/mongoc_common_task_examples.3
man/man3/mongoc_connection_pooling.3
@@ -279,14 +312,17 @@ man/man3/mongoc_cursors.3
man/man3/mongoc_database_add_user.3
man/man3/mongoc_database_command.3
man/man3/mongoc_database_command_simple.3
+man/man3/mongoc_database_command_with_opts.3
man/man3/mongoc_database_copy.3
man/man3/mongoc_database_create_collection.3
man/man3/mongoc_database_destroy.3
man/man3/mongoc_database_drop.3
man/man3/mongoc_database_drop_with_opts.3
man/man3/mongoc_database_find_collections.3
+man/man3/mongoc_database_find_collections_with_opts.3
man/man3/mongoc_database_get_collection.3
man/man3/mongoc_database_get_collection_names.3
+man/man3/mongoc_database_get_collection_names_with_opts.3
man/man3/mongoc_database_get_name.3
man/man3/mongoc_database_get_read_concern.3
man/man3/mongoc_database_get_read_prefs.3
@@ -426,6 +462,11 @@ man/man3/mongoc_server_description_round
man/man3/mongoc_server_description_t.3
man/man3/mongoc_server_description_type.3
man/man3/mongoc_server_descriptions_destroy_all.3
+man/man3/mongoc_session_opt_t.3
+man/man3/mongoc_session_opts_destroy.3
+man/man3/mongoc_session_opts_get_causal_consistency.3
+man/man3/mongoc_session_opts_new.3
+man/man3/mongoc_session_opts_set_causal_consistency.3
man/man3/mongoc_socket_accept.3
man/man3/mongoc_socket_bind.3
man/man3/mongoc_socket_close.3
@@ -455,7 +496,6 @@ man/man3/mongoc_stream_file_t.3
man/man3/mongoc_stream_flush.3
man/man3/mongoc_stream_get_base_stream.3
man/man3/mongoc_stream_gridfs_new.3
-man/man3/mongoc_stream_gridfs_t.3
man/man3/mongoc_stream_read.3
man/man3/mongoc_stream_readv.3
man/man3/mongoc_stream_setsockopt.3
@@ -492,6 +532,7 @@ man/man3/mongoc_uri_get_read_concern.3
man/man3/mongoc_uri_get_read_prefs.3
man/man3/mongoc_uri_get_read_prefs_t.3
man/man3/mongoc_uri_get_replica_set.3
+man/man3/mongoc_uri_get_service.3
man/man3/mongoc_uri_get_ssl.3
man/man3/mongoc_uri_get_string.3
man/man3/mongoc_uri_get_username.3
Index: pkgsrc/databases/mongo-c-driver/distinfo
diff -u pkgsrc/databases/mongo-c-driver/distinfo:1.28 pkgsrc/databases/mongo-c-driver/distinfo:1.29
--- pkgsrc/databases/mongo-c-driver/distinfo:1.28 Mon Nov 20 16:06:11 2017
+++ pkgsrc/databases/mongo-c-driver/distinfo Tue Jan 2 10:47:52 2018
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.28 2017/11/20 16:06:11 fhajny Exp $
+$NetBSD: distinfo,v 1.29 2018/01/02 10:47:52 fhajny Exp $
-SHA1 (mongo-c-driver-1.8.2.tar.gz) = 17f9a31eb42059c090e0ddd743e812f76f038fb0
-RMD160 (mongo-c-driver-1.8.2.tar.gz) = 8d8954a9d35986c5b6508fff90416d8e76cf2f2c
-SHA512 (mongo-c-driver-1.8.2.tar.gz) = af23601ba33694d80acdb890c1b85a354fda966491c4bbfb341a884bcd6314886e405efa3a09e47398adf8dbfdeb1b05ae8b022a72f04a66265bfaeddb661f76
-Size (mongo-c-driver-1.8.2.tar.gz) = 7308675 bytes
-SHA1 (patch-src_mongoc_mongoc-cursor.c) = 9e0ada19f237972c9671bd90ff656ab9249f694f
+SHA1 (mongo-c-driver-1.9.0.tar.gz) = bb1c4fde8306c474f4971c34cc9955c0843c7ed6
+RMD160 (mongo-c-driver-1.9.0.tar.gz) = 6a7c3d55c9ae2dcf1e825cb462266d2eb6820c9e
+SHA512 (mongo-c-driver-1.9.0.tar.gz) = 9bbada2c03f3f283f66bd67e11b2cd556a721bc98ddbb9aed2d200780992990326dbf97aa9b1636175cf6ac0a6da13874787fc881f3750b07b0e5e622dc8a606
+Size (mongo-c-driver-1.9.0.tar.gz) = 7492996 bytes
+SHA1 (patch-src_mongoc_mongoc-cursor.c) = 0ecd4681b2d6c2e7848e251d6256d79e3ba86209
SHA1 (patch-tests_test-mongoc-stream-tls-error.c) = 457bf0c4692e39955c7cb2988324d386b7975cb5
Index: pkgsrc/databases/mongo-c-driver/patches/patch-src_mongoc_mongoc-cursor.c
diff -u pkgsrc/databases/mongo-c-driver/patches/patch-src_mongoc_mongoc-cursor.c:1.1 pkgsrc/databases/mongo-c-driver/patches/patch-src_mongoc_mongoc-cursor.c:1.2
--- pkgsrc/databases/mongo-c-driver/patches/patch-src_mongoc_mongoc-cursor.c:1.1 Sat Dec 17 14:25:31 2016
+++ pkgsrc/databases/mongo-c-driver/patches/patch-src_mongoc_mongoc-cursor.c Tue Jan 2 10:47:52 2018
@@ -1,9 +1,9 @@
-$NetBSD: patch-src_mongoc_mongoc-cursor.c,v 1.1 2016/12/17 14:25:31 joerg Exp $
+$NetBSD: patch-src_mongoc_mongoc-cursor.c,v 1.2 2018/01/02 10:47:52 fhajny Exp $
MAX/MIN overlap with NetBSD sys/param.h's macros, so make sure to get the
local version defined last.
---- src/mongoc/mongoc-cursor.c.orig 2016-12-17 13:38:09.957899312 +0000
+--- src/mongoc/mongoc-cursor.c.orig 2017-12-20 20:37:31.000000000 +0000
+++ src/mongoc/mongoc-cursor.c
@@ -16,7 +16,6 @@
@@ -13,10 +13,10 @@ local version defined last.
#include "mongoc-client-private.h"
#include "mongoc-counters-private.h"
#include "mongoc-error.h"
-@@ -26,6 +25,7 @@
- #include "mongoc-read-concern-private.h"
+@@ -27,6 +26,7 @@
#include "mongoc-util-private.h"
#include "mongoc-write-concern-private.h"
+ #include "mongoc-read-prefs-private.h"
+#include "mongoc-cursor-private.h"
Home |
Main Index |
Thread Index |
Old Index