From dev-return-6509-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Wed Sep 16 15:36:31 2009 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 86957 invoked from network); 16 Sep 2009 15:36:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Sep 2009 15:36:30 -0000 Received: (qmail 97279 invoked by uid 500); 16 Sep 2009 15:36:27 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 97204 invoked by uid 500); 16 Sep 2009 15:36:27 -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 97049 invoked by uid 99); 16 Sep 2009 15:36:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2009 15:36:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2009 15:36:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 07F17234C1EE for ; Wed, 16 Sep 2009 08:36:02 -0700 (PDT) Message-ID: <591095300.1253115362031.JavaMail.jira@brutus> Date: Wed, 16 Sep 2009 08:36:02 -0700 (PDT) From: "Adam Kocoloski (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-505) Erlang code path prefers older versions of CouchDB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Erlang code path prefers older versions of CouchDB -------------------------------------------------- Key: COUCHDB-505 URL: https://issues.apache.org/jira/browse/COUCHDB-505 Project: CouchDB Issue Type: Bug Affects Versions: 0.11 Environment: any system where different minor versions of CouchDB have been installed to the same --prefix Reporter: Adam Kocoloski Priority: Blocker Fix For: 0.11 We're using ERL_LIBS to add PREFIX/lib/couchdb/erlang/lib to the code path on CouchDB startup. If multiple versions of CouchDB have been installed, that directory might look something like mochiweb-r97 ibrowse-1.5.2 couch-0.9.0 couch-0.10.0a ... In this case, we want the system to use beams from couch-0.10.0a, but apparently Erlang's code loader sorts couch-0.9.0 higher. One solution would be to fall back to explicitly adding specific app directories to the code path using -pa. An elegant solution would be to make sure that our app directories are named in such a way that they automatically sort correctly in the code loader. I'm not sure this is really possible, though, particularly when a user is installing development versions built from source next to released versions. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.