pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/mongo-c-driver Update databases/mongo-c-driv...
details: https://anonhg.NetBSD.org/pkgsrc/rev/46fc8320abcf
branches: trunk
changeset: 355670:46fc8320abcf
user: fhajny <fhajny%pkgsrc.org@localhost>
date: Fri Dec 09 13:54:21 2016 +0000
description:
Update databases/mongo-c-driver to 1.5.0.
New features and bug fixes:
- MongoDB 3.4 Support
- New URI and read preference option, "maxStalenessSeconds"
- Set MongoDB client handshake data with mongoc_client_set_appname or
mongoc_client_pool_set_appname.
- writeConcern and readConcern enhancements.
- Collation allows users to specify language-specific rules for string
comparison when sorting documents.
- mongoc_collection_count_with_opts uses the collection's read
preference if none is passed in
- Improved TLS support
- Fixed LibreSSL (libssl) support
- Added LibreSSL (libtls) support
- Fixed Secure Channel build on VS 2010
- OpenSSL now supports SNI (all others already do)
- Additional features for Application Performance Monitoring
- New functions accept flexible options as a BSON document.
- mongoc_collection_find is now deprecated in favor of
mongoc_collection_find_with_opts.
- New helper function to include read concern in one of the above
function's options parameter: mongoc_read_concern_append.
- mongoc_client_command no longer applies the client's read preference
and read concern by default. Same change for mongoc_database_command
and mongoc_collection_command.
- mongoc_collection_count_with_opts now applies the collection's read
preference if no read preference is provided
- mongoc_collection_create_index and mongoc_collection_drop_index now
apply the collection's write concern.
- mongoc_collection_create_index_with_opts now applies the collection's
write concern if none is specified in "opts"
- connectTimeoutMS timer now begins after DNS resolution, and resets for
each interface attempted (e.g., if the driver first tries IPv6, then
IPv4).
- New error code MONGOC_ERROR_DUPLICATE_KEY.
- mongoc_collection_find no longer treats the "filter" key specially in
queries - querying for a document with a key named "filter" is the
same now as any other key.
- The server description parameter to the following functions is
"const":
- mongoc_server_description_host
- mongoc_server_description_id
- mongoc_server_description_ismaster
- mongoc_server_description_round_trip_time
- mongoc_server_description_type
- Exported symbols are no longer declared in seperate export files.
- mongoc no longer crashes when multi roundtrip bulk operation fails.
- Added support for the new readConcernLevel "linearizable".
- Clients now check for misformatted "readPreferenceTags" in URI.
- New CMake option ENABLE_TRACING allows debug output, which before had
only been available with "configure --enable-tracing".
- Bugfix: "PossiblePrimary"-type replicas could be selected for reads
- Bugfixes: The random number generator used to select servers is now
properly seeded, and secondary queries are now properly distributed
according to localThresholdMS, not just to the lowest-latency secondary.
The latency estimate is reset after a connection error.
- Fix crashes in mongoc_topology_invalidate_server and
mongoc_client_kill_cursor.
- mongoc_collection_insert, mongoc_collection_update,
mongoc_collection_remove consistently use domain MONGOC_ERROR_BSON,
code MONGOC_ERROR_BSON_INVALID if passed oversized BSON, and
MONGOC_ERROR_COLLECTION for other errors. mongoc_bulk_operation_execute
continues to use MONGOC_ERROR_COMMAND for all errors.
- If mongoc_client_pool_t fails to start its scanner thread in the
background, it logs and aborts instead of silently continuing, then
failing to connect.
- The driver now updates its view of the whole topology with information
from each new connection handshake.
- Improved error reporting when the driver fails to reach the server,
and correctly distinguish "connection error" and "connection timeout".
Deprecations:
- mongoc_collection_find is deprecated for
mongoc_collection_find_with_opts.
Removed configure flags:
- --enable-experimental has been removed. All previously experimental
features are now always on.
- The configure option "--enable-hardening" had had no effect. It is
removed in favor of system-wide compiler configuration.
diffstat:
databases/mongo-c-driver/Makefile | 17 ++--
databases/mongo-c-driver/PLIST | 151 +++++++++++++++++++------------------
databases/mongo-c-driver/distinfo | 10 +-
3 files changed, 93 insertions(+), 85 deletions(-)
diffs (truncated from 416 to 300 lines):
diff -r 4763ae2f7396 -r 46fc8320abcf databases/mongo-c-driver/Makefile
--- a/databases/mongo-c-driver/Makefile Fri Dec 09 13:05:27 2016 +0000
+++ b/databases/mongo-c-driver/Makefile Fri Dec 09 13:54:21 2016 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.20 2016/10/02 09:31:47 fhajny Exp $
+# $NetBSD: Makefile,v 1.21 2016/12/09 13:54:21 fhajny Exp $
-DISTNAME= mongo-c-driver-1.4.2
+DISTNAME= mongo-c-driver-1.5.0
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GITHUB:=mongodb/}
@@ -20,18 +20,19 @@
USE_LIBTOOL= yes
USE_TOOLS+= gmake pkg-config
-CHECK_PORTABILITY_SKIP+= src/libbson/configure
-CONFIGURE_ARGS+= --with-libbson=system
+CONFIGURE_ARGS+= --enable-man-pages=yes
+CONFIGURE_ARGS+= --with-libbson=system
PKGCONFIG_OVERRIDE+= src/libmongoc-1.0.pc.in
PKGCONFIG_OVERRIDE+= src/libmongoc-ssl-1.0.pc.in
INSTALLATION_DIRS+= ${PKGMANDIR}/man3
-post-install:
- ${INSTALL_MAN} ${WRKSRC}/doc/man/mongoc*.3 \
- ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
+# Test behaves incosistently
+#TEST_MAKE_FLAGS+= MONGOC_TEST_SKIP_LIVE=on
+#TEST_TARGET= check
-BUILDLINK_API_DEPENDS.libbson+= libbson>=1.4.2
+# libbson and mongo-c-driver released are tied
+BUILDLINK_API_DEPENDS.libbson+= libbson>=${PKGVERSION_NOREV}
.include "../../devel/libbson/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 4763ae2f7396 -r 46fc8320abcf databases/mongo-c-driver/PLIST
--- a/databases/mongo-c-driver/PLIST Fri Dec 09 13:05:27 2016 +0000
+++ b/databases/mongo-c-driver/PLIST Fri Dec 09 13:54:21 2016 +0000
@@ -1,111 +1,49 @@
-@comment $NetBSD: PLIST,v 1.10 2016/09/05 08:43:10 fhajny Exp $
+@comment $NetBSD: PLIST,v 1.11 2016/12/09 13:54:21 fhajny Exp $
bin/mongoc-stat
-include/libmongoc-1.0/mongoc-apm-private.h
include/libmongoc-1.0/mongoc-apm.h
-include/libmongoc-1.0/mongoc-array-private.h
-include/libmongoc-1.0/mongoc-async-cmd-private.h
-include/libmongoc-1.0/mongoc-async-private.h
-include/libmongoc-1.0/mongoc-b64-private.h
-include/libmongoc-1.0/mongoc-buffer-private.h
-include/libmongoc-1.0/mongoc-bulk-operation-private.h
include/libmongoc-1.0/mongoc-bulk-operation.h
-include/libmongoc-1.0/mongoc-client-pool-private.h
include/libmongoc-1.0/mongoc-client-pool.h
-include/libmongoc-1.0/mongoc-client-private.h
include/libmongoc-1.0/mongoc-client.h
-include/libmongoc-1.0/mongoc-cluster-private.h
-include/libmongoc-1.0/mongoc-collection-private.h
include/libmongoc-1.0/mongoc-collection.h
include/libmongoc-1.0/mongoc-config.h
-include/libmongoc-1.0/mongoc-counters-private.h
include/libmongoc-1.0/mongoc-counters.defs
-${PLIST.ssl}include/libmongoc-1.0/mongoc-crypto-cng-private.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-crypto-common-crypto-private.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-crypto-openssl-private.h
-include/libmongoc-1.0/mongoc-crypto-private.h
-include/libmongoc-1.0/mongoc-cursor-array-private.h
-include/libmongoc-1.0/mongoc-cursor-cursorid-private.h
-include/libmongoc-1.0/mongoc-cursor-private.h
-include/libmongoc-1.0/mongoc-cursor-transform-private.h
include/libmongoc-1.0/mongoc-cursor.h
-include/libmongoc-1.0/mongoc-database-private.h
include/libmongoc-1.0/mongoc-database.h
-include/libmongoc-1.0/mongoc-errno-private.h
include/libmongoc-1.0/mongoc-error.h
-include/libmongoc-1.0/mongoc-find-and-modify-private.h
include/libmongoc-1.0/mongoc-find-and-modify.h
include/libmongoc-1.0/mongoc-flags.h
-include/libmongoc-1.0/mongoc-gridfs-file-list-private.h
include/libmongoc-1.0/mongoc-gridfs-file-list.h
-include/libmongoc-1.0/mongoc-gridfs-file-page-private.h
include/libmongoc-1.0/mongoc-gridfs-file-page.h
-include/libmongoc-1.0/mongoc-gridfs-file-private.h
include/libmongoc-1.0/mongoc-gridfs-file.h
-include/libmongoc-1.0/mongoc-gridfs-private.h
include/libmongoc-1.0/mongoc-gridfs.h
-include/libmongoc-1.0/mongoc-host-list-private.h
+include/libmongoc-1.0/mongoc-handshake.h
include/libmongoc-1.0/mongoc-host-list.h
include/libmongoc-1.0/mongoc-index.h
include/libmongoc-1.0/mongoc-init.h
include/libmongoc-1.0/mongoc-iovec.h
-include/libmongoc-1.0/mongoc-list-private.h
-include/libmongoc-1.0/mongoc-log-private.h
include/libmongoc-1.0/mongoc-log.h
-include/libmongoc-1.0/mongoc-matcher-op-private.h
-include/libmongoc-1.0/mongoc-matcher-private.h
include/libmongoc-1.0/mongoc-matcher.h
-include/libmongoc-1.0/mongoc-memcmp-private.h
-include/libmongoc-1.0/mongoc-opcode-private.h
include/libmongoc-1.0/mongoc-opcode.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-openssl-private.h
-include/libmongoc-1.0/mongoc-queue-private.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-rand-private.h
${PLIST.ssl}include/libmongoc-1.0/mongoc-rand.h
-include/libmongoc-1.0/mongoc-read-concern-private.h
include/libmongoc-1.0/mongoc-read-concern.h
-include/libmongoc-1.0/mongoc-read-prefs-private.h
include/libmongoc-1.0/mongoc-read-prefs.h
-include/libmongoc-1.0/mongoc-rpc-private.h
-include/libmongoc-1.0/mongoc-sasl-private.h
-include/libmongoc-1.0/mongoc-scram-private.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-secure-channel-private.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-secure-transport-private.h
-include/libmongoc-1.0/mongoc-server-description-private.h
include/libmongoc-1.0/mongoc-server-description.h
-include/libmongoc-1.0/mongoc-server-stream-private.h
-include/libmongoc-1.0/mongoc-set-private.h
-include/libmongoc-1.0/mongoc-socket-private.h
include/libmongoc-1.0/mongoc-socket.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-ssl-private.h
${PLIST.ssl}include/libmongoc-1.0/mongoc-ssl.h
include/libmongoc-1.0/mongoc-stream-buffered.h
include/libmongoc-1.0/mongoc-stream-file.h
include/libmongoc-1.0/mongoc-stream-gridfs.h
-include/libmongoc-1.0/mongoc-stream-private.h
include/libmongoc-1.0/mongoc-stream-socket.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-stream-tls-openssl-bio-private.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-stream-tls-openssl-private.h
+${PLIST.ssl}include/libmongoc-1.0/mongoc-stream-tls-libressl.h
${PLIST.ssl}include/libmongoc-1.0/mongoc-stream-tls-openssl.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-stream-tls-private.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-stream-tls-secure-channel-private.h
${PLIST.ssl}include/libmongoc-1.0/mongoc-stream-tls-secure-channel.h
-${PLIST.ssl}include/libmongoc-1.0/mongoc-stream-tls-secure-transport-private.h
${PLIST.ssl}include/libmongoc-1.0/mongoc-stream-tls-secure-transport.h
${PLIST.ssl}include/libmongoc-1.0/mongoc-stream-tls.h
include/libmongoc-1.0/mongoc-stream.h
-include/libmongoc-1.0/mongoc-thread-private.h
-include/libmongoc-1.0/mongoc-topology-description-private.h
-include/libmongoc-1.0/mongoc-topology-private.h
-include/libmongoc-1.0/mongoc-topology-scanner-private.h
-include/libmongoc-1.0/mongoc-trace-private.h
-include/libmongoc-1.0/mongoc-trace.h
-include/libmongoc-1.0/mongoc-uri-private.h
+include/libmongoc-1.0/mongoc-topology-description.h
include/libmongoc-1.0/mongoc-uri.h
-include/libmongoc-1.0/mongoc-util-private.h
include/libmongoc-1.0/mongoc-version-functions.h
include/libmongoc-1.0/mongoc-version.h
-include/libmongoc-1.0/mongoc-write-command-private.h
-include/libmongoc-1.0/mongoc-write-concern-private.h
include/libmongoc-1.0/mongoc-write-concern.h
include/libmongoc-1.0/mongoc.h
include/libmongoc-1.0/op-delete.def
@@ -131,32 +69,70 @@
man/man3/mongoc_apm_command_failed_get_context.3
man/man3/mongoc_apm_command_failed_get_duration.3
man/man3/mongoc_apm_command_failed_get_error.3
-man/man3/mongoc_apm_command_failed_get_hint.3
man/man3/mongoc_apm_command_failed_get_host.3
man/man3/mongoc_apm_command_failed_get_operation_id.3
man/man3/mongoc_apm_command_failed_get_request_id.3
+man/man3/mongoc_apm_command_failed_get_server_id.3
man/man3/mongoc_apm_command_failed_t.3
man/man3/mongoc_apm_command_started_get_command.3
man/man3/mongoc_apm_command_started_get_command_name.3
man/man3/mongoc_apm_command_started_get_context.3
man/man3/mongoc_apm_command_started_get_database_name.3
-man/man3/mongoc_apm_command_started_get_hint.3
man/man3/mongoc_apm_command_started_get_host.3
man/man3/mongoc_apm_command_started_get_operation_id.3
man/man3/mongoc_apm_command_started_get_request_id.3
+man/man3/mongoc_apm_command_started_get_server_id.3
man/man3/mongoc_apm_command_started_t.3
man/man3/mongoc_apm_command_succeeded_get_command_name.3
man/man3/mongoc_apm_command_succeeded_get_context.3
man/man3/mongoc_apm_command_succeeded_get_duration.3
-man/man3/mongoc_apm_command_succeeded_get_hint.3
man/man3/mongoc_apm_command_succeeded_get_host.3
man/man3/mongoc_apm_command_succeeded_get_operation_id.3
man/man3/mongoc_apm_command_succeeded_get_reply.3
man/man3/mongoc_apm_command_succeeded_get_request_id.3
+man/man3/mongoc_apm_command_succeeded_get_server_id.3
man/man3/mongoc_apm_command_succeeded_t.3
+man/man3/mongoc_apm_server_changed_get_context.3
+man/man3/mongoc_apm_server_changed_get_host.3
+man/man3/mongoc_apm_server_changed_get_new_description.3
+man/man3/mongoc_apm_server_changed_get_previous_description.3
+man/man3/mongoc_apm_server_changed_get_topology_id.3
+man/man3/mongoc_apm_server_changed_t.3
+man/man3/mongoc_apm_server_closed_get_context.3
+man/man3/mongoc_apm_server_closed_get_host.3
+man/man3/mongoc_apm_server_closed_get_topology_id.3
+man/man3/mongoc_apm_server_closed_t.3
+man/man3/mongoc_apm_server_heartbeat_failed_get_context.3
+man/man3/mongoc_apm_server_heartbeat_failed_get_duration.3
+man/man3/mongoc_apm_server_heartbeat_failed_get_error.3
+man/man3/mongoc_apm_server_heartbeat_failed_get_host.3
+man/man3/mongoc_apm_server_heartbeat_failed_t.3
+man/man3/mongoc_apm_server_heartbeat_started_get_context.3
+man/man3/mongoc_apm_server_heartbeat_started_get_host.3
+man/man3/mongoc_apm_server_heartbeat_started_t.3
+man/man3/mongoc_apm_server_heartbeat_succeeded_get_context.3
+man/man3/mongoc_apm_server_heartbeat_succeeded_get_duration.3
+man/man3/mongoc_apm_server_heartbeat_succeeded_get_host.3
+man/man3/mongoc_apm_server_heartbeat_succeeded_get_reply.3
+man/man3/mongoc_apm_server_heartbeat_succeeded_t.3
+man/man3/mongoc_apm_server_opening_get_context.3
+man/man3/mongoc_apm_server_opening_get_host.3
+man/man3/mongoc_apm_server_opening_get_topology_id.3
+man/man3/mongoc_apm_server_opening_t.3
man/man3/mongoc_apm_set_command_failed_cb.3
man/man3/mongoc_apm_set_command_started_cb.3
man/man3/mongoc_apm_set_command_succeeded_cb.3
+man/man3/mongoc_apm_topology_changed_get_context.3
+man/man3/mongoc_apm_topology_changed_get_new_description.3
+man/man3/mongoc_apm_topology_changed_get_previous_description.3
+man/man3/mongoc_apm_topology_changed_get_topology_id.3
+man/man3/mongoc_apm_topology_changed_t.3
+man/man3/mongoc_apm_topology_closed_get_context.3
+man/man3/mongoc_apm_topology_closed_get_topology_id.3
+man/man3/mongoc_apm_topology_closed_t.3
+man/man3/mongoc_apm_topology_opening_get_context.3
+man/man3/mongoc_apm_topology_opening_get_topology_id.3
+man/man3/mongoc_apm_topology_opening_t.3
man/man3/mongoc_application_performance_monitoring.3
man/man3/mongoc_authentication.3
man/man3/mongoc_basic_aggregate.3
@@ -170,13 +146,18 @@
man/man3/mongoc_bulk_operation_get_write_concern.3
man/man3/mongoc_bulk_operation_insert.3
man/man3/mongoc_bulk_operation_remove.3
+man/man3/mongoc_bulk_operation_remove_many_with_opts.3
man/man3/mongoc_bulk_operation_remove_one.3
+man/man3/mongoc_bulk_operation_remove_one_with_opts.3
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_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_check_version.3
man/man3/mongoc_cleanup.3
man/man3/mongoc_client_command.3
@@ -206,12 +187,16 @@
man/man3/mongoc_client_pool_pop.3
man/man3/mongoc_client_pool_push.3
man/man3/mongoc_client_pool_set_apm_callbacks.3
+man/man3/mongoc_client_pool_set_appname.3
man/man3/mongoc_client_pool_set_error_api.3
man/man3/mongoc_client_pool_set_ssl_opts.3
man/man3/mongoc_client_pool_t.3
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_set_apm_callbacks.3
+man/man3/mongoc_client_set_appname.3
man/man3/mongoc_client_set_error_api.3
man/man3/mongoc_client_set_read_concern.3
man/man3/mongoc_client_set_read_prefs.3
@@ -219,6 +204,7 @@
man/man3/mongoc_client_set_stream_initiator.3
man/man3/mongoc_client_set_write_concern.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
@@ -227,15 +213,19 @@
man/man3/mongoc_collection_count_with_opts.3
man/man3/mongoc_collection_create_bulk_operation.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_destroy.3
man/man3/mongoc_collection_drop.3
man/man3/mongoc_collection_drop_index.3
+man/man3/mongoc_collection_drop_index_with_opts.3
+man/man3/mongoc_collection_drop_with_opts.3
man/man3/mongoc_collection_ensure_index.3
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_with_opts.3
man/man3/mongoc_collection_get_last_error.3
man/man3/mongoc_collection_get_name.3
man/man3/mongoc_collection_get_read_concern.3
@@ -244,8 +234,11 @@
man/man3/mongoc_collection_insert.3
man/man3/mongoc_collection_insert_bulk.3
man/man3/mongoc_collection_keys_to_index_string.3
+man/man3/mongoc_collection_read_command_with_opts.3
Home |
Main Index |
Thread Index |
Old Index