Bug 205510 - [NEW PORT] databases/mongodb32 + databases/mongodb32-tools: MongoDB nosql database
Summary: [NEW PORT] databases/mongodb32 + databases/mongodb32-tools: MongoDB nosql dat...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Sivachenko
URL:
Keywords: feature, needs-patch, patch, patch-ready
Depends on:
Blocks:
 
Reported: 2015-12-22 14:01 UTC by Brendan Molloy
Modified: 2016-01-23 14:38 UTC (History)
6 users (show)

See Also:


Attachments
databases/mongodb32 patch (7.58 KB, patch)
2015-12-22 14:01 UTC, Brendan Molloy
no flags Details | Diff
mongodb32-tools shar (5.06 KB, text/plain)
2016-01-04 14:02 UTC, Brendan Molloy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brendan Molloy 2015-12-22 14:01:17 UTC
Created attachment 164494 [details]
databases/mongodb32 patch

Based loosely on the MongoDB 2.6 port, this provides MongoDB 3.2 plus the now separate MongoDB tools. The tools have been rewritten in Go, and are provided separately to the core distribution.

It is also worth noting that with 3.6, i386 is a deprecated architecture as per MongoDB release documents.

Looking forward to your feedback.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2015-12-23 05:52:14 UTC
Nice work Brendan! Can you include the addition of the two ports to the databases/Makefile please

Thank yoU!
Comment 2 Šimun Mikecin 2015-12-30 00:46:34 UTC
Attachment for the mongodb32-tools port is missing.
Could you please send an attachment for the mongodb32-tools port?
Thank you.
Comment 3 Dmitry Sivachenko freebsd_committer freebsd_triage 2016-01-03 12:40:50 UTC
I'll take it.
1) As already noted, you forgot to attach a port for mongodb32-tools
2) Why separate port?  Is 3.2 version incompatible with 2.6 currently in ports?
Comment 4 Šimun Mikecin 2016-01-03 12:48:37 UTC
I think there is no real reason for this to be a separate port from version 2.6 currently in ports, because there is no feature regression with this version.
But the tools (databases/mongodb32-tools) were part of the databases/mongodb port in the version 2.6 that is currently in the ports, so tools must be added to ports collection.
btw. license is AGPL3, not dual any more because C++ driver is separated in version 3.2  (devel/mongo-cxx-driver port).
Comment 5 Dmitry Sivachenko freebsd_committer freebsd_triage 2016-01-03 13:03:29 UTC
Okay, I am adding ale@ for feedback: what do you think if we update the existing mongodb port with the proposed version?
Comment 6 Brendan Molloy 2016-01-03 14:01:53 UTC
(In reply to Dmitry Sivachenko from comment #3)

1) Apologies, I have been busy with several other things and overlooked this until now. I will send updated patches tomorrow.
2) There were a few compatibility changes as of v3.0 <https://docs.mongodb.org/manual/release-notes/3.0-compatibility/> and v3.2 changes the default storage engine <https://docs.mongodb.org/manual/release-notes/3.2-compatibility> so I took the conservative option and offered it as a separate port, seeing as it also introduces the tools as a separate codebase now.

