databases/mongodb36: upgrade 3.6.13 -> 3.6.14 with security fixes

PR:		240126
Submitted by:	Ronald Klop <ronald-lists@klop.ws>
Approved by:	dev@dudu.ro (maintainer)
MFH:		2019Q4
Relnotes:	https://docs.mongodb.com/manual/release-notes/3.6/#aug-26-2019
Security:	CVE-2019-2386, CVE-2019-2389, CVE-2019-2390
This commit is contained in:
Kurt Jaeger 2019-10-11 19:31:10 +00:00
parent c0c6aed875
commit 4055b6dac2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=514295
4 changed files with 8 additions and 45 deletions

View file

@ -2,8 +2,7 @@
PORTNAME= mongodb
DISTVERSIONPREFIX= r
DISTVERSION= 3.6.13
PORTREVISION= 2
DISTVERSION= 3.6.14
CATEGORIES= databases net
MASTER_SITES= https://fastdl.mongodb.org/src/ \
http://fastdl.mongodb.org/src/ \
@ -18,7 +17,7 @@ COMMENT= Distributed document-oriented "NoSQL" database
LICENSE= AGPLv3 APACHE20
LICENSE_COMB= multi
ONLY_FOR_ARCHS= amd64 aarch64
ONLY_FOR_ARCHS= aarch64 amd64
ONLY_FOR_ARCHS_REASON= "Only supported on amd64 and aarch64 (i386 deprecated in v3)"
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah>=2.4.4:devel/py-cheetah@${PY_FLAVOR} \
@ -28,12 +27,12 @@ LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libpcre.so:devel/pcre \
libsnappy.so:archivers/snappy
CONFLICTS_BUILD= mongo-cxx-driver
CONFLICTS_INSTALL= mongodb34 mongodb40
USES= compiler:c++14-lang cpe python:2.7,build scons shebangfix
USE_RC_SUBR= mongod
CONFLICTS_BUILD= mongo-cxx-driver
CONFLICTS_INSTALL= mongodb34 mongodb40
SHEBANG_FILES= src/mongo/installer/compass/install_compass.in
python_OLD_CMD= @python_interpreter@
MAKE_ARGS= --prefix=${STAGEDIR}${PREFIX} \

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1562087330
SHA256 (mongodb-src-r3.6.13.tar.gz) = e4f1ea19dd22446d0348dde39fd229f8cae759d75a06509be43a2f5517997bd5
SIZE (mongodb-src-r3.6.13.tar.gz) = 40853787
TIMESTAMP = 1566830350
SHA256 (mongodb-src-r3.6.14.tar.gz) = 728436ae694693810a9bfb8ec25f3a66c7bb029c69a5dad70199924e3f3e581e
SIZE (mongodb-src-r3.6.14.tar.gz) = 40895581

View file

@ -1,25 +0,0 @@
In file included from src/third_party/yaml-cpp-0.5.3/src/nodebuilder.cpp:5:
In file included from src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/node.h:14:
In file included from src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/node_ref.h:13:
In file included from src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/node_data.h:20:
In file included from src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/iterator.h:13:
src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/iterator.h:48:54: error: no member named 'next' in namespace 'boost'
void increment() { this->base_reference() = boost::next(this->base()); }
~~~~~~~^
--- src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/iterator.h.orig 2018-02-16 21:50:58 UTC
+++ src/third_party/yaml-cpp-0.5.3/include/yaml-cpp/node/detail/iterator.h
@@ -11,7 +11,13 @@
#include "yaml-cpp/node/ptr.h"
#include "yaml-cpp/node/detail/node_iterator.h"
#include <boost/iterator/iterator_adaptor.hpp>
+
+#include <boost/version.hpp>
+#if BOOST_VERSION < 106700
#include <boost/utility.hpp>
+#else
+#include <boost/next_prior.hpp>
+#endif
namespace YAML {
namespace detail {

View file

@ -1,11 +0,0 @@
--- src/mongo/util/time_support.cpp.orig 2018-04-19 11:21:07 UTC
+++ src/mongo/util/time_support.cpp
@@ -933,7 +933,7 @@ private:
// Find minimum timer resolution of OS
Nanoseconds getMinimumTimerResolution() {
Nanoseconds minTimerResolution;
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
struct timespec tp;
clock_getres(CLOCK_REALTIME, &tp);
minTimerResolution = Nanoseconds{tp.tv_nsec};