Bug 197847

Summary: databases/couchdb: support passing optional parameters through rc.conf to couchdb's erlang vm
Product: Ports & Packages Reporter: Dave Cottlehuber <dch>
Component: Individual Port(s)Assignee: Jimmy Olgeni <olgeni>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (olgeni)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
couchdb.shar with patch
none
couch-pass-erl-flags.diff none

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!