According to the documentation here: http://www.mongodb.org/pages/viewpage.action?pageId=133415 "You can also specify --sharedclient to build a shared library instead of a statically linked library." It'd be nice if there was the (default?) option to build the Mongo driver as a shared library in the ebuild. Reproducible: Always
Which version does this information apply to? Thanks Michael
Sorry, I didn't specify it because I'm not entirely sure, in the sense that the documentation doesn't specify when that option was introduced. Certainly it should be valid for the 1.6 series.
I think this should be default as well, so a "static" use flag might be in place?
FYI, I just heard back from a Mongo developer that they don't yet enforce an ABI, which is why they don't yet recommend building shared libs by default. They said that the static lib is built with -fPIC so it shouldn't be a problem to link to it from shared libraries.
(In reply to comment #4) > FYI, I just heard back from a Mongo developer that they don't yet enforce an > ABI, which is why they don't yet recommend building shared libs by default. > > They said that the static lib is built with -fPIC so it shouldn't be a problem > to link to it from shared libraries. > So is the consensus to leave the ebuild as-is since upstream doesn't recommend building shared libs yet?
I guess that depends on Gentoo policy...AFAIK Gentoo prefers shared libs when possible. So either the ebuild can have a shared USE flag with a warning, or it can always build shared but warn users, or just keep building static for now.
Hi guys, This has been taken care of in the new versions in tree so I'll consider this bug fixed, feel free to reopen if you think otherwise. Thanks again for your bug and patience. +*mongodb-1.8.1 (13 Apr 2011) +*mongodb-1.6.5 (13 Apr 2011) + + 13 Apr 2011; Ultrabug <ultrabug@gentoo.org> -mongodb-1.2.4.ebuild, + -files/mongodb-1.2-modify-post-strip.patch, + -files/mongodb-1.2-modify-testing.patch, -mongodb-1.4.4.ebuild, + -files/mongodb-1.4-modify-post-strip.patch, + -files/mongodb-1.4-modify-testing.patch, -mongodb-1.5.5.ebuild, + -mongodb-1.6.0.ebuild, -files/mongodb-1.6.0-fix-scons.patch, + +mongodb-1.6.5.ebuild, +files/mongodb-1.6-fix-scons.patch, + +mongodb-1.8.1.ebuild, +files/mongodb-1.8-fix-scons.patch, + +files/mongos.confd, +files/mongos.initd, files/mongodb.confd, + files/mongodb.initd: + Mongodb rework/bump. Fix bugs #329167, #334081, #337085, #337593, #337973, + #338039, #340032, #356731. Many thanks to Johan Bergström for his help and + testing. Drop old versions. +