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 C21B3E949 for ; Sat, 16 Feb 2013 00:08:29 +0000 (UTC) Received: (qmail 95511 invoked by uid 500); 15 Feb 2013 21:49:50 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 95412 invoked by uid 500); 15 Feb 2013 21:49:46 -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 95349 invoked by uid 99); 15 Feb 2013 21:49:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 21:49:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 21:49:38 +0000 Received: from [10.0.0.15] (91-66-82-235-dynip.superkabel.de [91.66.82.235]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.traeumt.net (Postfix) with ESMTPSA id 2F00C1433F for ; Fri, 15 Feb 2013 22:45:09 +0100 (CET) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Mac CouchDB binaries are ready to test From: Jan Lehnardt In-Reply-To: <28E47216-0BBF-40FF-B9E8-C909982149D0@cloudno.de> Date: Fri, 15 Feb 2013 22:49:16 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <7D193B42-1065-4B6A-9FBE-A7C01A0A1F75@apache.org> References: <99456F93-F389-4B40-BF50-459BC2F6A548@apache.org> <08AEF1BE-9E11-44AA-97CC-BDBE1A59993B@cloudno.de> <84CC1216-EDED-4F7A-97A3-9A05EC823C0A@cloudno.de> <8FDA2971-E6F2-4DDA-86A1-21F0B11BD9D9@apache.org> <5ECD6DD8-BD32-4EEF-90EA-7B371D40F8DB@cloudno.de> <2FDA99CB-FD73-4BC6-A4D2-4EA3B144DCF4@apache.org> <68D2FD65-361D-42C9-A932-ECB674BDD0C3@apache.org> <07D194F8-22D8-4824-BAD1-3B80E9C494AC@apache.org> <27DF84AE-09DE-48E8-9E6C-F524B4D5231B@cloudno.de> <640D2213-8202-43AD-8C50-B44924B2C35B@apache.org> <5F128672-80D8-41F7-B1FC-61E45A68BD51@apache.org> <6FCAE76C-4953-49D6-8749-09627DF18202@apache.org> <28E47216-0BBF-40FF-B9E8-C909982149D0@cloudno.de> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 15, 2013, at 22:34 , Hans J Schroeder wrote: >=20 > On Feb 15, 2013, at 5:48 PM, Jan Lehnardt wrote: >=20 >> Note: uploaded a new version to the same location that fixes an issue = if you are *not* upgrading (or otherwise don=92t have a = ~/Library/Preferences/couchdb-server.ini >>=20 >> Jan >> --=20 >>=20 >> On Feb 15, 2013, at 15:40 , Jan Lehnardt wrote: >>=20 >>> Okay, cool, I think I've got this: >>>=20 >>> http://people.apache.org/~jan/dist/packages/mac/1.2.1/ >>>=20 >>> Has a binary and signatures (please test) for a 1.2.1 that behaves = like 1.2.0 that it picks up ~/Library/Preferences/couchdb-server.ini >>>=20 >>> Commits I made for this: >>>=20 >>> = https://github.com/janl/couchdbx-app-1/commit/3110ca47c33878fb4e89ccbab988= 683afcc5a837 >>> = https://github.com/janl/couchdbx-app-1/commit/36dffe68b63351ba2c264c3501a9= cf5cf3b07857 >>> = https://github.com/janl/couchdbx-app-1/commit/ee9735b1a672d7e524ab4c94850c= 137ec9abfeac >>> = https://github.com/janl/couchdbx-app-1/commit/a9146c1adbd97aa8e93bb3968c8c= 18abb72c9e61 >>>=20 >>> Please test the binary one more time, I=92d especially like to hear = upgrade stories, where customisations (say create an admin) from 1.2.0 = still apply when you run 1.2.1. >>>=20 >>> Again, the main test suite will mostly give some trouble, but = "Verify Installation" should be all fine. >>>=20 >>> Woot Woot! >>> Jan >>> --=20 >>>=20 >>>=20 >>>=20 >>> On Feb 15, 2013, at 14:02 , Jan Lehnardt wrote: >>>=20 >>>>=20 >>>> On Feb 15, 2013, at 13:45 , Jan Lehnardt wrote: >>>>=20 >>>>>=20 >>>>> On Feb 15, 2013, at 13:43 , Jan Lehnardt wrote: >>>>>=20 >>>>>>=20 >>>>>> On Feb 14, 2013, at 22:50 , Jan Lehnardt wrote: >>>>>>=20 >>>>>>>=20 >>>>>>> On Feb 14, 2013, at 21:44 , Hans J Schroeder = wrote: >>>>>>>=20 >>>>>>>> +1 It runs on 10.8.2.=20 >>>>>>>>=20 >>>>>>>> Props on getting this running on earlier OSXes. I had no luck = with this. I tried different compiler switches like = "-mmacosx-version-min=3D10.6". >>>>>>>> I even used a completely new tool chain based on gcc-mp-4.5. I = believe everything build on 10.8 can only run on 10.8. >>>>>>>=20 >>>>>>> The magic is that I compiled it on 10.7. I=92ll keep a VM around = for that. >>>>>>>=20 >>>>>>>=20 >>>>>>>> On point though. I have checked in a modified version of the = couchdb start script (from master). It allows configuration via the = environment $COUCHDB_ADDITIONAL_CONFIG_FILE. This allows to move the = logs and database files to the user file space. Doing so the app can run = on r/o paths. >>>>>>>> As this was also used in version 1.2 the update to 1.2.1 will = find old databases. I guess we can copy this over as it is done with the = "erl" script. >>>>>>>=20 >>>>>>> Hm, I am not too keen on diverting from the shipping versions, = but would this mean if we ship 1.2.1 as is, that people wouldn=92t see = their 1.2.0 databases, unless I configure the same = $COUCHDB_ADDITIONAL_CONFIG_FILE? Where does the config file live? >>>>>>=20 >>>>>> Fun, I can=92t get the 1.2.0 binary* to run on any of my Macs. It = crashes on startup, no useful log information. >>>>>=20 >>>>> Curiously, running ./bin/couchdb from within the bundle works just = fine. >>>>=20 >>>> rm ~/Library/Preferences/*couch* helped. >>>>=20 >>>> Just curious, why aren=92t we using -a /path/to/file instead of the = ADDITIONAL_CONFIG_FILE? >>>>=20 >>>> I might just rewrite the ObjC code to use -a, to be 1.2.x = compatible without patching ./bin/couchdb >>>>=20 >>>> Best >>>> Jan >>>> --=20 >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>>>=20 >>>>>=20 >>>>>> So I can=92t test upgrades. For anyone still having a working = 1.2.0 Mac binary here, can you tell me, what the non-customised = database_dir (and other file paths are)? >>>>>>=20 >>>>>> We need to make this solid. >>>>>>=20 >>>>>> * = https://github.com/downloads/cloudnode/couchdbx-app/CouchDB%20Server-1.2.0= -OS%20X%2010.7.3.zip or = https://github.com/downloads/cloudnode/couchdbx-app/CouchDB%20Server-1.2.0= -20120614.zip via https://github.com/cloudnode/couchdbx-app/downloads* >>>>>>=20 >>>>>> Best >>>>>> Jan >>>>>> -- >>>>>>=20 >>>>>>>=20 >>>>>>> Best >>>>>>> Jan >>>>>>> -- >>>>>>>=20 >>>>>>>=20 >>>>>>>>=20 >>>>>>>> - Hans >>>>>>>>=20 >>>>>>>>=20 >>>>>>>> On Feb 14, 2013, at 6:24 PM, Jan Lehnardt = wrote: >>>>>>>>=20 >>>>>>>>> Same link, next try: >>>>>>>>>=20 >>>>>>>>> http://people.apache.org/~jan/Apache-CouchDB-1.2.1.zip >>>>>>>>>=20 >>>>>>>>> This works on 10.7 and 10.8 for me. >>>>>>>>>=20 >>>>>>>>> If I get a few +1s here, I=92ll put it on the site. >>>>>>>>>=20 >>>>>>>>> Best >>>>>>>>> Jan >>>>>>>>> -- >>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>> On Feb 14, 2013, at 17:18 , Jan Lehnardt = wrote: >>>>>>>>>=20 >>>>>>>>>>=20 >>>>>>>>>> On Feb 14, 2013, at 17:13 , Jason Smith = wrote: >>>>>>>>>>=20 >>>>>>>>>>> Yeah, relocatable binaries has so-far been a non-goal for = build-couchdb, >>>>>>>>>>> simply since it is kind of tedious. >>>>>>>>>>>=20 >>>>>>>>>>> If you still have access to the install-couchdb project, = that has a pretty >>>>>>>>>>> decent implementation of a post-install script which fixes = paths and things. >>>>>>>>>>=20 >>>>>>>>>> Yup, that=92s where I am. The XCode Project includes an = adaptation of the orginal >>>>>>>>>> script that is slightly off, but I hope I can fix that. I = don=92t think this needs >>>>>>>>>> to live in build-couchdb. >>>>>>>>>>=20 >>>>>>>>>> Best >>>>>>>>>> Jan >>>>>>>>>> --=20 >>>>>>>>>>=20 >>>>>>>>>>>=20 >>>>>>>>>>>=20 >>>>>>>>>>> On Thu, Feb 14, 2013 at 10:54 PM, Jan Lehnardt = wrote: >>>>>>>>>>>=20 >>>>>>>>>>>>=20 >>>>>>>>>>>> On Feb 14, 2013, at 16:48 , Jason Smith = wrote: >>>>>>>>>>>>=20 >>>>>>>>>>>>> Jan, are you still using build-couchdb for this? Sorry, = I've lost track. >>>>>>>>>>>>>=20 >>>>>>>>>>>>> It is failing for me too on my mac so I will put some work = in to get >>>>>>>>>>>> things >>>>>>>>>>>>> working again. I guess I'll see you in the GitHub issues = if so. >>>>>>>>>>>>=20 >>>>>>>>>>>> See Hans=92s PRs (or his master branch = cloudnode/build-couchdb) that makes >>>>>>>>>>>> things >>>>>>>>>>>> work on my end. >>>>>>>>>>>>=20 >>>>>>>>>>>> The only thing I am still fiddling with is automating the = relocatable Mac >>>>>>>>>>>> Binary >>>>>>>>>>>> creation. >>>>>>>>>>>>=20 >>>>>>>>>>>> Thx! >>>>>>>>>>>> Jan >>>>>>>>>>>> -- >>>>>>>>>>>>=20 >>>>>>>>>>>>=20 >>>>>>>>>>>>=20 >>>>>>>>>>>>>=20 >>>>>>>>>>>>>=20 >>>>>>>>>>>>> On Thu, Feb 14, 2013 at 9:49 PM, Jan Lehnardt = wrote: >>>>>>>>>>>>>=20 >>>>>>>>>>>>>> Alexander reports: >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>> [15:48:58] jan____: = /couchdbx-core/bin/couchdb: line 263: >>>>>>>>>>>>>> /Users/jan/build/bin/erl: No such file or directory on = 10.8 >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>> Back to the drawing board. >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>> On Feb 14, 2013, at 15:41 , Jan Lehnardt = wrote: >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>> I had a stab at this: >>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>> https://github.com/cloudnode/couchdbx-app/issues/4 >>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>> And seem to be able to build a correct zip file for 10.7 = and 10.8 on >>>>>>>>>>>>>> 10.7. >>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>> Can you all give it a try and we can put it up on the = website: >>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>> http://people.apache.org/~jan/Apache-CouchDB-1.2.1.zip >>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>> Cheers >>>>>>>>>>>>>>> Jan >>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>> On Feb 12, 2013, at 21:38 , Jan Lehnardt = wrote: >>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>> On Jan 20, 2013, at 20:55 , Hans J Schroeder = wrote: >>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>> On Jan 20, 2013, at 6:34 PM, Jan Lehnardt = wrote: >>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>> On Jan 20, 2013, at 15:25 , Hans J Schroeder = wrote: >>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>> On Jan 20, 2013, at 2:49 PM, Jan Lehnardt = wrote: >>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>> On Jan 19, 2013, at 17:22 , Hans J Schroeder = >>>>>>>>>>>> wrote: >>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>>> The Mac CouchDB 1.2.1 binaries are ready to test. = I tested on >>>>>>>>>>>>>> Mountain Lion and all tests went through. >>>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>>> http://gitweb.cloudno.de/downloads/ >>>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>>> - Hans >>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>> With =93Verify Installation=94 or the basics.js = test I get >>>>>>>>>>>>>> =93os_process_error, 133=94. When running `couchjs` solo = I get: >>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>>> ./bin/couchjs >>>>>>>>>>>>>>>>>>>> dyld: Library not loaded: = /opt/local/lib/libidn.11.dylib >>>>>>>>>>>>>>>>>>>> Referenced from: /Users/jan/Downloads/Apache >>>>>>>>>>>>>> = CouchDB.app/Contents/Resources/couchdbx-core/./bin/couchjs >>>>>>>>>>>>>>>>>>>> Reason: image not found >>>>>>>>>>>>>>>>>>>> Trace/BPT trap: 5 >>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>> Any ideas? >>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>> The rest looks very solid, thanks! :) >>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>> Cheers >>>>>>>>>>>>>>>>>>>> Jan >>>>>>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>> Hi Jan, >>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>> Thanks for testing. I wil have a look at it. >>>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>>> - Hans >>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>> Hey Hans, >>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>> I tried building one from source an ran into a few = issues that I >>>>>>>>>>>>>> wrote up here: >>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>> https://github.com/cloudnode/couchdbx-app/issues/4 >>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>> I feel we are very close to shipping something solid. >>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>> Jason, I found a few issues build-couchdb: >>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>> https://github.com/iriscouch/build-couchdb/issues/66 >>>>>>>>>>>>>>>>>> https://github.com/iriscouch/build-couchdb/issues/56 >>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>> I worked around it by temporarily unlinking help2man = in Homebrew, >>>>>>>>>>>> but >>>>>>>>>>>>>> that >>>>>>>>>>>>>>>>>> can=92t be the proper solution :) >>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>> Best >>>>>>>>>>>>>>>>>> Jan >>>>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>> I have found the bug. Here are the updated binaries: >>>>>>>>>>>>>> http://gitweb.cloudno.de/downloads/ >>>>>>>>>>>>>>>>> I have moved the bugged version into the rejected = directory. >>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>> I tried rebuilding here, and I still get the linkage to = the wrong >>>>>>>>>>>>>> ./bin/erl as outlined >>>>>>>>>>>>>>>> in https://github.com/cloudnode/couchdbx-app/issues/4 =97= How did you >>>>>>>>>>>>>> fix that and are these >>>>>>>>>>>>>>>> fixes online? >>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>> I also had to tmp-unlink help2man again as couchjs -h = was Abort >>>>>>>>>>>>>> Trapping. >>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>> Best >>>>>>>>>>>>>>>> Jan >>>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>=20 >>>>>>>>>>>>>=20 >>>>>>>>>>>>> -- >>>>>>>>>>>>> Iris Couch >>>>>>>>>>>>=20 >>>>>>>>>>>>=20 >>>>>>>>>>>=20 >>>>>>>>>>>=20 >>>>>>>>>>> --=20 >>>>>>>>>>> Iris Couch >>>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>=20 >>>>>>>=20 >>>>>>=20 >>>>>=20 >>>>=20 >>>=20 >>=20 >=20 >=20 > Hi, >=20 > -1 on 10.8.2 for me. >=20 > I have the upgrade scenario. CouchDB starts and I have all my = databases. That's great. >=20 > But the installation check fails. The view server dies with "Illegal = instruction: 4" when I run bin/couchjs. The last version was ok. Doh, good call. For some reason bin/couchjs fails (Jason?), yet lib/couchdb/bin/couchjs = works just fine, so I set the default query server to that, but that = breaks the upgrade case, obviously, I didn=92t realise that. My workaround now would be to just copy lib/couchdb/bin/couchjs into = bin/couchjs after cleaning up the paths and reverting to use bin/couchjs Sounds good? * * * Aside, I made a new repo https://github.com/janl/couchdb-mac-app that = doesn=92t have the (accidental commit) of the 1.2.1 zip binary in the = reflog. And I pushed https://github.com/janl/build-couchdb-mac which contains = the script for automating the whole procedure. Cheers Jan --=20