[ https://issues.apache.org/jira/browse/COUCHDB-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977792#action_12977792 ]
Randall Leeds commented on COUCHDB-1012: ---------------------------------------- Apparently, "pkg-config works on multiple platforms: Linux and other UNIX-like operating systems, Mac OS X and Windows." [1] This makes me favor using it rather than re-inventing the wheel. My feeling is that any OS X or Windows user who's installing CouchDB from source is already jumping through some dependency hoops. It's a trivial thing to add a dependency on pkg-config to the homebrew recipe for CouchDB. I've never built CouchDB on Windows, but isn't it done through MingW or something? If that's so, then it's not hard for these people to install pkg-config once as well (they might even already have it). We can make our own little script, but it just seems silly to me. Seems like we're polluting people's PATH with another Couch-related executable when a common, portable tool for doing this task already exists. I'm all for minimizing dependencies, but there's a limit and there's a reason why dependencies exist. If no one objects I'll try to write the patch. [1] http://pkg-config.freedesktop.org/wiki/ > 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 > > 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. - You can reply to this email to add a comment to the issue online.