From dev-return-21757-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Tue Mar 27 22:39:22 2012 Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72D0590B5 for ; Tue, 27 Mar 2012 22:39:22 +0000 (UTC) Received: (qmail 20346 invoked by uid 500); 27 Mar 2012 22:39:21 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 20304 invoked by uid 500); 27 Mar 2012 22:39:21 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 20296 invoked by uid 99); 27 Mar 2012 22:39:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 22:39:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dave@muse.net.nz designates 209.85.212.52 as permitted sender) Received: from [209.85.212.52] (HELO mail-vb0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 22:39:15 +0000 Received: by vbzb23 with SMTP id b23so455652vbz.11 for ; Tue, 27 Mar 2012 15:38:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding :x-gm-message-state; bh=AWS3gGmZ4jfYU5jJgidDy45VAn1kBbAijQV0e8a+qgo=; b=GfsDCudK8e4aD7BO9byyLmRdYrl9vXCRA924Y5UxmEZNtgBFZP3Xn1qGTxJj699IC+ bZKjtKZm2N/Yo8cS1XVoqu4xeZcZzvcGz7g962HHV6cLWRoyZ1GhpDSbn+y04BgMSAvB 9rNl5AQ33/QWoXLL1BSvIks2kKY6/1WF+8q9pQV4CFxbUNJSq9n9rYhe0oq1nmaZ2cud nrwbQwWxoyzQR1Spr9PEF2CCBb5y6yTGDqUW7mFRVKrICDZo/Cypq4goMVMod3gQfwwV P0iqZaFcZ4aib3GopSlvUkZb1hqVcbC2u/uscIb5X/GKosuMXw4dEWfhWDILnjrHERNu 8O3Q== MIME-Version: 1.0 Received: by 10.52.34.175 with SMTP id a15mr10651961vdj.18.1332887933666; Tue, 27 Mar 2012 15:38:53 -0700 (PDT) Received: by 10.52.107.233 with HTTP; Tue, 27 Mar 2012 15:38:53 -0700 (PDT) X-Originating-IP: [84.112.19.176] In-Reply-To: References: Date: Wed, 28 Mar 2012 00:38:53 +0200 Message-ID: Subject: Re: Mac homebrew users From: Dave Cottlehuber To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlZ3jB3dE/TaOR5cAdnrL7zND4uhami42kCyxilZ192cJGzRC7AYdBkq/3AthlxbSWerP3S On 26 March 2012 01:31, Dave Cottlehuber wrote: > On 25 March 2012 09:32, Paul Davis wrote: >> I've not looked into this thoroughly but has anyone thought to try >> patching Erlang to use the newer openssl? > > No, and I'm pretty sure I'll come back scarred (but a better > programmer) if I did tho. > > I have this working now on Lion, https://gist.github.com/2147079 with > updated patch > & instructions. > > Relax (YMMV). > A+ > Dave Hi everybody, TL;DR: New couch & openssl recipes submitted to homebrew & gist[1], also on my fork[2]. Assuming these are accepted, you'll need to: # cleanup brew update brew remove --force openssl erlang couchdb icu4c spidermonkey nspr # install pre-reqs brew install icu4c openssl # ensure we build against the new keg-only versions brew link icu4c openssl brew install erlang --no-docs brew install couchdb [--devel] #optional --devel will track 1.2.x vs 1.1.1 by default And hopefully use 1.2.0 as default very soon too! TL: After more testing using a script[3] from davisp, I can see that the new recipe is significantly more stable *but* still occasionally crashes - around 1 time in 1.5 hours of heavy testing, and that it's not related to the openssl version used as I can use 1.0.1 just as effectively. Beno=EEt and & have been using the OpenSSL 1.0.0x series for a while in the windows & refuge build for some time now, so I've sent a pull request to homebrew to accommodate this instead, with automatic detection of using 64 bit or 32 bit builds as required by your platform. This seems stable enough for my dev needs but feel free to dig further. Should I raise this on erlang-bugs maybe as well? [1]: https://gist.github.com/2147079 [2]: https://github.com/dch/homebrew/tree/couchdb [3]: https://gist.github.com/2219748 A+ Dave