Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=gcc6.git;a=commitdiff;h=fa858d382a6214c2f8896346d81ea95bee9e0290
commit fa858d382a6214c2f8896346d81ea95bee9e0290 Author: crazy <[email protected]> Date: Sun Sep 25 15:05:46 2016 +0200 mongodb-3.2.9-1-x86_64 * Version bump * duh what a crappy app.. * added pathes to fix LD/C/CXX host flags * added patches for scons itself * fix for boost >=1.6x.x * fix for broken unit test using mixed gnu++11 / c++11 code ( weird ) diff --git a/source/apps-extra/mongodb/FrugalBuild b/source/apps-extra/mongodb/FrugalBuild index e6bdc35..64001e3 100644 --- a/source/apps-extra/mongodb/FrugalBuild +++ b/source/apps-extra/mongodb/FrugalBuild @@ -2,18 +2,21 @@ # Maintainer: boobaa <[email protected]> pkgname=mongodb -pkgver=3.2.6 +pkgver=3.2.9 pkgrel=1 pkgdesc="A scalable, high-performance, open source NoSQL database" url="http://www.mongodb.org" up2date="lynx -dump $url/downloads | grep src- -m1 | sed 's/.*-src-r\(.*\)\.tar.*/\1/'" groups=('apps-extra') archs=('i686' 'x86_64') -depends=('libstdc++' 'openssl' 'pcre' 'zlib' 'yaml-cpp' 'snappy' 'libboost' 'libpcap') -makedepends+=('scons' 'boost') -source=(http://downloads.mongodb.org/src/mongodb-src-r$pkgver.tar.gz boost.patch) -sha1sums=('9619cedfdc3219232639e519a9128cdf4fa7c40c' \ - '229f469533249e30e525482a17b69ed355bd2667') +depends=('libstdc++>=6.2.1-5' 'openssl>=1.0.2-9' 'pcre' 'zlib' 'yaml-cpp' 'snappy' 'libboost>=1.61.0' 'libpcap') +makedepends+=('scons' 'boost>=1.61.0') +source=(http://downloads.mongodb.org/src/mongodb-src-r$pkgver.tar.gz \ + boost.patch mongodb-3.2.4-boost-1.60.patch mongodb-3.2.0-fix-scons.patch) +sha1sums=('22b702cd8e18ef1d6ae5fefecef9e39ca0b26549' \ + '229f469533249e30e525482a17b69ed355bd2667' \ + '49d64e83ede6c9d5765bfbc2ab172b8fe946480d' \ + 'e3d5011c899b1e37e15c09442cdd6ba8864b1cfd') options+=('static') ## TODO: - some default conf ? @@ -25,9 +28,16 @@ build() ### F*** this scons Fcd $pkgname-src-r$pkgver Fpatchall + ## this is gnu++11 code while rest is c++11 .. ofc won't compile + sed -i 's|ASSERT_PARSES(double, "0xabcab.defdefP-10", 0xabcab.defdefP-10);||' src/mongo/base/parse_number_test.cpp || Fdie export SCONSFLAGS="$MAKEFLAGS" - OPT="--disable-warnings-as-errors --ssl --use-system-zlib --use-system-pcre \ - --use-system-yaml --use-system-snappy --use-system-boost" + OPT="--disable-warnings-as-errors \ + --ssl --use-system-zlib \ + --use-system-pcre \ + --use-system-yaml \ + --use-system-snappy \ + --use-system-boost \ + --experimental-decimal-support=off" if [ "$CARCH" == "i686" ]; then ## 32bit won't compile with this on diff --git a/source/apps-extra/mongodb/mongodb-3.2.0-fix-scons.patch b/source/apps-extra/mongodb/mongodb-3.2.0-fix-scons.patch new file mode 100644 index 0000000..8b29bd4 --- /dev/null +++ b/source/apps-extra/mongodb/mongodb-3.2.0-fix-scons.patch @@ -0,0 +1,49 @@ +From ab6f929ee4584f3f1a040e55a63f493603f228d2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <[email protected]> +Date: Fri, 1 Jan 2016 10:27:35 +0100 +Subject: [PATCH] Fix build for Gentoo + +--- + SConstruct | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/SConstruct b/SConstruct +index 64c8387..fa9ab8b 100644 +--- a/SConstruct ++++ b/SConstruct +@@ -1371,7 +1371,6 @@ if env.TargetOSIs('posix'): + env.Append( CCFLAGS=["-fno-omit-frame-pointer", + "-fPIC", + "-fno-strict-aliasing", +- "-ggdb", + "-pthread", + "-Wall", + "-Wsign-compare", +@@ -1382,8 +1381,9 @@ if env.TargetOSIs('posix'): + if not has_option("disable-warnings-as-errors"): + env.Append( CCFLAGS=["-Werror"] ) + +- env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] ) + env.Append( LINKFLAGS=["-fPIC", "-pthread"] ) ++ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] ) ++ env.Append( LINKFLAGS=os.environ['LDFLAGS'] ) + + # SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program + # startup. +@@ -1398,10 +1398,10 @@ if env.TargetOSIs('posix'): + env.Append( SHLINKFLAGS=["-Wl,-z,now"] ) + env.Append( LINKFLAGS=["-rdynamic"] ) + +- env.Append( LIBS=[] ) ++ env.Append( LIBS=['pcre', 'pcrecpp', 'snappy', 'yaml-cpp'] ) + +- #make scons colorgcc friendly +- for key in ('HOME', 'TERM'): ++ #make scons colorgcc, distcc, ccache friendly ++ for key in ('HOME', 'PATH', 'TERM'): + try: + env['ENV'][key] = os.environ[key] + except KeyError: +-- +2.6.4 + diff --git a/source/apps-extra/mongodb/mongodb-3.2.4-boost-1.60.patch b/source/apps-extra/mongodb/mongodb-3.2.4-boost-1.60.patch new file mode 100644 index 0000000..41c9bd2 --- /dev/null +++ b/source/apps-extra/mongodb/mongodb-3.2.4-boost-1.60.patch @@ -0,0 +1,84 @@ +Fix issues caused by boost::none changes. +See also: https://bugs.gentoo.org/show_bug.cgi?id=578846 +Adapted from: https://github.com/mongodb/mongo/commit/92c3f80f384d2825efeabd0d26aa534c0deb6988 + +--- mongodb-src-r3.2.4/src/mongo/db/ftdc/compressor.cpp ++++ mongodb-src-r3.2.4/src/mongo/db/ftdc/compressor.cpp +@@ -47,7 +47,7 @@ + if (_referenceDoc.isEmpty()) { + FTDCBSONUtil::extractMetricsFromDocument(sample, sample, &_metrics); + _reset(sample, date); +- return {boost::none_t()}; ++ return {boost::none}; + } + + _metrics.resize(0); +@@ -107,7 +107,7 @@ + } + + // The buffer is not full, inform the caller +- return {boost::none_t()}; ++ return {boost::none}; + } + + StatusWith<std::tuple<ConstDataRange, Date_t>> FTDCCompressor::getCompressedSamples() { +--- mongodb-src-r3.2.4/src/mongo/db/ftdc/compressor_test.cpp ++++ mongodb-src-r3.2.4/src/mongo/db/ftdc/compressor_test.cpp +@@ -122,7 +122,7 @@ + TestTie() : _compressor(&_config) {} + + ~TestTie() { +- validate(boost::none_t()); ++ validate(boost::none); + } + + StatusWith<boost::optional<std::tuple<ConstDataRange, FTDCCompressor::CompressorState, Date_t>>> +--- mongodb-src-r3.2.4/src/mongo/db/ftdc/file_writer.cpp ++++ mongodb-src-r3.2.4/src/mongo/db/ftdc/file_writer.cpp +@@ -205,7 +205,7 @@ + + Status FTDCFileWriter::close() { + if (_archiveStream.is_open()) { +- Status s = flush(boost::none_t(), Date_t()); ++ Status s = flush(boost::none, Date_t()); + + _archiveStream.close(); + +--- mongodb-src-r3.2.4/src/mongo/util/concurrency/shared_mutex_win.hpp ++++ mongodb-src-r3.2.4/src/mongo/util/concurrency/shared_mutex_win.hpp +@@ -175,7 +175,7 @@ + return true; + } + +- unsigned long const res=detail::win32::WaitForSingleObject(unlock_sem,::boost::detail::get_milliseconds_until(wait_until)); ++ unsigned long const res=WaitForSingleObject(unlock_sem,::boost::detail::get_milliseconds_until(wait_until)); + if(res==detail::win32::timeout) + { + for(;;) +@@ -328,7 +328,7 @@ + { + return true; + } +- unsigned long const wait_res=detail::win32::WaitForMultipleObjects(2,semaphores,true,::boost::detail::get_milliseconds_until(wait_until)); ++ unsigned long const wait_res=WaitForMultipleObjects(2,semaphores,true,::boost::detail::get_milliseconds_until(wait_until)); + if(wait_res==detail::win32::timeout) + { + for(;;) +@@ -421,7 +421,7 @@ + return; + } + +- BOOST_VERIFY(!detail::win32::WaitForSingleObject(unlock_sem,detail::win32::infinite)); ++ BOOST_VERIFY(!WaitForSingleObject(unlock_sem,detail::win32::infinite)); + } + } + +@@ -502,7 +502,7 @@ + { + if(!last_reader) + { +- BOOST_VERIFY(!detail::win32::WaitForSingleObject(upgrade_sem,detail::win32::infinite)); ++ BOOST_VERIFY(!WaitForSingleObject(upgrade_sem,detail::win32::infinite)); + } + break; + } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