I am happy to offer this as a patch to the current mongodb port plus a new port with the tools if that's considered a better option however.
Comment 7 Brendan Molloy 2016-01-03 14:02:49 UTC
(In reply to numisemis from comment #4)

The information about the license is interesting, as their repositories still contain both licenses, and that's why I referred to both still.

Happy to drop APACHE2 from the Makefile if this is considered appropriate.
Comment 8 Brendan Molloy 2016-01-04 14:02:56 UTC
Created attachment 165055 [details]
mongodb32-tools shar

Apologies about the delay, I had to fix some issues with the port that I had apparently overlooked before.
Comment 9 Dmitry Sivachenko freebsd_committer freebsd_triage 2016-01-04 16:33:53 UTC
Thanks for the mongodb-tools port, let's wait for ale's decision if it is OK to update the existing port.
Comment 10 Dmitry Sivachenko freebsd_committer freebsd_triage 2016-01-17 21:23:30 UTC
Alex, what is your opinion?  Should we create separate mongodb32 port or
it is OK for you to upgrade the existing mongodb port?
Comment 11 Will Green 2016-01-17 21:35:42 UTC
I use the existing Mongo port in production on FreeBSD, so I thought I'd offer my 2¢.

My preference would be to retain Mongo 2.6 and update it to the latest 2.6.11 version so that those still using 2.6 in production can continue to do so. Mongo 3.20 is new and has had some issues; for example 3.21 has just been released to fix a serious issue with replica sets: https://jira.mongodb.org/browse/SERVER-21868 

Has creating a mongo3 (rather than mongodb32) port been considered? Or would the plan be to create mongodb33 etc. as they're released?

Thanks for all your work in bringing Mongo 3 to ports.
Comment 12 Dmitry Sivachenko freebsd_committer freebsd_triage 2016-01-17 21:49:09 UTC
If it is just an error in existing 3.2 version, it should not stop us to update mongodb, because every version has some errors.  According to numisemis@yahoo.com earlier in this thread, "there is no feature regression with this version".

But I am personally fine with separate mongodb3 port if people consider this beneficial, but I will wait a bit more in hope to get ale@'s comments.
Comment 13 Eric 2016-01-17 22:14:36 UTC
I'm currently using Mongo 2.x in production on FreeBSD and would personally prefer to see the 2.x series continue alongside the new 3.x branch (brilliant!).  

The typical approach (in my experience of FreeBSD) in such a situation would be for either a databases/mongodb3 to be created (whilst their new codebase settles) and for the 2.x to continue to be updated (I had been considering submitting a PR to bring it up to date) - or - for the current databases/mongodb port to become databases/mongodb2 and this new port to become databases/mongo.
Comment 14 commit-hook freebsd_committer freebsd_triage 2016-01-23 12:47:35 UTC
A commit references this bug:

Author: demon
Date: Sat Jan 23 12:46:59 UTC 2016
New revision: 406969
URL: https://svnweb.freebsd.org/changeset/ports/406969

Log:
  Add a port for mongodb version 3.2.

  PR:		205510
  Submitted by:	Brendan Molloy <brendan+freebsd@bbqsrc.net>
  Maintainer of databases/mongodb port timeout (3 weeks)

  I bumped version to 3.2.1.

  mongodb32-tools port coming soon.

Changes:
  head/databases/mongodb32/
  head/databases/mongodb32/Makefile
  head/databases/mongodb32/distinfo
  head/databases/mongodb32/files/patch-SConstruct
  head/databases/mongodb32/files/patch-src_mongo_SConscript
  head/databases/mongodb32/files/patch-src_mongo_db_kill_current_op.cpp
  head/databases/mongodb32/files/patch-src_mongo_db_ops_modifier_push.cpp
  head/databases/mongodb32/files/patch-src_third_party_boost_libs_filesystem_v3_src_path.cpp
  head/databases/mongodb32/pkg-plist
Comment 15 commit-hook freebsd_committer freebsd_triage 2016-01-23 14:36:44 UTC
A commit references this bug:

Author: demon
Date: Sat Jan 23 14:36:27 UTC 2016
New revision: 406994
URL: https://svnweb.freebsd.org/changeset/ports/406994

Log:
  New port: mongodb32-tools.  Extra tools factored out from mongodb port
  in version 3.

  PR:		205510
  Submitted by:	Brendan Molloy <brendan+freebsd@bbqsrc.net>

Changes:
  head/databases/Makefile
  head/databases/mongodb32-tools/
  head/databases/mongodb32-tools/Makefile
  head/databases/mongodb32-tools/distinfo
  head/databases/mongodb32-tools/files/
  head/databases/mongodb32-tools/files/patch-vendor_src_github.com_spacemonkeygo_openssl_build.go
  head/databases/mongodb32-tools/files/patch-vendor_src_github.com_spacemonkeygo_openssl_init__posix.go
  head/databases/mongodb32-tools/pkg-descr
  head/databases/mongodb32-tools/pkg-plist
Comment 16 Dmitry Sivachenko freebsd_committer freebsd_triage 2016-01-23 14:38:13 UTC
New ports added, thanks!!