Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540460 - dev-db/mongodb-3.0.0 version bump
Summary: dev-db/mongodb-3.0.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on: 526114 536688
Blocks:
  Show dependency tree
 
Reported: 2015-02-18 10:09 UTC by Tomáš Mózes
Modified: 2015-03-17 13:47 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mongo-tools-3.0.0_rc9.ebuild (mongo-tools-3.0.0_rc9.ebuild,838 bytes, text/plain)
2015-02-18 10:10 UTC, Tomáš Mózes
Details
mongo-tools-3.0.0-build.patch (mongo-tools-3.0.0-build.patch,527 bytes, patch)
2015-02-18 10:10 UTC, Tomáš Mózes
Details | Diff
mongodb-3.0.0_rc8.ebuild (mongodb-3.0.0_rc8.ebuild,4.43 KB, text/plain)
2015-02-18 10:13 UTC, Tomáš Mózes
Details
mongodb.conf-r3 (mongodb.conf-r3,722 bytes, text/plain)
2015-02-18 10:14 UTC, Tomáš Mózes
Details
mongodb-3.0.0-fix-scons.patch (mongodb-3.0.0-fix-scons.patch,1.77 KB, patch)
2015-02-18 10:17 UTC, Tomáš Mózes
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2015-02-18 10:09:07 UTC
MongoDB 3 is about to be released, here is an ebuild for rc8. The tools (mongodump, mongoimport...) are now in separate repo:
https://github.com/mongodb/mongo-tools/

Currently being tested on amd64:
[ebuild   R   ~] dev-db/mongo-tools-3.0.0_rc9::hydra  USE="-sasl -ssl" 0 KiB
[ebuild   R   ~] dev-db/mongodb-3.0.0_rc8::hydra  USE="tools -debug -kerberos -mms-agent -ssl -static-libs" 0 KiB

With go (mongo-tools are in go) it takes:
real    9m52.245s
user    64m56.914s
sys     9m18.545s

60M     /var/tmp/portage/dev-db/mongo-tools-3.0.0_rc9
450M    /var/tmp/portage/dev-db/mongodb-3.0.0_rc8

When using target "all" with building, temp grew to ~20GB.
Comment 1 Tomáš Mózes 2015-02-18 10:10:03 UTC
Created attachment 396806 [details]
mongo-tools-3.0.0_rc9.ebuild
Comment 2 Tomáš Mózes 2015-02-18 10:10:40 UTC
Created attachment 396808 [details, diff]
mongo-tools-3.0.0-build.patch
Comment 3 Tomáš Mózes 2015-02-18 10:13:28 UTC
$ diff -u /usr/portage/dev-db/mongodb/mongodb-2.6.7.ebuild mongodb-3.0.0_rc8.ebuild 
--- /usr/portage/dev-db/mongodb/mongodb-2.6.7.ebuild    2015-02-15 15:31:04.000000000 +0100
+++ mongodb-3.0.0_rc8.ebuild    2015-02-18 10:43:02.000000000 +0100
@@ -19,8 +18,8 @@
 
 LICENSE="AGPL-3 Apache-2.0"
 SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="debug kerberos mms-agent ssl static-libs"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug kerberos mms-agent ssl static-libs +tools"
 
 PDEPEND="mms-agent? ( dev-python/pymongo app-arch/unzip )"
 RDEPEND="
@@ -31,7 +30,8 @@
        dev-libs/snowball-stemmer
        dev-util/google-perftools[-minimal]
        net-libs/libpcap
-       ssl? ( >=dev-libs/openssl-1.0.1g )"
+       ssl? ( >=dev-libs/openssl-1.0.1g )
+       tools? ( >=dev-db/mongo-tools-${PV} )"
 DEPEND="${RDEPEND}
        sys-libs/ncurses
        sys-libs/readline
@@ -51,7 +51,6 @@
        scons_opts+=" --use-system-stemmer"
        scons_opts+=" --use-system-tcmalloc"
        scons_opts+=" --use-system-yaml"
-       scons_opts+=" --usev8"
 
        if use debug; then
                scons_opts+=" --dbg=on"
