You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Randall Leeds (JIRA)" <ji...@apache.org> on 2011/01/11 13:32:46 UTC
[jira] Updated: (COUCHDB-562) link couchjs with bound libmozjs
[ https://issues.apache.org/jira/browse/COUCHDB-562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Randall Leeds updated COUCHDB-562:
----------------------------------
Attachment: couchdb-562.patch
Here's an alternative patch against current trunk.
As compared with the previous patch it:
1) avoids polluting the global $LIBS variable so e.g. the icu driver is not linked against spidermonkey
2) uses pkg-config, but should still fall back on the old --with-js-* variables
It should work to compile a functioning CouchDB with just a bare ./configure on Ubuntu 10.10. It does here (full disclosure: I have the mozilla-daily ppa enabled, but I think the normal version in 10.10 also ships the pkg-config file for xulrunner-dev).
I'm particularly interested to know if it breaks the standard compilation procedure for any devs or packagers, especially on Windows.
> link couchjs with bound libmozjs
> --------------------------------
>
> Key: COUCHDB-562
> URL: https://issues.apache.org/jira/browse/COUCHDB-562
> Project: CouchDB
> Issue Type: Improvement
> Components: Build System
> Affects Versions: 0.11
> Environment: linux, ubuntu,debian
> Reporter: Meno Abels
> Fix For: 1.2
>
> Attachments: couchdb-562.patch, couchdb-mozjs-rpath.patch
>
>
> If you build the couchdb from the source with a prefix set and --with-js-[lib|include] option the resulting couchjs programm in <prefix>/lib/couchdb/bin/couchjs does not know where to find the specified libmozjs.so which was specified in with-js-lib. This causes that quite all test will fail.
> To fix this the rpath has to setup during the compile. I don't had a look where to do this.
> but a small shell wrapper fix it also
> #!/bin/sh
> LD_LIBRARY_PATH=... exec $0.orig $@
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.