couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Tunnell-Jones (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1012) Utility to help plugin developers manage paths
Date Thu, 05 May 2011 01:03:03 GMT


Andrew Tunnell-Jones commented on COUCHDB-1012:

As far as I'm aware the only method of giving rebar additional include paths is to hardcode
them in rebar.config with something like {erl_opts, [{i, "Path"}]}. Due to this I think the
least friction for integrating with rebar would be an option to get the path flag free so
something like this can be dropped in rebar.config:

{pre_hooks, [
	     {clean, "rm include/couch_helper.hrl"},
	     {compile, "echo -include\\(\"`pkg-config whatever`include/couchdb.hrl\"\\). > include/couch_helper.hrl"}

+1 on having a flag-free path to the lib dir for install commands. An option to get the path
to local.d could be useful too.

> Utility to help plugin developers manage paths
> ----------------------------------------------
>                 Key: COUCHDB-1012
>                 URL:
>             Project: CouchDB
>          Issue Type: New Feature
>          Components: Build System
>            Reporter: Randall Leeds
>         Attachments: 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
> 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