Mongodb can build against both spidermonkey and v8. Since both are in the three I figured that we could support both. Since spidermonkey still is the upstream default I only added the v8 flag. See attachment for a diff against the ebuild in bug 337973.
Created attachment 249815 [details] add_v8_use.diff
Btw, here's the result at my box: # ldd /usr/lib64/libmongoclient.so linux-vdso.so.1 => (0x00007fff513ff000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007fbdacc20000) libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/libstdc++.so.6 (0x00007fbdac90b000) libboost_system-mt-1_42.so.1.42.0 => /usr/lib/libboost_system-mt-1_42.so.1.42.0 (0x00007fbdac707000) libboost_thread-mt-1_42.so.1.42.0 => /usr/lib/libboost_thread-mt-1_42.so.1.42.0 (0x00007fbdac4f1000) libboost_filesystem-mt-1_42.so.1.42.0 => /usr/lib/libboost_filesystem-mt-1_42.so.1.42.0 (0x00007fbdac2db000) libm.so.6 => /lib/libm.so.6 (0x00007fbdac059000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fbdabe42000) libc.so.6 => /lib/libc.so.6 (0x00007fbdabadc000) /lib64/ld-linux-x86-64.so.2 (0x00007fbdad18f000) librt.so.1 => /lib/librt.so.1 (0x00007fbdab8d2000)
The Chromium herd would be glad to help with this one, as maintainer of the dev-lang/v8 package. Please note I'm still not sure how to solve the v8 SONAME problem to satisfy the packages using it. Generally the upstream says that all dependent packages should be recompiled after updating v8, and they guarantee no binary compatibility even between minor versions. However, after enabling SONAME in the upstream build system, a libv8-2.4.3.so file is installed for v8-2.4.3 (meaning the version is a part of the library name). We can change that in the package (it's still hard masked, for that reason).
(In reply to comment #3) > The Chromium herd would be glad to help with this one, as maintainer of the > dev-lang/v8 package. The above is strill true. By the way, dev-lang/v8 is now in ~arch, and the previous problems with it have been solved.
I'm using mongodb (version 1.6.0 in portage) as database for my projects server-side. Since I'm already using chromium with system v8, I will try to test it. I hope mongodb will soon be bumped in portage.
Done, thanks!