Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 457694

Summary: >=dev-db/mongodb-2.0.7 does not build and install libmongoclient.so anymore
Product: Gentoo Linux Reporter: Balint SZENTE <balint>
Component: Current packagesAssignee: Ultrabug <ultrabug>
Status: RESOLVED FIXED    
Severity: normal CC: balint, bugs
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.mongodb.org/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mongodb-2.0.7_sharedclient.patch
Build log of patched dev-db/mongodb-2.0.7-r1 ebuild
mongodb-2.2.0-r1.ebuild.patch

Description Balint SZENTE 2013-02-15 13:11:49 UTC
Starting from dev-db/mongodb-2.0.7 the mongoclient shared library is not compiled and installed anymore. The last good ebuild was 2.0.6

Reproducible: Always

Steps to Reproduce:
1. USE="-static-libs" emerge mongodb

Actual Results:  
# equery f mongodb | grep libmongoclient
#

libmongoclient.so is missing

Expected Results:  
libmongoclient.so should be installed.

Please add back the --sharedclient option, as it was before version 2.0.7:

scons_opts="  --cc=$(tc-getCC) --cxx=$(tc-getCXX) --sharedclient"
Comment 1 Balint SZENTE 2013-02-15 13:13:30 UTC
Created attachment 338982 [details, diff]
mongodb-2.0.7_sharedclient.patch

Every mongodb ebuild is broken, so please apply this patch to *each* ebuild in the portage tree.
Comment 2 Ultrabug gentoo-dev 2013-03-04 11:35:23 UTC
Hi Balint, sorry for the delay. I'll look into this bug today and keep you posted.

Thank you
Comment 3 Ultrabug gentoo-dev 2013-03-05 10:37:28 UTC
@Balint, did you get a successful compilation after adding this option plz ? If so, could you provide your build.log ?

Cheers
Comment 4 Balint SZENTE 2013-03-05 12:43:03 UTC
Created attachment 341010 [details]
Build log of patched dev-db/mongodb-2.0.7-r1 ebuild

I made a local overlay, with the patched ebuild, and this is how I use it.

Did you encountered some issues?
Comment 5 Ultrabug gentoo-dev 2013-03-05 13:50:04 UTC
(In reply to comment #4)
> Created attachment 341010 [details]
> Build log of patched dev-db/mongodb-2.0.7-r1 ebuild
> 
> I made a local overlay, with the patched ebuild, and this is how I use it.
> 
> Did you encountered some issues?

Yep so far I'm able to only get it working for <boost-1.50 ebuilds and 2.0.x versions.. gonna try a bit more but I don't have much spare time to dig into the sources and find the problem.
Comment 6 Ultrabug gentoo-dev 2013-03-05 14:10:43 UTC
Fixed the 2.0.x ebuilds in tree

+  05 Mar 2013; Ultrabug <ultrabug@gentoo.org> mongodb-2.0.7-r1.ebuild,
+  mongodb-2.0.7-r2.ebuild, mongodb-2.0.8-r1.ebuild, mongodb-2.0.8-r2.ebuild:
+  install the mongoclient shared library wrt #457694 for 2.0.x versions thx to
+  Balint SZENTE
+

Starting with 2.2.0 it doesnt work anymore, we should try and investigate who's the culprit on this.

If one feels limited by this, open a new bug targeting the 2.2.x series plz.
Comment 7 Balint SZENTE 2013-03-05 14:41:30 UTC
I did not test with >=2.2.x, I will check it in the next days, and eventually will make a new issue.

Thank you.
Comment 8 Balint SZENTE 2013-03-08 07:36:43 UTC
For 2.1.2+ it is an upstream bug:
<https://jira.mongodb.org/browse/SERVER-6514>
Comment 9 Balint SZENTE 2013-03-08 11:46:24 UTC
Created attachment 341298 [details, diff]
mongodb-2.2.0-r1.ebuild.patch

Patch for the ebuild. You should apply this to each 2.2.x ebuild
Comment 10 Balint SZENTE 2013-03-08 11:49:08 UTC
Please ignore my previous comment. I made a mistake, I mixed the browser windows. I'm sorry.