couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randall Leeds (JIRA)" <>
Subject [jira] Updated: (COUCHDB-562) link couchjs with bound libmozjs
Date Tue, 11 Jan 2011 20:32:48 GMT


Randall Leeds updated COUCHDB-562:

    Attachment: couchdb-562_2.patch

Thanks for the feedback Paul.
I had initially prioritized the --with variables, changed it for some reason I can't remember
after sleeping for a night.

I think I've got everything ordered correctly in this new patch.
With this new patch:
1) Using both --with-variables skips pkg-config altogether
2) Using only one resolves the other with pkg-config
3) Using neither just uses pkg-config
4) Fixed a typo in the JS_CFLAGS added to *NIX builds.

I've successfully built using all combinations of --with-js-* and not using them on my machine
Still curious to hear reports from Windows, *BSD, and Darwin.

As to versions of autotools... when the distribution is built the macros get expanded into
the configure script. This means the release manager needs a version that supports the pkg-config
m4 macros but end users compiling from source should have no new dependencies. Even if pkg-config
isn't present and they don't specify the --with-js-* flags, the old, sensible defaults are
assumed and then compilation checks for JS will either succeed or fail as normal.

> link couchjs with bound libmozjs
> --------------------------------
>                 Key: COUCHDB-562
>                 URL:
>             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-562_2.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 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
> 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.

View raw message