Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389169 - dev-db/mongodb-2.0.1 version bump
Summary: dev-db/mongodb-2.0.1 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ultrabug
URL: http://mongodb.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 10:01 UTC by oc666
Modified: 2011-11-18 08:36 UTC (History)
3 users (show)

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


Attachments
A starting point for a working ebuild (mongodb-2.0.1.ebuild,2.32 KB, text/plain)
2011-11-03 17:55 UTC, sulfinu
Details
Adapted patch from the patches intended for 1.8.4 (mongodb-2.0-fix-scons.patch,1.65 KB, text/plain)
2011-11-03 18:00 UTC, sulfinu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oc666 2011-11-01 10:01:12 UTC
mongodb release 2.0.1 version and mark it as production release:
http://www.mongodb.org/downloads


Reproducible: Always




mongodb is nosql database which used by many servers
Comment 1 sulfinu 2011-11-03 17:55:38 UTC
Created attachment 291595 [details]
A starting point for a working ebuild
Comment 2 sulfinu 2011-11-03 18:00:15 UTC
Created attachment 291597 [details]
Adapted patch from the patches intended for 1.8.4

This doesn't work, yet. The compile fails with the following messages:

third_party/pcre-7.4/pcre_exec.c: In function 'int match(const unsigned char*, const uschar*, const uschar*, int, match_data*, long unsigned int, eptrblock*, int, unsigned int)':
third_party/pcre-7.4/pcre_exec.c:691:1: error: jump to label 'L_RM1'
third_party/pcre-7.4/pcre_exec.c:4248:1: error:   from here
third_party/pcre-7.4/pcre_exec.c:690:9: error:   skips initialization of 'heapframe* newframe'
third_party/pcre-7.4/pcre_exec.c:750:1: error: jump to label 'L_RM2'
third_party/pcre-7.4/pcre_exec.c:4248:1: error:   from here
third_party/pcre-7.4/pcre_exec.c:749:7: error:   skips initialization of 'heapframe* newframe'
third_party/pcre-7.4/pcre_exec.c:792:1: error: jump to label 'L_RM3'
third_party/pcre-7.4/pcre_exec.c:4248:1: error:   from here
third_party/pcre-7.4/pcre_exec.c:791:7: error:   skips initialization of 'heapframe* newframe'
third_party/pcre-7.4/pcre_exec.c:883:1: error: jump to label 'L_RM4'
.
.
.
and so on.

Help would be much appreciated :)
Comment 3 oc666 2011-11-09 16:56:31 UTC
Hey
Is someone handle this bug?
Comment 4 Johan Bergström 2011-11-10 07:23:59 UTC
Sorry for not responding in a timely fashion.

The issue is basically that upstream has decided to statically link pcre, spidemonkey and so on. This is something we're not very happy with – especially when the statically linked version of pcre had security issues. When discussing with upstream, they told us that a patch would occur in the next minor (2.0.1), which unfortunately didn't. They have now moved it to 2.0.2 (see https://jira.mongodb.org/browse/SERVER-3829) ; so the bump eagerly awaits this patch.

See http://groups.google.com/group/mongodb-dev/browse_thread/thread/38e8c30606a300c3 for relevant discussion.

The best thing to do if you want to help out is either help with convincing upstream about the importance of letting us maintain shared libraries ourselves, or help out with a patch to SConstruct that helps us do this. See above bug url for this.

Thanks for your interest. We're all eagerly awaiting feedback.
Comment 5 oc666 2011-11-10 13:38:14 UTC
Hey
Thanks for your reply.
Could we make version bump with hard mask package??
Thanks
Comment 6 Johan Bergström 2011-11-10 13:41:13 UTC
(In reply to comment #5)
> Hey
> Thanks for your reply.
> Could we make version bump with hard mask package??
> Thanks

As soon as a scones patch lands, I'll be happy to bump this. Feel free to help out!
Comment 7 sulfinu 2011-11-10 14:57:30 UTC
Well, they promise to deliver 2.0.2 no later than the next tuesday...
https://jira.mongodb.org/browse/SERVER?report=com.atlassian.jira.plugin.system.project:roadmap-panel
Comment 8 Ultrabug gentoo-dev 2011-11-14 18:16:36 UTC
I indeed asked them if they felt like they'll honor this deadline, I got no reply so far. So I guess we'll have to hope for a good news tomorrow :)
Comment 10 Ultrabug gentoo-dev 2011-11-15 19:19:49 UTC
(In reply to comment #9)
> Here is Eliot Horowitz comment about the version patch:
> https://jira.mongodb.org/browse/SERVER-3829?focusedCommentId=66691&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-66691

Yes, and I've tested successfully the building on a snapshot ebuild. I'm now waiting for upstream to tag a version past this commit so I can get a fixed ebuild number.

I'll keep this bug posted, thanks.
Comment 11 Ultrabug gentoo-dev 2011-11-16 09:51:55 UTC
Hey fellows, while we wait for an official tag/backport I pushed a snapshot version of current git master so you can all give it a try.

Please note that required spidermonkey is now <1.8

+*mongodb-2.0.2_pre20111116 (16 Nov 2011)
+
+  16 Nov 2011; Ultrabug <ultrabug@gentoo.org>
+  +mongodb-2.0.2_pre20111116.ebuild, +files/mongodb-2.0-fix-scons.patch:
+  Bump for 2.x pre-release version.
+
Comment 12 sulfinu 2011-11-17 13:03:58 UTC
This line in your ebuild 
    if [[ ${REPLACING_VERSIONS} < 1.8 ]]; then
should be replaced by
    if [[ ${REPLACING_VERSIONS} < 2.0 ]]; then

Final tagging of 2.0.2 should be around the corner.
Comment 13 Ultrabug gentoo-dev 2011-11-17 13:23:32 UTC
(In reply to comment #12)
> This line in your ebuild 
>     if [[ ${REPLACING_VERSIONS} < 1.8 ]]; then
> should be replaced by
>     if [[ ${REPLACING_VERSIONS} < 2.0 ]]; then
> 
> Final tagging of 2.0.2 should be around the corner.

Hi mate, thanks for your comment.

IMHO, the < 1.8 is correct because according to the 2.0 release notes [1], upgrading from 1.8 is seamless and you don't need to run mongod --upgrade. So this statement remains true if you come from < 1.8 versions.

And yeah, I hope the tagging comes soon :)

[1] http://www.mongodb.org/display/DOCS/2.0+Release+Notes#2.0ReleaseNotes-Upgrading

Cheers
Comment 14 sulfinu 2011-11-17 14:32:55 UTC
I cannot say but that you're right (it crssed my mind, but was too lazy to actually check). Sorry for the noise...
Comment 15 Ultrabug gentoo-dev 2011-11-18 08:36:10 UTC
Hey guys, I'm glad to announce the so awaited 2.0.2_rc0 ebuild ;)

+*mongodb-2.0.2_rc0 (18 Nov 2011)
+
+  18 Nov 2011; Ultrabug <ultrabug@gentoo.org> -mongodb-1.8.2-r1.ebuild,
+  -mongodb-2.0.2_pre20111116.ebuild, +mongodb-2.0.2_rc0.ebuild,
+  files/mongodb-2.0-fix-scons.patch:
+  Version bump, drop old
+

Thanks to everyone for their interest and their help in voting it to upstream.