Bug 197847 - databases/couchdb: support passing optional parameters through rc.conf to couchdb's erlang vm
Summary: databases/couchdb: support passing optional parameters through rc.conf to cou...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jimmy Olgeni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-20 12:52 UTC by Dave Cottlehuber
Modified: 2015-02-24 14:57 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (olgeni)


Attachments
couchdb.shar with patch (41.11 KB, text/plain)
2015-02-20 12:52 UTC, Dave Cottlehuber
no flags Details
couch-pass-erl-flags.diff (1.51 KB, patch)
2015-02-23 12:54 UTC, Dave Cottlehuber
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Cottlehuber freebsd_committer freebsd_triage 2015-02-20 12:52:42 UTC
Created attachment 153207 [details]
couchdb.shar with patch

this patch exposes the functionality already available in CouchDB itself, namely passing configuration and startup information to the erlang vm, by appending erlang flags in ERL_ZFLAGS. The ZFLAGS variant was chosen as most common usage is to override settings that couchdb already has by default -- for example, increasing number of async threads using +A 64, or enabling remsh access with `-name foo -setcookie nomnomnom`.

see https://github.com/dch/freebsd-ports/commit/eae1221 and https://github.com/dch/freebsd-ports/commit/eae1221.patch
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-20 12:52:42 UTC
Auto-assigned to maintainer olgeni@FreeBSD.org
Comment 2 Dave Cottlehuber freebsd_committer freebsd_triage 2015-02-23 12:54:47 UTC
Created attachment 153373 [details]
couch-pass-erl-flags.diff

as diff not shar this time.
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-02-24 14:56:53 UTC
A commit references this bug:

Author: olgeni
Date: Tue Feb 24 14:56:23 UTC 2015
New revision: 379802
URL: https://svnweb.freebsd.org/changeset/ports/379802

Log:
  Allow passing ERL_ZFLAGS to CouchDB via couchdb_erl_flags in rc.conf.

  ERL_ZFLAGS is used to configure the Erlang VM itself (see also
  erl(1), "EMULATOR FLAGS")

  PR:		197847
  Submitted by:	Dave Cottlehuber

Changes:
  head/databases/couchdb/Makefile
  head/databases/couchdb/files/couchdb.in
Comment 4 Jimmy Olgeni freebsd_committer freebsd_triage 2015-02-24 14:57:33 UTC
Committed - thanks!