Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273259 - dev-db/mongodb (New package)
Summary: dev-db/mongodb (New package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 3 votes (vote)
Assignee: Lance Albertson (RETIRED)
URL:
Whiteboard: sunrise-overlay
Keywords: EBUILD, InOverlay
Depends on: 273257 277697
Blocks:
  Show dependency tree
 
Reported: 2009-06-08 21:11 UTC by Johan Bergström
Modified: 2010-03-08 07:08 UTC (History)
5 users (show)

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


Attachments
ebuild (mongodb-0.9.3.ebuild,711 bytes, text/plain)
2009-06-08 21:11 UTC, Johan Bergström
Details
mongodb-0.9.4 (mongodb-0.9.4.ebuild,889 bytes, text/plain)
2009-06-17 14:18 UTC, Johan Bergström
Details
Patch to make Scons not violate our sandbox (modify-testing.patch,1.25 KB, patch)
2009-06-17 14:18 UTC, Johan Bergström
Details | Diff
mongodb-0.9.4 ebuild with init.d/conf.d scripts (mongodb-0.9.4.ebuild,1.23 KB, text/plain)
2009-07-13 19:00 UTC, Wendall Cada
Details
mongodb-0.9.4 init (mongodb.init-0.9.4,1.02 KB, text/plain)
2009-07-13 19:00 UTC, Wendall Cada
Details
mongodb-0.9.4 conf (mongodb.conf-0.9.4,220 bytes, text/plain)
2009-07-13 19:02 UTC, Wendall Cada
Details
mongodb-0.9.6.ebuild (mongodb-0.9.6.ebuild,1.16 KB, text/plain)
2009-07-14 08:39 UTC, Johan Bergström
Details
mongodb-0.9.6.ebuild (mongodb-0.9.6.ebuild,1.25 KB, text/plain)
2009-07-14 12:37 UTC, Johan Bergström
Details
remove scons binary stripping (modify-post-strip.patch,428 bytes, patch)
2009-07-14 12:44 UTC, Johan Bergström
Details | Diff
mongodb.conf-0.9.6 (mongodb.conf-0.9.6,220 bytes, text/plain)
2009-07-14 12:44 UTC, Johan Bergström
Details
mongodb.init-0.9.6 (mongodb.init-0.9.6,1.00 KB, text/plain)
2009-07-14 12:44 UTC, Johan Bergström
Details
mongodb.init-0.9.6 (mongodb.init-0.9.6,1022 bytes, text/plain)
2009-07-15 07:39 UTC, Johan Bergström
Details
mongodb-0.9.6.ebuild (mongodb-0.9.6.ebuild,1.32 KB, text/plain)
2009-07-21 20:35 UTC, Johan Bergström
Details
1.0.0 patch that adapts to tarball rename (fix_github_rename.patch,391 bytes, patch)
2009-10-06 06:57 UTC, Johan Bergström
Details | Diff
Use official releases. (sunrise_mongodb_use_release_tarballs.patch,786 bytes, patch)
2010-02-19 05:06 UTC, Brandon Bergren
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Bergström 2009-06-08 21:11:25 UTC
MongoDB is a high-performance, open source, schema-free document-oriented database. MongoDB is written in C++

MongoDB is licensed under AGPL-3 which can be found here (but unfortunately not in Gentoo): http://www.gnu.org/licenses/agpl-3.0.txt

ebuild attached

Reproducible: Always

Steps to Reproduce:
Comment 1 Johan Bergström 2009-06-08 21:11:37 UTC
Created attachment 193936 [details]
ebuild
Comment 2 Johan Bergström 2009-06-17 14:18:19 UTC
Created attachment 194995 [details]
mongodb-0.9.4

New version - adds test features as well. This now depends on dev-libs/unittest (bug 273257)
Comment 3 Johan Bergström 2009-06-17 14:18:59 UTC
Created attachment 194997 [details, diff]
Patch to make Scons not violate our sandbox
Comment 4 Johan Bergström 2009-06-17 14:22:54 UTC
This is "good enough" for a release if you ask me.. I still think there are improvements to be made though, namely:
 - init.d/conf.d script
 - default to /var/lib/mongodb/data (through conf.d) instead of /data/db which is the default (and isn't a compile time flag)
 - use doxygen for generating docs (although a bit over-pretentious)
Comment 5 Wendall Cada 2009-07-13 19:00:12 UTC
Created attachment 197823 [details]
mongodb-0.9.4 ebuild with init.d/conf.d scripts

Added support for conf.d/init.d scripts
Comment 6 Wendall Cada 2009-07-13 19:00:56 UTC
Created attachment 197825 [details]
mongodb-0.9.4 init
Comment 7 Wendall Cada 2009-07-13 19:02:43 UTC
Created attachment 197826 [details]
mongodb-0.9.4 conf
Comment 8 Wendall Cada 2009-07-13 19:04:32 UTC
I see the category is net-misc for this bug. Shouldn't this be filed under dev-db? That's where I placed it in my overlay, since it is very similar to these. 

I didn't create one, but there should probably be an -9999 ebuild created for testing git head.
Comment 9 Johan Bergström 2009-07-14 08:37:59 UTC
Thanks for your feedback and help!

(In reply to comment #8)
> I see the category is net-misc for this bug. Shouldn't this be filed under
> dev-db? That's where I placed it in my overlay, since it is very similar to
> these. 

Since key value-stores isn't your ordinary database I chose to put it in net-misc for now. Seeing that CouchDB ended up in dev-db kind of prove your point - I'll rename the subject.

> 
> I didn't create one, but there should probably be an -9999 ebuild created for
> testing git head.
> 

I did some minor changes to your ebuild. There's two minor thing I'd like to fix in the Scons build, but since I'm not very fond of Scons I'll keep it as is for now. These are:
 * mongod should live in sbin, not bin
 * I'd prefer if Gentoo stripped the binaries - not Scons 
Comment 10 Johan Bergström 2009-07-14 08:39:48 UTC
Created attachment 197874 [details]
mongodb-0.9.6.ebuild

Minor fixes based on ebuild from Wendall Cada. Version bump while at it.
Comment 11 Johan Bergström 2009-07-14 12:37:59 UTC
Created attachment 197911 [details]
mongodb-0.9.6.ebuild

Ok, I took the time to fix some of my shortcomings. Here's a new ebuild! The only thing left to fix I can think of now is proper logging "support" (pipe:ing), which feels a bit secondary since this is something upstream should consider.
Comment 12 Johan Bergström 2009-07-14 12:44:22 UTC
Created attachment 197913 [details, diff]
remove scons binary stripping
Comment 13 Johan Bergström 2009-07-14 12:44:46 UTC
Created attachment 197914 [details]
mongodb.conf-0.9.6
Comment 14 Johan Bergström 2009-07-14 12:44:59 UTC
Created attachment 197915 [details]
mongodb.init-0.9.6
Comment 15 Wendall Cada 2009-07-15 05:26:36 UTC
Two things I forgot to mention.

1. There is some cruft at the bottom of your new ebuild. Check the last line.

2. mongodb requires that spidermonkey be built with UTF-8 support. I submitted a modified ebuild on the current stable with support. https://bugs.gentoo.org/show_bug.cgi?id=277697

Wendall
Comment 16 Johan Bergström 2009-07-15 07:39:20 UTC
Created attachment 198016 [details]
mongodb.init-0.9.6

De-cruftified init script. Thanks to Wendall for the heads up
Comment 17 Johan Bergström 2009-07-15 07:42:05 UTC
(In reply to comment #15)
> Two things I forgot to mention.
> 
> 1. There is some cruft at the bottom of your new ebuild. Check the last line.

Fixed in above comment, thanks.

> 
> 2. mongodb requires that spidermonkey be built with UTF-8 support. I submitted
> a modified ebuild on the current stable with support.
> https://bugs.gentoo.org/show_bug.cgi?id=277697

Sweet! I added that bug to blockers.

> 
> Wendall
> 

Comment 18 Johan Bergström 2009-07-21 20:35:16 UTC
Created attachment 198736 [details]
mongodb-0.9.6.ebuild

Another round of fixes:
 * mongodb -> ${PN} fixes
 * now also installs man pages
Comment 19 Johan Bergström 2009-07-27 12:59:15 UTC
This ebuild is now in the sunrise-overlay: http://overlays.gentoo.org/proj/sunrise/browser/sunrise/dev-db/mongodb
Comment 20 Almad 2009-08-07 10:42:21 UTC
ebuild should conform to 103421 and use enewuser mongodb -1 -1 /var/lib/${PN} mongodb

instead
Comment 21 Johan Bergström 2009-08-07 10:46:44 UTC
(In reply to comment #20)
> ebuild should conform to 103421 and use enewuser mongodb -1 -1 /var/lib/${PN}
> mongodb
> 
> instead
> 

Ok, I'll fix this in the next ebuild bump.
Comment 22 Wendall Cada 2009-08-07 14:57:57 UTC
103421? Have a reference? Hard to know about "proper" implementations when devs don't refer to them properly with references.
Comment 23 Johan Bergström 2009-08-18 07:37:33 UTC
Here's the latest ebuild, look better?
http://overlays.gentoo.org/proj/sunrise/browser/sunrise/dev-db/mongodb/mongodb-0.9.8.ebuild
Comment 24 gentoo 2009-10-06 05:40:53 UTC
Im trying to build this from the sunrise overlay and it looks like the download fails:

# emerge -av dev-db/mongodb

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-db/mongodb-1.0.0  3,831 kB [1]

Total: 1 package (1 new), Size of downloads: 3,831 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/portage/layman/sunrise

Would you like to merge these packages? [Yes/No]

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-db/mongodb-1.0.0 from sunrise
>>> Downloading 'http://mirror.datapipe.net/gentoo/distfiles/mongodb-1.0.0.tar.gz'
--2009-10-06 01:39:16--  http://mirror.datapipe.net/gentoo/distfiles/mongodb-1.0.0.tar.gz
Resolving mirror.datapipe.net... 64.27.65.115
Connecting to mirror.datapipe.net|64.27.65.115|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2009-10-06 01:39:16 ERROR 404: Not Found.

>>> Downloading 'http://mirrors.acm.cs.rpi.edu/gentoo/distfiles/mongodb-1.0.0.tar.gz'
--2009-10-06 01:39:16--  http://mirrors.acm.cs.rpi.edu/gentoo/distfiles/mongodb-1.0.0.tar.gz
Resolving mirrors.acm.cs.rpi.edu... failed: Name or service not known.
wget: unable to resolve host address `mirrors.acm.cs.rpi.edu'
>>> Downloading 'http://github.com/mongodb/mongo/tarball/r1.0.0'
--2009-10-06 01:39:16--  http://github.com/mongodb/mongo/tarball/r1.0.0
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://waitdownload.github.com/mongodb-mongo-eefb812.tar.gz [following]
--2009-10-06 01:39:16--  http://waitdownload.github.com/mongodb-mongo-eefb812.tar.gz
Resolving waitdownload.github.com... 207.97.227.241
Connecting to waitdownload.github.com|207.97.227.241|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.github.com/mongodb-mongo-eefb812.tar.gz [following]
--2009-10-06 01:39:18--  http://download.github.com/mongodb-mongo-eefb812.tar.gz
Resolving download.github.com... 207.97.227.240
Connecting to download.github.com|207.97.227.240|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3921965 (3.7M) [application/octet-stream]
Saving to: `/usr/portage/distfiles/mongodb-1.0.0.tar.gz'

100%[=====================================================================>] 3,921,965    399K/s   in 9.2s    

2009-10-06 01:39:27 (415 KB/s) - `/usr/portage/distfiles/mongodb-1.0.0.tar.gz' saved [3921965/3921965]

('Filesize does not match recorded size', 3921965L, 3922909)
!!! Fetched file: mongodb-1.0.0.tar.gz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      3921965
!!! Expected: 3922909
Refetching... File renamed to '/usr/portage/distfiles/mongodb-1.0.0.tar.gz._checksum_failure_.CpHLfd'

!!! Couldn't download 'mongodb-1.0.0.tar.gz'. Aborting.
 * Fetch failed for 'dev-db/mongodb-1.0.0', Log file:
 *  '/var/log/portage/dev-db:mongodb-1.0.0:20091006-053915.log'

>>> Failed to emerge dev-db/mongodb-1.0.0, Log file:

>>>  '/var/log/portage/dev-db:mongodb-1.0.0:20091006-053915.log'

#
Comment 25 Johan Bergström 2009-10-06 06:57:18 UTC
Created attachment 206219 [details, diff]
1.0.0 patch that adapts to tarball rename

Hello and thanks for your bugreport! Github felt like renaming the tarball which isn't something portage is very fond of :-( The attached patch (don't forget ebuild mongodb-1.0.0.ebuild manifest --force) fixes this. It usually takes a couple of days for sunrise to get reviewed, so waiting is your other option :-)
Comment 26 Johan Bergström 2009-10-06 07:00:59 UTC
Here's the commit btw: http://overlays.gentoo.org/proj/sunrise/changeset/9334

Thanks again!
Comment 27 Szymon Szypulski 2009-10-06 19:13:38 UTC
After manifest change, patches doesn't apply.
Comment 28 Szymon Szypulski 2009-10-06 19:16:42 UTC
I haven't noticed workdir change, everything works fine, sorry;)
Comment 29 gentoo 2009-10-09 20:34:08 UTC
Hasn't reached the overlay yet as far as I can tell.
Comment 30 Johan Bergström 2009-10-09 21:51:16 UTC
(In reply to comment #29)
> Hasn't reached the overlay yet as far as I can tell.
> 

Thats correct :-( The reviews usually happens once or twice a week. Feel free to peek on progress here: http://overlays.gentoo.org/proj/sunrise/timeline
Comment 31 oc666 2010-02-06 22:37:57 UTC
Sorry to annoying but what are the status of this bug? Is this package going into the official portage?
Comment 32 Johan Bergström 2010-02-06 22:42:39 UTC
(In reply to comment #31)
> Sorry to annoying but what are the status of this bug? Is this package going
> into the official portage?
> 

Most likely, yes. A couple of ways:
1) Vote on this bug if you think its important and should be looked upon
2) Some developer picks it up
3) I get someone to proxy it for me
4) I become a developer

4 will happen some time, can't say when though :) 

Stick with sunrise until some of the above happens.
Comment 33 oc666 2010-02-09 14:07:40 UTC
Could some gentoo developer adopt this ebuild project?
Comment 34 Brandon Bergren 2010-02-19 05:06:38 UTC
Created attachment 220265 [details, diff]
Use official releases.

Small change against the sunrise ebuild:

* Use the official release tarballs instead of the auto-packaged git ones.
Comment 35 Johan Bergström 2010-02-19 07:21:23 UTC
(In reply to comment #34)
> Created an attachment (id=220265) [details]
> Use official releases.
> 
> Small change against the sunrise ebuild:
> 
> * Use the official release tarballs instead of the auto-packaged git ones.
> 

Thanks, didn't know that they finally host it. Github is such a pain for tarballs :(

I'll fix it today.
Comment 36 Johan Bergström 2010-02-19 07:51:39 UTC
Fixed in http://overlays.gentoo.org/proj/sunrise/changeset/10165
Comment 37 Lance Albertson (RETIRED) gentoo-dev 2010-02-19 23:03:03 UTC
I'm very interested in becoming the maintainer for this package since we're using this at the OSL. It looks like its depending on a couple of bugs one of which is just for the testing feature. I'd prefer if the utf8 bug was completed before I committed this. If someone starts maintaining unittest, I can add that feature later in the ebuild.

I'll try and get this done sometime next week. I'll see about adding some of the drivers for it as well like php.

Cheers-
Comment 38 Lance Albertson (RETIRED) gentoo-dev 2010-03-07 23:41:43 UTC
*mongodb-1.2.2 (07 Mar 2010)

  07 Mar 2010; Lance Albertson <ramereth@gentoo.org> +mongodb-1.2.2.ebuild,
  +files/mongodb-1.2-modify-post-strip.patch,
  +files/mongodb-1.2-modify-testing.patch, +files/mongodb.confd,
  +files/mongodb.initd, +metadata.xml:
  Import ebuild from the sunrise overlay and apply various fixes. Resolves
  #273259

Mostly resolved. Re-open once someone claims dev-libs/unittest and adds it to portage.

Thanks
Comment 39 Luca Barbato gentoo-dev 2010-03-08 00:12:36 UTC
I'm using that ebuild with version 1.2.4 and seems working maybe we could add it as well
Comment 40 Lance Albertson (RETIRED) gentoo-dev 2010-03-08 01:13:11 UTC
(In reply to comment #39)
> I'm using that ebuild with version 1.2.4 and seems working maybe we could add
> it as well
> 

Hmm, good call as I forgot to check for newer versions! I'll do that and add one for the development 1.3.x series as well. I also just noticed I should change the SRC_URI to use their website instead of github so I'll make that change.

Thanks for pointing that out.
Comment 41 Johan Bergström 2010-03-08 05:46:03 UTC
Lance: Why didn't you import my mongodb 1.2.4 ebuild? It already uses the tarball instead of github, has removed the now deprecated dep against dev-libs/unittest and fixes some other things. You could probably also remove pkg_postinst() since there hasn't been a 1.0 ebuild in the x86 tree.
Comment 42 Lance Albertson (RETIRED) gentoo-dev 2010-03-08 07:08:59 UTC
(In reply to comment #41)
> Lance: Why didn't you import my mongodb 1.2.4 ebuild? It already uses the
> tarball instead of github, has removed the now deprecated dep against
> dev-libs/unittest and fixes some other things. You could probably also remove
> pkg_postinst() since there hasn't been a 1.0 ebuild in the x86 tree.
 
I missed checking on the sunrise overlay for a newer ebuild so that's why I didn't use it. I looked at what you did and pulled it into a 1.2.4 and also added an 1.3.3 ebuild but added 1.3* to package.mask since its the development branch. I also created new patches for the 1.3 series. Finally, I removed the postinst bits.

Thanks for pointing that out!