Import of pkgsrc-2015Q3

This commit is contained in:
2016-01-21 23:42:40 +01:00
committed by sambuc
parent f641581404
commit 9d819b6d54
7578 changed files with 228313 additions and 80017 deletions
+7 -5
View File
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.3 2015/06/23 13:31:24 ryoon Exp $
# $NetBSD: Makefile,v 1.7 2015/08/26 05:03:00 fhajny Exp $
DISTNAME= mongodb-src-r3.0.4
DISTNAME= mongodb-src-r3.0.6
PKGNAME= ${DISTNAME:S/src-r//:S/-rc/rc/}
CATEGORIES= databases
MASTER_SITES= http://fastdl.mongodb.org/src/
@@ -15,8 +15,6 @@ USE_LANGUAGES= c c++
BUILD_DEPENDS+= scons-[0-9]*:../../devel/scons
GCC_REQD+= 4.8.2
SCONS_BIN= ${PREFIX}/bin/scons
SCONS_ARGS= ${_MAKE_JOBS}
SCONS_ARGS+= --c++11=on
@@ -30,8 +28,12 @@ SCONS_ARGS+= --js-engine=v8-3.25
# Avoid Argument list too long from mongod linking
SCONS_ARGS+= --variant-dir=pkgsrc
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet supported as of 3.0.4
.include "../../mk/bsd.prefs.mk"
GCC_REQD+= 4.8.2
.if ${MACHINE_ARCH} == "x86_64"
SCONS_ARGS+= --64
.else
@@ -121,7 +123,7 @@ post-install:
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/boost-python/buildlink3.mk"
.include "../../devel/py-boost/buildlink3.mk"
.include "../../devel/libexecinfo/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/snappy/buildlink3.mk"
+8 -7
View File
@@ -1,17 +1,18 @@
$NetBSD: distinfo,v 1.3 2015/06/23 13:31:24 ryoon Exp $
$NetBSD: distinfo,v 1.7 2015/09/08 07:48:19 fhajny Exp $
SHA1 (mongodb-src-r3.0.4.tar.gz) = 5df86eabb1631dfb3cd29a1424f7c65f70277e58
RMD160 (mongodb-src-r3.0.4.tar.gz) = e67ad3559cbe1c2ee56ed4f5b33cf1901c0b76c2
Size (mongodb-src-r3.0.4.tar.gz) = 26615962 bytes
SHA1 (mongodb-src-r3.0.6.tar.gz) = b80acf2cd63b3bce27d860581ce17a3aad2b8ea8
RMD160 (mongodb-src-r3.0.6.tar.gz) = 3e3dc920c0790826b54d02e5a82faace48da9e9f
Size (mongodb-src-r3.0.6.tar.gz) = 26241944 bytes
SHA1 (patch-SConstruct) = 71f06ac82474f81a6b1b6660cd9e23cd5a63d55f
SHA1 (patch-debian_mongod.conf) = 35f3d7e7da4f573458bef0fe742c1790adec8200
SHA1 (patch-src_mongo_base_initializer.h) = add32c5940c922a98122d0e6883eb3ad52dc25c5
SHA1 (patch-src_mongo_db_repl_isself.c) = 93001bf0616c0fd64ac5e7ea03113885671540b0
SHA1 (patch-src_mongo_platform_random.cpp) = ab275e90347a9d2e767f031df4e56a204647ddfe
SHA1 (patch-src_mongo_shell_linenoise__utf8.h) = d505c22aeeee09b482bf3d3a6bd0cdc45c9ec0bc
SHA1 (patch-src_mongo_db_repl_isself.c) = c27e7ac0f19158eff9d5bf59d5d07835ab222bc4
SHA1 (patch-src_mongo_platform_random.cpp) = 4e962e0ffdcbd80956bacebfcb052cb25508d4ca
SHA1 (patch-src_mongo_shell_linenoise__utf8.h) = 2d18e46cb63313e6fb09714e0662c98347f4f74e
SHA1 (patch-src_mongo_util_intrusive__counter.h) = d242db05708c999bd19f2751bdc881db50ea81f0
SHA1 (patch-src_third__party_s2_base_port.h) = 8e715efbfcacaba51d957c21aa32ccfd3cc4f736
SHA1 (patch-src_third__party_v8-3.25_SConscript) = a8da59130c36b2be3b89498ba0b23b1c7c9ab9e6
SHA1 (patch-src_third__party_v8-3.25_src_platform-posix.cc) = 2fa27016a9af828d1c01815739770918a2d53d16
SHA1 (patch-src_third__party_v8-3.25_src_platform_semaphore.cc) = 92447c13b379eeb4d9f8bac9455d78d54b4f9e32
SHA1 (patch-src_third__party_wiredtiger_SConscript) = b9ed24d0c05e812d66941f94a77cf4c91f55d43b
SHA1 (patch-src_third__party_wiredtiger_build__netbsd_wiredtiger__config.h) = e41064c0ff7268efc795782312ff413295cbcba7
@@ -1,19 +1,19 @@
$NetBSD: patch-src_mongo_db_repl_isself.c,v 1.1 2015/05/02 08:10:33 ryoon Exp $
$NetBSD: patch-src_mongo_db_repl_isself.c,v 1.2 2015/08/26 05:03:00 fhajny Exp $
* Add NetBSD support.
--- src/mongo/db/repl/isself.cpp.orig 2015-04-08 20:28:08.000000000 +0000
--- src/mongo/db/repl/isself.cpp.orig 2015-08-24 00:39:52.000000000 +0000
+++ src/mongo/db/repl/isself.cpp
@@ -47,7 +47,7 @@
#include "mongo/util/scopeguard.h"
@@ -48,7 +48,7 @@
#include "mongo/util/log.h"
-#if defined(__linux__) || defined(__APPLE__) || defined(__freebsd__) || defined(__sunos__) || defined(__openbsd__)
+#if defined(__linux__) || defined(__APPLE__) || defined(__freebsd__) || defined(__sunos__) || defined(__openbsd__) || defined(__netbsd__)
#if defined(__linux__) || defined(__APPLE__) || defined(__freebsd__) || defined(__sunos__) || \
- defined(__openbsd__)
+ defined(__openbsd__) || defined(__netbsd__)
#define FASTPATH_UNIX 1
#endif
@@ -60,7 +60,7 @@
@@ -61,7 +61,7 @@
#include <ifaddrs.h>
#include <netdb.h>
@@ -1,14 +1,14 @@
$NetBSD: patch-src_mongo_platform_random.cpp,v 1.1 2015/05/02 08:10:33 ryoon Exp $
$NetBSD: patch-src_mongo_platform_random.cpp,v 1.2 2015/08/26 05:03:00 fhajny Exp $
Add NetBSD support.
--- src/mongo/platform/random.cpp.orig 2015-04-08 20:28:08.000000000 +0000
--- src/mongo/platform/random.cpp.orig 2015-08-24 00:39:52.000000000 +0000
+++ src/mongo/platform/random.cpp
@@ -117,7 +117,7 @@ namespace mongo {
return new WinSecureRandom();
}
@@ -116,7 +116,7 @@ SecureRandom* SecureRandom::create() {
return new WinSecureRandom();
}
-#elif defined(__linux__) || defined(__sunos__) || defined(__APPLE__) || defined(__freebsd__)
+#elif defined(__linux__) || defined(__sunos__) || defined(__APPLE__) || defined(__freebsd__) || defined(__netbsd__)
class InputStreamSecureRandom : public SecureRandom {
public:
class InputStreamSecureRandom : public SecureRandom {
public:
@@ -1,7 +1,7 @@
$NetBSD: patch-src_mongo_shell_linenoise__utf8.h,v 1.1 2015/05/02 08:10:33 ryoon Exp $
$NetBSD: patch-src_mongo_shell_linenoise__utf8.h,v 1.2 2015/08/26 05:03:00 fhajny Exp $
Use Boost swap instead of std. Fixes build on SunOS.
--- src/mongo/shell/linenoise_utf8.h.orig 2015-04-08 20:28:08.000000000 +0000
--- src/mongo/shell/linenoise_utf8.h.orig 2015-08-24 00:39:52.000000000 +0000
+++ src/mongo/shell/linenoise_utf8.h
@@ -27,6 +27,7 @@
* then also delete it in the license file.
@@ -11,16 +11,16 @@ Use Boost swap instead of std. Fixes build on SunOS.
#include <boost/smart_ptr/scoped_array.hpp>
#include <algorithm>
#include <string.h>
@@ -155,9 +156,9 @@ struct UtfStringMixin {
size_t chars() const { return _chars; }
@@ -173,9 +174,9 @@ struct UtfStringMixin {
}
void swap( UtfStringMixin& other ) {
- std::swap( _len, other._len );
- std::swap( _cap, other._cap );
- std::swap( _chars, other._chars );
+ boost::swap( _len, other._len );
+ boost::swap( _cap, other._cap );
+ boost::swap( _chars, other._chars );
_str.swap( other._str );
void swap(UtfStringMixin& other) {
- std::swap(_len, other._len);
- std::swap(_cap, other._cap);
- std::swap(_chars, other._chars);
+ boost::swap(_len, other._len);
+ boost::swap(_cap, other._cap);
+ boost::swap(_chars, other._chars);
_str.swap(other._str);
}
@@ -0,0 +1,48 @@
$NetBSD: patch-src_third__party_v8-3.25_src_platform_semaphore.cc,v 1.2 2015/09/08 07:48:19 fhajny Exp $
Work around lack of sem_timedwait(3) in NetBSD < 6.99.4.
Adapted from d4f11c0cf476dd854eaebec1cbacb1afc7bea18e of the Chromium V8 sources.
--- src/third_party/v8-3.25/src/platform/semaphore.cc.orig 2015-08-24 00:39:52.000000000 +0000
+++ src/third_party/v8-3.25/src/platform/semaphore.cc
@@ -32,9 +32,14 @@
#include <mach/task.h>
#endif
+#if V8_OS_NETBSD
+#include <sys/param.h> // for __NetBSD_Version__
+#endif
+
#include <errno.h>
#include "checks.h"
+#include "platform/elapsed-timer.h"
#include "platform/time.h"
namespace v8 {
@@ -129,6 +134,17 @@ void Semaphore::Wait() {
bool Semaphore::WaitFor(const TimeDelta& rel_time) {
+#if V8_OS_NACL || (V8_OS_NETBSD && __NetBSD_Version__ - 0 < 699000400)
+ // PNaCL and older NetBSD doesn't support sem_timedwait, do ugly busy waiting.
+ ElapsedTimer timer;
+ timer.Start();
+ do {
+ int result = sem_trywait(&native_handle_);
+ if (result == 0) return true;
+ ASSERT(errno == EAGAIN || errno == EINTR);
+ } while (!timer.HasExpired(rel_time));
+ return false;
+#else
// Compute the time for end of timeout.
const Time time = Time::NowFromSystemTime() + rel_time;
const struct timespec ts = time.ToTimespec();
@@ -152,6 +168,7 @@ bool Semaphore::WaitFor(const TimeDelta&
ASSERT_EQ(-1, result);
ASSERT_EQ(EINTR, errno);
}
+#endif
}
#elif V8_OS_WIN