@@ -72,25 +71,15 @@
 }
 
 src_prepare() {
-       epatch "${FILESDIR}/${PN}-2.6.2-fix-scons.patch"
-       epatch "${FILESDIR}/${PN}-2.4-fix-v8-pythonpath.patch"
-
-       # fix yaml-cpp detection
-       sed -i -e "s/\[\"yaml\"\]/\[\"yaml-cpp\"\]/" SConstruct || die
-
-       # bug #462606
-       sed -i -e "s@\$INSTALL_DIR/lib@\$INSTALL_DIR/$(get_libdir)@g" src/SConscript.client || die
-
-       # bug #482576
-       sed -i -e "/-Werror/d" src/third_party/v8/SConscript || die
+       epatch "${FILESDIR}/${PN}-3.0.0-fix-scons.patch"
 }
 
 src_compile() {
-       escons ${scons_opts} all
+       escons ${scons_opts} core tools
 }
 src_install() {
-       escons ${scons_opts} --full --nostrip install --prefix="${ED}"/usr
+       escons ${scons_opts} --nostrip install --prefix="${ED}"/usr
 
        use static-libs || find "${ED}"/usr/ -type f -name "*.a" -delete
 
@@ -108,7 +97,7 @@
        newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s}
 
        insinto /etc
-       newins "${FILESDIR}/${PN}.conf-r2" ${PN}.conf
+       newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
        newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf
 
        systemd_dounit "${FILESDIR}/${PN}.service"
