Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340028 - dev-db/mongodb: add USE=v8
Summary: dev-db/mongodb: add USE=v8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lance Albertson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-07 08:00 UTC by Johan Bergström
Modified: 2011-02-02 18:15 UTC (History)
2 users (show)

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


Attachments
add_v8_use.diff (add_v8_use.diff,898 bytes, text/plain)
2010-10-07 08:01 UTC, Johan Bergström
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Bergström 2010-10-07 08:00:16 UTC
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.
Comment 1 Johan Bergström 2010-10-07 08:01:08 UTC
Created attachment 249815 [details]
add_v8_use.diff
Comment 2 Johan Bergström 2010-10-07 08:02:55 UTC
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)
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-10-07 09:04:35 UTC
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).
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-11-24 08:01:44 UTC
(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.
Comment 5 Julien Sanchez archtester 2010-11-24 08:34:35 UTC
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.
Comment 6 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-02-02 18:15:42 UTC
Done, thanks!