|Summary:||Add dev-db/mongodb shared USE flag|
|Product:||Gentoo Linux||Reporter:||Jeff Mitchell <jeffrey.mitchell>|
|Component:||New packages||Assignee:||Lance Albertson (RETIRED) <ramereth>|
|Package list:||Runtime testing required:||---|
Description Jeff Mitchell 2010-09-13 14:04:03 UTC
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
Comment 1 Michael Weber (RETIRED) 2010-09-13 14:09:57 UTC
Which version does this information apply to? Thanks Michael
Comment 2 Jeff Mitchell 2010-09-13 16:56:00 UTC
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.
Comment 3 Johan Bergström 2010-09-14 07:21:34 UTC
I think this should be default as well, so a "static" use flag might be in place?
Comment 4 Jeff Mitchell 2010-10-01 12:18:06 UTC
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.
Comment 5 Lance Albertson (RETIRED) 2010-11-07 01:49:05 UTC
(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?
Comment 6 Jeff Mitchell 2010-11-07 12:12:08 UTC
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.
Comment 7 Ultrabug 2011-04-13 15:07:06 UTC
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 <email@example.com> -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. +