@@ -149,7 +138,7 @@
 }
 
 pkg_postinst() {
-       if [[ ${REPLACING_VERSIONS} < 2.6 ]]; then
+       if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then
                ewarn "!! IMPORTANT !!"
                ewarn " "
                ewarn "${PN} configuration files have changed !"
@@ -158,7 +147,12 @@
                ewarn "  http://docs.mongodb.org/manual/reference/configuration-options/"
                ewarn " "
                ewarn "Make sure you also follow the upgrading process :"
-               ewarn "  http://docs.mongodb.org/master/release-notes/2.6-upgrade/"
+               ewarn "  http://docs.mongodb.org/master/release-notes/3.0-upgrade/"
+               ewarn " "
+               ewarn "MongoDB 3.0 introduces the WiredTiger storage engine."
+               ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it."
+               ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf"
+               ewarn "  http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger"
                ewarn " "
                if use mms-agent; then
                        ewarn "MMS Agent configuration file has been moved to :"
Comment 4 Tomáš Mózes 2015-02-18 10:13:54 UTC
Created attachment 396810 [details]
mongodb-3.0.0_rc8.ebuild
Comment 5 Tomáš Mózes 2015-02-18 10:14:30 UTC
$ diff -u mongodb.conf-r2 mongodb.conf-r3
--- mongodb.conf-r2     2015-02-18 08:35:48.000000000 +0100
+++ mongodb.conf-r3     2015-02-18 08:44:09.000000000 +0100
@@ -5,6 +5,7 @@
 
 storage:
     dbPath: "/var/lib/mongodb"
+    #engine: wiredTiger
 
 systemLog:
     destination: file
@@ -15,8 +16,8 @@
 net:
     port: 27017
     bindIp: 127.0.0.1
-    ssl:
-        mode: disabled
+    #ssl:
+    #    mode: disabled
 
 #security:
     #keyFile:
Comment 6 Tomáš Mózes 2015-02-18 10:14:50 UTC
Created attachment 396812 [details]
mongodb.conf-r3
Comment 7 Tomáš Mózes 2015-02-18 10:17:08 UTC
$ diff -u mongodb-2.6.2-fix-scons.patch mongodb-3.0.0-fix-scons.patch 
--- mongodb-2.6.2-fix-scons.patch       2015-02-18 07:48:41.000000000 +0100
+++ mongodb-3.0.0-fix-scons.patch       2015-02-18 09:46:59.000000000 +0100
@@ -1,6 +1,6 @@
---- a/SConstruct       2014-06-16 19:32:46.274507258 +0200
-+++ b/SConstruct       2014-06-16 19:34:04.763586829 +0200
-@@ -813,7 +813,6 @@
+--- SConstruct.orig    2015-02-05 16:33:41.000000000 +0000
++++ SConstruct 2015-02-18 08:21:23.120134258 +0000
+@@ -1008,7 +1008,6 @@
      # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
      env.Append( CCFLAGS=["-fPIC",
                           "-fno-strict-aliasing",
@@ -8,7 +8,7 @@
                           "-pthread",
                           "-Wall",
                           "-Wsign-compare",
-@@ -821,13 +820,13 @@
+@@ -1016,13 +1015,13 @@
                           "-Winvalid-pch"] )
      # env.Append( " -Wconversion" ) TODO: this doesn't really work yet
      if linux or darwin:
@@ -24,7 +24,7 @@
  
      # SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
      # startup.
-@@ -844,7 +843,7 @@
+@@ -1039,7 +1038,7 @@
      if not darwin:
          env.Append( LINKFLAGS=["-rdynamic"] )
  
@@ -33,3 +33,15 @@
  
      #make scons colorgcc friendly
      for key in ('HOME', 'TERM'):
+@@ -1053,11 +1052,6 @@
+         env.Append( CPPDEFINES=["MONGO_GCOV"] )
+         env.Append( LINKFLAGS=" -fprofile-arcs -ftest-coverage " )
+ 
+-    if optBuild:
+-        env.Append( CCFLAGS=["-O3"] )
+-    else:
+-        env.Append( CCFLAGS=["-O0"] )
+-
+     if debugBuild:
+         if not optBuild:
+             env.Append( CCFLAGS=["-fstack-protector"] )
Comment 8 Tomáš Mózes 2015-02-18 10:17:21 UTC
Created attachment 396814 [details, diff]
mongodb-3.0.0-fix-scons.patch
Comment 9 Ultrabug gentoo-dev 2015-02-25 14:25:10 UTC
Hi Tomas, thanks for your help, it's really appreciated.

I started trying to build mongo-tools and get :

# github.com/spacemonkeygo/openssl
vendor/src/github.com/spacemonkeygo/openssl/hostname.c:349:5: error: conflicting types for ‘X509_check_host’
 int X509_check_host(X509 *x, const unsigned char *chk, size_t chklen,
     ^
In file included from vendor/src/github.com/spacemonkeygo/openssl/hostname.c:73:0:
/usr/include/openssl/x509v3.h:741:5: note: previous declaration of ‘X509_check_host’ was here
 int X509_check_host(X509 *x, const char *chk, size_t chklen,
     ^
vendor/src/github.com/spacemonkeygo/openssl/hostname.c:355:5: error: conflicting types for ‘X509_check_email’
 int X509_check_email(X509 *x, const unsigned char *chk, size_t chklen,
     ^
In file included from vendor/src/github.com/spacemonkeygo/openssl/hostname.c:73:0:
/usr/include/openssl/x509v3.h:743:5: note: previous declaration of ‘X509_check_email’ was here
 int X509_check_email(X509 *x, const char *chk, size_t chklen,

What version of go and openssl are you running plz ?
Comment 10 Tomáš Mózes 2015-02-25 16:46:14 UTC
[ebuild   R   ] dev-libs/openssl-1.0.1k  USE="tls-heartbeat zlib -bindist -gmp -kerberos -rfc3779 -static-libs {-test} -vanilla" ABI_X86="(64) (-32) (-x32)" CPU_FLAGS_X86="(sse2)"
[ebuild   R   ] dev-lang/go-1.4.1

Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.14.31-gentoo x86_64)
=================================================================
System uname: Linux-3.14.31-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630_0_@_2.30GHz-with-gentoo-2.2
KiB Mem:    50185548 total,  16273804 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 20 Feb 2015 12:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.9
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo hydra
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/ http://gentoo.wheel.sk/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/hydra"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv libav mmx modules multilib ncurses nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 11 Ultrabug gentoo-dev 2015-03-02 11:59:13 UTC
(In reply to Tomas Mozes from comment #10)
> [ebuild   R   ] dev-libs/openssl-1.0.1k  USE="tls-heartbeat zlib -bindist
> -gmp -kerberos -rfc3779 -static-libs {-test} -vanilla" ABI_X86="(64) (-32)
> (-x32)" CPU_FLAGS_X86="(sse2)"
> [ebuild   R   ] dev-lang/go-1.4.1

Ok another stupid bundled lib problem, I opened an issue for this. I'll have to limit the openssl version in the ebuild for now.

https://github.com/mongodb/mongo-tools/issues/11
Comment 12 Ultrabug gentoo-dev 2015-03-02 12:06:13 UTC
Also Tomas, I hesitate between app-admin/mongo-tools and dev-db/mongo-tools [1].

There will also be app-admin/mms-monitoring-agent so app-admin sounds more adequate, what do you think ?

[1] http://www.ultrabug.fr/mongodb-2-6-8-2-4-13-the-upcoming-3-0-0/
Comment 13 Tomáš Mózes 2015-03-02 12:29:38 UTC
(In reply to Ultrabug from comment #11)
> (In reply to Tomas Mozes from comment #10)
> > [ebuild   R   ] dev-libs/openssl-1.0.1k  USE="tls-heartbeat zlib -bindist
> > -gmp -kerberos -rfc3779 -static-libs {-test} -vanilla" ABI_X86="(64) (-32)
> > (-x32)" CPU_FLAGS_X86="(sse2)"
> > [ebuild   R   ] dev-lang/go-1.4.1
> 
> Ok another stupid bundled lib problem, I opened an issue for this. I'll have
> to limit the openssl version in the ebuild for now.
> 
> https://github.com/mongodb/mongo-tools/issues/11

Strange, I just tested on a machine with 1.0.2-r1, how come?
Comment 14 Tomáš Mózes 2015-03-02 12:30:09 UTC
(In reply to Ultrabug from comment #12)
> Also Tomas, I hesitate between app-admin/mongo-tools and dev-db/mongo-tools
> [1].
> 
> There will also be app-admin/mms-monitoring-agent so app-admin sounds more
> adequate, what do you think ?
> 
> [1] http://www.ultrabug.fr/mongodb-2-6-8-2-4-13-the-upcoming-3-0-0/

Yes, I agree, app-admin/mongo-tools will be better.
Comment 15 Ultrabug gentoo-dev 2015-03-02 12:33:49 UTC
(In reply to Tomas Mozes from comment #13)
> (In reply to Ultrabug from comment #11)
> > (In reply to Tomas Mozes from comment #10)
> > > [ebuild   R   ] dev-libs/openssl-1.0.1k  USE="tls-heartbeat zlib -bindist
> > > -gmp -kerberos -rfc3779 -static-libs {-test} -vanilla" ABI_X86="(64) (-32)
> > > (-x32)" CPU_FLAGS_X86="(sse2)"
> > > [ebuild   R   ] dev-lang/go-1.4.1
> > 
> > Ok another stupid bundled lib problem, I opened an issue for this. I'll have
> > to limit the openssl version in the ebuild for now.
> > 
> > https://github.com/mongodb/mongo-tools/issues/11
> 
> Strange, I just tested on a machine with 1.0.2-r1, how come?

How come what sorry ? You got it working with 1.0.2 openssl ?

(In reply to Tomas Mozes from comment #14)
> (In reply to Ultrabug from comment #12)
> > Also Tomas, I hesitate between app-admin/mongo-tools and dev-db/mongo-tools
> > [1].
> > 
> > There will also be app-admin/mms-monitoring-agent so app-admin sounds more
> > adequate, what do you think ?
> > 
> > [1] http://www.ultrabug.fr/mongodb-2-6-8-2-4-13-the-upcoming-3-0-0/
> 
> Yes, I agree, app-admin/mongo-tools will be better.

Ok thanks
Comment 16 Tomáš Mózes 2015-03-02 14:19:18 UTC
(In reply to Ultrabug from comment #15)
> (In reply to Tomas Mozes from comment #13)
> > (In reply to Ultrabug from comment #11)
> > > (In reply to Tomas Mozes from comment #10)
> > > > [ebuild   R   ] dev-libs/openssl-1.0.1k  USE="tls-heartbeat zlib -bindist
> > > > -gmp -kerberos -rfc3779 -static-libs {-test} -vanilla" ABI_X86="(64) (-32)
> > > > (-x32)" CPU_FLAGS_X86="(sse2)"
> > > > [ebuild   R   ] dev-lang/go-1.4.1
> > > 
> > > Ok another stupid bundled lib problem, I opened an issue for this. I'll have
> > > to limit the openssl version in the ebuild for now.
> > > 
> > > https://github.com/mongodb/mongo-tools/issues/11
> > 
> > Strange, I just tested on a machine with 1.0.2-r1, how come?
> 
> How come what sorry ? You got it working with 1.0.2 openssl ?

Sorry, my fault, forgot to add "ssl" tag when building. You are right, it does NOT build with openssl 1.0.2 (also tested the latest mongo-tools 3.0.0).
Comment 17 Ultrabug gentoo-dev 2015-03-02 14:25:48 UTC
(In reply to Tomas Mozes from comment #16)
> Sorry, my fault, forgot to add "ssl" tag when building. You are right, it
> does NOT build with openssl 1.0.2 (also tested the latest mongo-tools 3.0.0).

Had me worried for a few minutes ;)

Ok, I'm glad to say that all the relevant ebuilds are now on my overlay for testing.

Overlay : ultrabug (on layman)
Packages :
  - dev-db/mongodb
  - app-admin/mongo-tools
  - app-admin/mms-agent

I would appreciate your feedback please mate.

I'm also making this bug dependent on bug #536688 because your scons patch removes the -O3 and I'm still not convinced we should do it.

Finally, I'm also making this bug dependent on bug #526114 because we should come to a decision wrt flag filtering/optimization.
Comment 18 Tomáš Mózes 2015-03-03 07:56:19 UTC
(In reply to Ultrabug from comment #17)
> Ok, I'm glad to say that all the relevant ebuilds are now on my overlay for
> testing.
> 
> Overlay : ultrabug (on layman)
> Packages :
>   - dev-db/mongodb
>   - app-admin/mongo-tools
>   - app-admin/mms-agent
> 
> I would appreciate your feedback please mate.
> 
> I'm also making this bug dependent on bug #536688 because your scons patch
> removes the -O3 and I'm still not convinced we should do it.
> 
> Finally, I'm also making this bug dependent on bug #526114 because we should
> come to a decision wrt flag filtering/optimization.

Works fine for new installations. However, I just realised that the upgrade is a bit problematic because of mongo-tools splitting.

Upgrading from 2.6 to 3.0 yields and error about overwriting the tools that were part of dev-db/mongodb.
Comment 19 Ultrabug gentoo-dev 2015-03-03 15:29:03 UTC
(In reply to Tomas Mozes from comment #18)
> (In reply to Ultrabug from comment #17)
> Works fine for new installations. However, I just realised that the upgrade
> is a bit problematic because of mongo-tools splitting.
> 
> Upgrading from 2.6 to 3.0 yields and error about overwriting the tools that
> were part of dev-db/mongodb.

Okay I've fixed this using PDEPEND on the tools USE flag ;)

MongoDB 3.0.0 is out, I've bumped all the ebuilds ! We're closing in mate :)
Comment 20 Tomáš Mózes 2015-03-03 16:53:13 UTC
Great ;)

If possible, I would appreciate keeping 2.4 around for a while... The latest release would suffice.
Comment 21 Ultrabug gentoo-dev 2015-03-04 09:34:11 UTC
(In reply to Ultrabug from comment #11)
> (In reply to Tomas Mozes from comment #10)
> > [ebuild   R   ] dev-libs/openssl-1.0.1k  USE="tls-heartbeat zlib -bindist
> > -gmp -kerberos -rfc3779 -static-libs {-test} -vanilla" ABI_X86="(64) (-32)
> > (-x32)" CPU_FLAGS_X86="(sse2)"
> > [ebuild   R   ] dev-lang/go-1.4.1
> 
> Ok another stupid bundled lib problem, I opened an issue for this. I'll have
> to limit the openssl version in the ebuild for now.
> 
> https://github.com/mongodb/mongo-tools/issues/11

FYI fixed upstream, I asked for a tag to avoid openssl downgrades for users.

https://github.com/mongodb/mongo-tools/issues/11#issuecomment-77021900
Comment 22 Ultrabug gentoo-dev 2015-03-04 09:34:26 UTC
(In reply to Tomas Mozes from comment #20)
> Great ;)
> 
> If possible, I would appreciate keeping 2.4 around for a while... The latest
> release would suffice.

Ok mate, I will.
Comment 23 Tomáš Mózes 2015-03-04 10:54:59 UTC
Great news, I'm glad!
Comment 24 es 2015-03-09 11:47:25 UTC
Hello, when 3.0 will be available in main portage three?
Comment 25 Ultrabug gentoo-dev 2015-03-09 12:33:51 UTC
(In reply to es from comment #24)
> Hello, when 3.0 will be available in main portage three?

I still need to close the dependent bugs (see bug details), I guess I should be able to do it by wednesday.
Comment 26 Ultrabug gentoo-dev 2015-03-10 21:53:27 UTC
(In reply to Ultrabug from comment #21)
> (In reply to Ultrabug from comment #11)
> > (In reply to Tomas Mozes from comment #10)
> > > [ebuild   R   ] dev-libs/openssl-1.0.1k  USE="tls-heartbeat zlib -bindist
> > > -gmp -kerberos -rfc3779 -static-libs {-test} -vanilla" ABI_X86="(64) (-32)
> > > (-x32)" CPU_FLAGS_X86="(sse2)"
> > > [ebuild   R   ] dev-lang/go-1.4.1
> > 
> > Ok another stupid bundled lib problem, I opened an issue for this. I'll have
> > to limit the openssl version in the ebuild for now.
> > 
> > https://github.com/mongodb/mongo-tools/issues/11
> 
> FYI fixed upstream, I asked for a tag to avoid openssl downgrades for users.
> 
> https://github.com/mongodb/mongo-tools/issues/11#issuecomment-77021900

FYI tagged upstream, so I'll release mongodb without the openssl blocker, yay!

https://github.com/mongodb/mongo-tools/issues/11#issuecomment-78150075
Comment 27 es 2015-03-10 21:57:11 UTC
Great news!)
Comment 28 Tomáš Mózes 2015-03-12 07:32:44 UTC
Release 3.0 seems pretty stable so far. We've deployed it on a new project (since rc8) with the new WiredTiger engine and with about 70 milion objects it haven't crashed yet. 

The compression level is very nice:
size 	22.14g
storageSize 	8.71g
Comment 29 Ultrabug gentoo-dev 2015-03-12 18:08:13 UTC
(In reply to Tomas Mozes from comment #28)
> Release 3.0 seems pretty stable so far. We've deployed it on a new project
> (since rc8) with the new WiredTiger engine and with about 70 milion objects
> it haven't crashed yet. 
> 
> The compression level is very nice:
> size 	22.14g
> storageSize 	8.71g

Thanks for reporting back mate, FYI 3.0.1 (rc0) is on my overlay, please give it a try since I modified some stuff wrt bug #536688 and #526114
Comment 30 Tomáš Mózes 2015-03-17 07:24:53 UTC
3.0.1 is out, tried with your ebuild, builds with OpenSSL 1.0.2-r2 (~amd64) and also on amd64.
Comment 31 Ultrabug gentoo-dev 2015-03-17 11:55:10 UTC
(In reply to Tomas Mozes from comment #30)
> 3.0.1 is out, tried with your ebuild, builds with OpenSSL 1.0.2-r2 (~amd64)
> and also on amd64.

Yes, I've update the ebuild in my overlay. I've dropped the useless static-libs USE flag and added a rebuild trigger on openssl dep.

I've also added the ~amd64 and ~x86 keywords now because I think I'll merge this work in portage today (this morning I closed the mongo-cxx-driver request bug)

I'll read up again the remaining bugs to make sure I'm not forgetting anything.
Comment 32 Ultrabug gentoo-dev 2015-03-17 13:47:18 UTC
It's in tree now, hurrah ! A big thank you Tomas :)

+*mongodb-3.0.1 (17 Mar 2015)
+
+  17 Mar 2015; Ultrabug <ultrabug@gentoo.org> +mongodb-3.0.1.ebuild,
+  +files/mongodb-3.0.0-fix-scons.patch, +files/mongodb.conf-r3, metadata.xml:
+  version bump, fix #540460
+


Release post : http://www.ultrabug.fr/mongodb-3-0-1/