Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2AA577048 for ; Wed, 17 Aug 2011 18:00:53 +0000 (UTC) Received: (qmail 57724 invoked by uid 500); 17 Aug 2011 18:00:52 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 57376 invoked by uid 500); 17 Aug 2011 18:00: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 57321 invoked by uid 99); 17 Aug 2011 18:00:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2011 18:00:50 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,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; Wed, 17 Aug 2011 18:00:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4C5BDC0515 for ; Wed, 17 Aug 2011 18:00:29 +0000 (UTC) Date: Wed, 17 Aug 2011 18:00:29 +0000 (UTC) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Message-ID: <1975155789.45946.1313604029309.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <4155411.145251294178325740.JavaMail.jira@thor> Subject: [jira] [Commented] (COUCHDB-1012) Utility to help plugin developers manage paths 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-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086483#comment-13086483 ] Paul Joseph Davis commented on COUCHDB-1012: -------------------------------------------- 1. We don't have to alias everything. 2. You have to be kidding me that you expect people to puzzle over which of those variables is where .couch files are stored. There are a couple common use cases that are motivating this tool: * Where the hell are the config files? * Where the hell are my db files? * Where the hell is that URI file? * Where the hell do I put beam files? These are answers people are looking for when they get frustrated. The last thing people should have to do is "work out where CouchDB specific sub-directories are." I'm biblically familiar with our build system and I can't name every combination of variables and subpaths off the top of my head. Bottom line: I *can* work these things out but I shouldn't have to. I want this tool so that I don't have to recall that localstatedir where where the one things are while the other bits are in `couch-config -n --localstatelibdir`/couchdb/erlang/couchdb-`couchdb -n --version`/ebin/. Then again maybe I'm just slow and that's more clear than --dbdir. Two related notes: We should add a -n to affect the echo adding a newline (useful for script substitution as above). couchebindir and couchincludedir should be replaced with --erllibdir. There's no reason for ebin dir. The include directory is only useful for compiling other code. After install this is setup as a proper ERL_LIBS directory structure so -include_lib("couchdb/include/couch_db.hrl"). should work with --erllibdir alone. > Utility to help plugin developers manage paths > ---------------------------------------------- > > Key: COUCHDB-1012 > URL: https://issues.apache.org/jira/browse/COUCHDB-1012 > Project: CouchDB > Issue Type: New Feature > Components: Build System > Reporter: Randall Leeds > Assignee: Randall Leeds > Fix For: 1.2 > > Attachments: 0001-add-couch-config-file-used-to-ease-the-build-of-plug.patch, 0001-add-couch-config-file-used-to-ease-the-build-of-plug.patch, 0001-support-pkg-config-for-plugins-COUCHDB-1012.patch > > > Developers may want to write plugins (like GeoCouch) for CouchDB. Many hooks in the configuration system allow loading arbitrary Erlang modules to handle various internal tasks, but currently there is no straightforward and portable way for developers of these plugins to discover the location of the CouchDB library files. > Two options that have been proposed are to use pkg-config or install a separate script that could be invoked (e.g. as couch-config --erl-libs) to discover important CouchDB installation paths. > As far as I know the loudest argument against pkg-config is lack of support for Windows. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira