dev-db/mongodb: Allow for building against boost 1.62
authorDavid Seifert <soap@gentoo.org>
Fri, 21 Oct 2016 18:48:10 +0000 (20:48 +0200)
committerDavid Seifert <soap@gentoo.org>
Fri, 21 Oct 2016 18:49:57 +0000 (20:49 +0200)
Gentoo-bug: 596222
* Add missing SLOT for libressl dependency

Package-Manager: portage-2.3.2

dev-db/mongodb/files/mongodb-3.2.10-boost-1.62.patch [new file with mode: 0644]
dev-db/mongodb/mongodb-3.2.10.ebuild

diff --git a/dev-db/mongodb/files/mongodb-3.2.10-boost-1.62.patch b/dev-db/mongodb/files/mongodb-3.2.10-boost-1.62.patch
new file mode 100644 (file)
index 0000000..30a3bdf
--- /dev/null
@@ -0,0 +1,15 @@
+Derived from http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/databases/mongodb/patches/patch-src_mongo_db_fts_unicode_string.cpp v1.1
+
+* Fix build with boost 1.62.0
+
+--- a/src/mongo/db/fts/unicode/string.cpp      2016-09-26 12:10:04.000000000 +0000
++++ b/src/mongo/db/fts/unicode/string.cpp
+@@ -274,7 +274,7 @@ bool String::substrMatch(const std::stri
+ 
+     // Case sensitive and diacritic sensitive.
+     return boost::algorithm::boyer_moore_search(
+-               haystack.begin(), haystack.end(), needle.begin(), needle.end()) != haystack.end();
++               haystack.begin(), haystack.end(), needle.begin(), needle.end()) != std::make_pair(haystack.end(), haystack.end());
+ }
+ 
+ }  // namespace unicode
index 15b346cad3be5addd48c33cab29ec1f2cbf148e6..00c9f2a9eb0e0d06cdd57ca5e7fd62de32300438 100644 (file)
@@ -31,7 +31,7 @@ RDEPEND=">=app-arch/snappy-1.1.2
        mms-agent? ( app-admin/mms-agent )
        ssl? (
                !libressl? ( >=dev-libs/openssl-1.0.1g:0= )
-               libressl? ( dev-libs/libressl:= )
+               libressl? ( dev-libs/libressl:0= )
        )"
 DEPEND="${RDEPEND}
        >=sys-devel/gcc-4.8.2:*
@@ -101,8 +101,10 @@ pkg_setup() {
 }
 
 src_prepare() {
-       epatch "${FILESDIR}/${PN}-3.2.0-fix-scons.patch" \
-               "${FILESDIR}/${PN}-3.2.4-boost-1.60.patch"
+       epatch \
+               "${FILESDIR}/${PN}-3.2.0-fix-scons.patch" \
+               "${FILESDIR}/${PN}-3.2.4-boost-1.60.patch" \
+               "${FILESDIR}/${PN}-3.2.10-boost-1.62.patch"
        epatch_user
 }