-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade vendored mongo-c-driver 1.16.2 (#194)
- Loading branch information
Showing
305 changed files
with
8,608 additions
and
2,297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ | |
^tests/testthat/specifications/source/(?!bson-).*$ | ||
^test.R$ | ||
^gridfs.rmd | ||
^configure.log$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ src/Makevars | |
src/Makevars.bak | ||
inst/doc | ||
windows | ||
configure.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,35 +9,37 @@ matrix: | |
- dist: xenial | ||
services: mongodb | ||
r_check_args: '--run-donttest' | ||
warnings_are_errors: true | ||
- os: osx | ||
brew_packages: openssl | ||
before_install: | ||
- brew unlink python #Python still broken in 2to3 | ||
- brew install mongodb | ||
- brew services start mongodb | ||
- brew tap mongodb/brew | ||
- brew install mongodb-community | ||
- brew services start mongodb-community | ||
r_check_args: '--run-donttest' | ||
warnings_are_errors: false #-Wno-deprecated-declarations | ||
- os: osx | ||
brew_packages: [email protected] | ||
before_install: brew uninstall --ignore-dependencies openssl | ||
env: PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig" | ||
warnings_are_errors: false #-Wno-deprecated-declarations | ||
env: | ||
- PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig" | ||
- MONGOLITE_USE_OPENSSL=1 | ||
- os: osx | ||
brew_packages: libressl | ||
before_install: brew uninstall --ignore-dependencies openssl [email protected] | ||
env: PKG_CONFIG_PATH="/usr/local/opt/libressl/lib/pkgconfig" | ||
warnings_are_errors: false #-Wno-deprecated-declarations | ||
before_install: brew uninstall --ignore-dependencies [email protected] | ||
env: | ||
- PKG_CONFIG_PATH="/usr/local/opt/libressl/lib/pkgconfig" | ||
- MONGOLITE_USE_OPENSSL=1 | ||
- os: osx | ||
osx_image: xcode7.3 | ||
disable_homebrew: true | ||
warnings_are_errors: false #-Wno-deprecated-declarations | ||
before_install: sed -i.bak 's/-isysroot /-I/g' $(R RHOME)/etc/Makeconf | ||
env: MONGOLITE_USE_OPENSSL=1 | ||
- os: osx | ||
osx_image: xcode7.3 | ||
disable_homebrew: true | ||
warnings_are_errors: false #-Wno-deprecated-declarations | ||
before_install: sed -i.bak 's/-isysroot /-I/g' $(R RHOME)/etc/Makeconf | ||
env: MONGOLITE_USE_OPENSSL=1 | ||
|
||
# Ignore warning about -Wno-deprecated-declarations | ||
warnings_are_errors: false | ||
|
||
addons: | ||
apt: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
#' @return Upon success returns a pointer to a collection on the server. | ||
#' The collection can be interfaced using the methods described below. | ||
#' @examples # Connect to demo server | ||
#' con <- mongo("mtcars", url = "mongodb://readwrite:[email protected]:43942/jeroen_test") | ||
#' con <- mongo("mtcars", url = "mongodb://readwrite:[email protected]:43942/jeroen_test?retryWrites=false") | ||
#' if(con$count() > 0) con$drop() | ||
#' con$insert(mtcars) | ||
#' stopifnot(con$count() == nrow(mtcars)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/sh | ||
rm -f src/Makevars | ||
rm -f src/Makevars configure.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Anticonf (tm) script by Jeroen Ooms (2019) | ||
# Anticonf (tm) script by Jeroen Ooms (2020) | ||
# This script will query 'pkg-config' for the required cflags and ldflags. | ||
# If pkg-config is unavailable or does not find the library, try setting | ||
# INCLUDE_DIR and LIB_DIR manually via e.g: | ||
|
@@ -17,9 +17,8 @@ PKG_CONFIG_NAME="openssl" | |
PKG_DEB_NAME="libssl-dev, libsasl2-dev" | ||
PKG_RPM_NAME="openssl-devel, cyrus-sasl-devel" | ||
PKG_CSW_NAME="libssl_dev, sasl_dev" | ||
PKG_BREW_NAME="openssl" | ||
PKG_TEST_1="<openssl/evp.h>" | ||
PKG_TEST_2="<sasl/sasl.h>" | ||
PKG_BREW_NAME="[email protected]" | ||
PKG_TEST_FILE="src/tests/dependencies.c" | ||
SASL_LIBS="-lsasl2" | ||
|
||
# Hack for solaris | ||
|
@@ -77,13 +76,10 @@ CFLAGS=$(${R_HOME}/bin/R CMD config CFLAGS) | |
CPPFLAGS=$(${R_HOME}/bin/R CMD config CPPFLAGS) | ||
|
||
# Test configuration | ||
echo "#include $PKG_TEST_1" | ${CC} ${CPPFLAGS} ${PKG_CFLAGS} ${CFLAGS} -E -xc - >/dev/null 2>&1 || R_CONFIG_ERROR=1; | ||
echo "#include $PKG_TEST_2" | ${CC} ${CPPFLAGS} ${PKG_CFLAGS} ${CFLAGS} -E -xc - >/dev/null 2>&1 || R_CONFIG_ERROR=1; | ||
|
||
# Customize the error | ||
if [ $R_CONFIG_ERROR ]; then | ||
echo "------------------------- ANTICONF ERROR ---------------------------" | ||
echo "Configuration failed because $PKG_CONFIG_NAME/sasl was not found. Try installing:" | ||
${CC} ${CPPFLAGS} ${PKG_CFLAGS} ${CFLAGS} -E ${PKG_TEST_FILE} >/dev/null 2>configure.log | ||
if [ $? -ne 0 ]; then | ||
echo "-----------------------------[ ANTICONF ]-------------------------------" | ||
echo "Configuration failed to find SASL or OpenSSL. Try installing:" | ||
echo " * deb: $PKG_DEB_NAME (Debian, Ubuntu, etc)" | ||
echo " * rpm: $PKG_RPM_NAME (Fedora, CentOS, RHEL)" | ||
echo " * csw: $PKG_CSW_NAME (Solaris)" | ||
|
@@ -92,8 +88,10 @@ if [ $R_CONFIG_ERROR ]; then | |
echo "PATH and PKG_CONFIG_PATH contains a $PKG_CONFIG_NAME.pc file. If pkg-config" | ||
echo "is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:" | ||
echo "R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'" | ||
echo "--------------------------------------------------------------------" | ||
exit 1; | ||
echo "---------------------------[ ERROR MESSAGE ]----------------------------" | ||
cat configure.log | ||
echo "------------------------------------------------------------------------" | ||
exit 1 | ||
fi | ||
|
||
# Feature test for 'sasl_client_done' | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
*/ | ||
|
||
|
||
#include "bson/bson-atomic.h" | ||
#include "bson-atomic.h" | ||
|
||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.