[
https://issues.apache.org/jira/browse/COUCHDB-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086408#comment-13086408
]
Paul Joseph Davis commented on COUCHDB-1012:
--------------------------------------------
Looking at both of these, I quite prefer the couch-config path over the
pkg-config. couch-config offers a lot more settings and the patch is a lot more
sane. I don't see why the pkg-config script is introducing new top level
directories into the build system and so on.
Only minor thing, the couch-config script uses -? for to display usage. I've
not seen ? used for usage info since DOS, that's not some sort of shell script
standard I've never seen is it? Even if it is, -h and --help should be
supported as well.
Other than that, I'd like to have Noah glance at that shell script as well. It
looks pretty straight forward to me but he's the shell script portability
expert.
Other than that, I'd say it looks good to ship.
> 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