couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Chesneau (JIRA)" <>
Subject [jira] [Updated] (COUCHDB-1012) Utility to help plugin developers manage paths
Date Thu, 07 Jul 2011 13:59:17 GMT


Benoit Chesneau updated COUCHDB-1012:

    Attachment: 0001-add-couch-config-file-used-to-ease-the-build-of-plug.patch

Following our last discussion on IRC, find attached apatch that provide the new couch-config
command to couchdb. This is a full shell script built during installation. 


$ ./bin/couch-config
Usage: couch-config [OPTION]

The couch-config command runs the Apache CouchDB configuration helper


  --incdir      Print path to include dir
  --libdir      Print path to lib dir
  --ebindir     Print path to ebin dir
  --privdir     Print path to priv dir
  --bindir      Print Path to the couchdb binary
  --confdir     Print Path to the configuration dir
  --dbdir       Print path to database dir
  --viewdir     Print path to view index dir
  --urifile     Print path to uri file
  --logfile     Print path to log file
  --version     Print version of couch-config
  -?            Print usage

For last confdir/dbdir/viewdir/urifile & logfile options It may be better to directly
acces to couchdb and get the settings from the ini since these values can be changed. Thoughts

> Utility to help plugin developers manage paths
> ----------------------------------------------
>                 Key: COUCHDB-1012
>                 URL:
>             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,
> 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
> 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:


View raw message