Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348055 - new ebuild dev-db/mongodb
Summary: new ebuild dev-db/mongodb
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on: 354523
Blocks:
  Show dependency tree
 
Reported: 2010-12-07 17:38 UTC by Sven Schwyn (svoop)
Modified: 2012-05-22 13:06 UTC (History)
1 user (show)

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


Attachments
spidermonkey-1.7.0-r2.ebuild (spidermonkey-1.7.0-r2.ebuild,1.64 KB, text/plain)
2010-12-16 11:51 UTC, Sven Schwyn (svoop)
Details
spidermonkey-1.7.0-fix-permissions.patch (spidermonkey-1.7.0-fix-permissions.patch,468 bytes, text/plain)
2010-12-16 11:51 UTC, Sven Schwyn (svoop)
Details
Ecopied and prefexified ebuild (mongodb-1.6.0.ebuild,2.31 KB, text/plain)
2011-02-15 12:00 UTC, Sven Schwyn (svoop)
Details
diff against original ebuild (mongodb-1.6.0.ebuild.diff,1.18 KB, text/plain)
2011-02-16 19:55 UTC, Sven Schwyn (svoop)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Schwyn (svoop) 2010-12-07 17:38:21 UTC
This is a request to ecopy dev-db/mongodb and it's dependency dev-lang/spidermonkey to Gentoo Prefix.

MongoDB is an increasingly popular nosql db and needed e.g. for local development of Rails applications such as Diaspora.

Reproducible: Always

Steps to Reproduce:
Comment 1 Sven Schwyn (svoop) 2010-12-07 17:41:31 UTC
I've ecopied both spidermonkey and mongodb, however, I'm not savvy enough to pinpoint the following problem. Spidermonkey fails to install on my Darwin-10.5.0-i386-32bit with:

>>> Install spidermonkey-1.7.0-r2 into /Gentoo/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/image/Gentoo/ category dev-lang
make -f Makefile.ref install DESTDIR=/Gentoo/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/image/ LIBDIR=lib 
cat: ../../dist/Darwin_OPT.OBJ/nspr/Version: No such file or directory
install -g 0 -o root -m 755 -d /Gentoo/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/image//usr/include/js /Gentoo/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/image//usr/lib /Gentoo/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/image//usr/bin
install: cannot change owner and permissions of `/Gentoo/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/image//usr/include/js': Operation not permitted
install: cannot change owner and permissions of `/Gentoo/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/image//usr/lib': Operation not permitted
install: cannot change owner and permissions of `/Gentoo/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/image//usr/bin': Operation not permitted
make: *** [install] Error 1
emake failed
 * ERROR: dev-lang/spidermonkey-1.7.0-r2 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  62:  Called src_install
 *   environment, line 2675:  Called die
 * The specific snippet of code:
 *       emake -f Makefile.ref install DESTDIR="${D}" LIBDIR="$(get_libdir)" || die;
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-12-07 18:19:54 UTC
Initial glance: Need to patch the build system to not call chown/chmod
Comment 3 Sven Schwyn (svoop) 2010-12-16 11:50:33 UTC
With the (attached) fix-permissions patch, the (attached) ecopied ebuild fails to install with...

* QA Notice: invalid self-reference install_name Darwin_OPT.OBJ/libjs.dylib in /usr/lib/libjs.dylib

I'm no C dev, can someone help me out here?
Comment 4 Sven Schwyn (svoop) 2010-12-16 11:51:30 UTC
Created attachment 257303 [details]
spidermonkey-1.7.0-r2.ebuild
Comment 5 Sven Schwyn (svoop) 2010-12-16 11:51:59 UTC
Created attachment 257305 [details]
spidermonkey-1.7.0-fix-permissions.patch
Comment 6 Sven Schwyn (svoop) 2011-02-11 20:23:24 UTC
I've created a separate bug for dev-lang/spidermonkey which is a prerequisite for MongoDB.

Bug #354523
Comment 7 Sven Schwyn (svoop) 2011-02-12 13:13:13 UTC
Furthermore, MongoDB works on V8 as well if built with the v8 USE flag. Here's the new ebuild request for V8:

Bug #354601
Comment 8 Sven Schwyn (svoop) 2011-02-15 12:00:15 UTC
Created attachment 262587 [details]
Ecopied and prefexified ebuild

This ebuild works on my Intel Mac, but should be fine for other architectures as well. As the spidermonkey ebuild is not yet ready, the "v8" USE flag is mandatory.

Line 40:
Detect and enforce the architecture. This is necessary e.g. on my Intel Mac because Gentoo Prefix compiles in 32bit on "nocona" whereas MongoDB defaults to 64bit (when Mac OS X 10.6 is detected). 

Line 54:
Prefixed paths have to be passed explicitly.
Comment 9 Sven Schwyn (svoop) 2011-02-16 19:55:38 UTC
Created attachment 262795 [details]
diff against original ebuild
Comment 10 Fabian Groffen gentoo-dev 2011-09-24 17:42:26 UTC
mongodb/scons claims I don't have a compiler installed, so it seems to me mongodb needs more work than just your patch.  The scons build file is full of nightmares.
Comment 11 Ultrabug gentoo-dev 2012-05-22 13:01:15 UTC
I guess this bug is either becoming obsolete or needs to be renamed for something more specific.

I'll permit myself to close it in two weeks if you don't have any objection svoop. Feel free to open a new / more specific one based on the current ebuilds if needed.
Comment 12 Sven Schwyn (svoop) 2012-05-22 13:05:27 UTC
@Ultrabug: Sure, go ahead.
Comment 13 Ultrabug gentoo-dev 2012-05-22 13:06:05 UTC
@svoop, thanks mate.