Summary: | new ebuild dev-db/mongodb | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Sven Schwyn (svoop) <gentoo> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED OBSOLETE | ||
Severity: | enhancement | CC: | ultrabug |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 354523 | ||
Bug Blocks: | |||
Attachments: |
spidermonkey-1.7.0-r2.ebuild
spidermonkey-1.7.0-fix-permissions.patch Ecopied and prefexified ebuild diff against original ebuild |
Description
Sven Schwyn (svoop)
2010-12-07 17:38:21 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;
Initial glance: Need to patch the build system to not call chown/chmod 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? Created attachment 257303 [details]
spidermonkey-1.7.0-r2.ebuild
Created attachment 257305 [details]
spidermonkey-1.7.0-fix-permissions.patch
I've created a separate bug for dev-lang/spidermonkey which is a prerequisite for MongoDB. Bug #354523 Furthermore, MongoDB works on V8 as well if built with the v8 USE flag. Here's the new ebuild request for V8: Bug #354601 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.
Created attachment 262795 [details]
diff against original ebuild
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. 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. @Ultrabug: Sure, go ahead. @svoop, thanks mate. |