Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8C43C431FB5 for ; Tue, 8 Feb 2011 13:13:13 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hBYBEHh4djqH for ; Tue, 8 Feb 2011 13:13:11 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 9A206431FB6 for ; Tue, 8 Feb 2011 13:13:11 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 37E9819F33D9; Tue, 8 Feb 2011 22:13:10 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id yJ3o96Hz9GLQ; Tue, 8 Feb 2011 22:13:08 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id E50E919F33FE; Tue, 8 Feb 2011 22:13:08 +0100 (CET) Received: from wsheee.2x.cz (unknown [213.29.198.144]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id C1E87FA004; Tue, 8 Feb 2011 22:13:07 +0100 (CET) Received: from wsh by wsheee.2x.cz with local (Exim 4.72) (envelope-from ) id 1Pmus2-0001fn-2X; Tue, 08 Feb 2011 22:13:10 +0100 From: Michal Sojka To: Thomas Schwinge , Carl Worth , notmuch@notmuchmail.org Subject: Re: Build system In-Reply-To: <87tyge9a76.fsf@kepler.schwinge.homeip.net> References: <1294747284-18791-1-git-send-email-thomas@schwinge.name> <87bp30n3sc.fsf@yoom.home.cworth.org> <87lj22pun9.fsf@kepler.schwinge.homeip.net> <87bp2yptxj.fsf@kepler.schwinge.homeip.net> <87aaiilk2o.fsf@yoom.home.cworth.org> <87tyge9a76.fsf@kepler.schwinge.homeip.net> User-Agent: Notmuch/0.5-103-g1253785 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Tue, 08 Feb 2011 22:13:09 +0100 Message-ID: <87r5bip6vu.fsf@wsheee.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2011 21:13:13 -0000 On Tue, 08 Feb 2011, Thomas Schwinge wrote: > On Sun, 30 Jan 2011 21:14:39 +1000, Carl Worth wrote: > > On Sun, 30 Jan 2011 11:28:08 +0100, Thomas Schwinge wrote: > > > Still, my point holds that (unless someone is willing to spend time on > > > this, of course) we shouldn't try to replicate the Autotools, but instead > > > keep our system as simple as it currently is, and thus just have it fail > > > if configured outside of the source tree. > > > > Oh, I agree that if we don't support this then we should give the user a > > nice error message. But I think it will actually be very easy to add > > support for this. (And at this point, I think the notmuch build system > > is something that other projects could emulate if they want. I don't > > think it's too crazt). > > Is the testsuite also easy to convert to VPATH style builds? (I don't > know, but would expect some difficulties.) It won't be easy to run the tests in different directory, but the following approach might be sufficient: When notmuch is configured and compiled in a different directory, then running `make test` there could run the tests in the original directory but the tests will invoke the notmuch binary from where it was compiled. If you send the patch for out-of-source compilation, I'll modify the test suite to work with it. -Michal