Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 61369 invoked from network); 31 Jan 2011 22:43:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Jan 2011 22:43:53 -0000 Received: (qmail 67492 invoked by uid 500); 31 Jan 2011 22:43:52 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 66868 invoked by uid 500); 31 Jan 2011 22:43:51 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 66820 invoked by uid 99); 31 Jan 2011 22:43:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jan 2011 22:43:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jan 2011 22:43:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 744AF183C42 for ; Mon, 31 Jan 2011 22:43:30 +0000 (UTC) Date: Mon, 31 Jan 2011 22:43:30 +0000 (UTC) From: "Randall Leeds (JIRA)" To: dev@couchdb.apache.org Message-ID: <1479296055.811.1296513810473.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (COUCHDB-562) link couchjs with bound libmozjs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Randall Leeds updated COUCHDB-562: ---------------------------------- Attachment: 0002-prevent-excessive-linking-of-mozjs-COUCHDB-1033.patch 0001-link-couchjs-w-mozjs-use-pkg-config-COUCHDB-562.patch Okay. 0001: This version of the patch uses pkg-config, when available, to determine how to link couchjs to spidermonkey. It makes to attempt to solve LD_LIBRARY_PATH and rpath issues, since distributions (*cough* debian) tend to have strong beliefs about how to do these things. It should be up to the distribution shipping xulrunner-devel to ensure that appropriate rpath options are specified in the pkg-config files for mozilla-js such that they will not break with minor version upgrades or to patch couchjs to set the LB_LIBRARY_PATH intelligently at runtime. I think this is the best we can do upstream. 0002: While I was hear, I discovered, reported, and subsequently incorporated COUCHDB-1033 - prevent excessive linking of mozjs. It only happened when --with-js-lib configure option. Now it doesn't. If you review this and commit it to trunk before end of day I'll consider it my birthday present. > 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: 0001-link-couchjs-w-mozjs-use-pkg-config-COUCHDB-562.patch, 0002-prevent-excessive-linking-of-mozjs-COUCHDB-1033.patch, couchdb-562.patch, couchdb-562_2.patch, couchdb-562_3.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 /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. - For more information on JIRA, see: http://www.atlassian.com/software/jira