From 087fd36057f86869d525170e1744ca271e98101a Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Sun, 20 Oct 2013 17:50:48 +0300 Subject: [PATCH] Re: notmuch on w32 --- 28/a5b1aa440492908706fe13148df03b98eea0b6 | 124 ++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 28/a5b1aa440492908706fe13148df03b98eea0b6 diff --git a/28/a5b1aa440492908706fe13148df03b98eea0b6 b/28/a5b1aa440492908706fe13148df03b98eea0b6 new file mode 100644 index 000000000..8ad84c10b --- /dev/null +++ b/28/a5b1aa440492908706fe13148df03b98eea0b6 @@ -0,0 +1,124 @@ +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 4254E431FC2 + for ; Sun, 20 Oct 2013 07:51:10 -0700 (PDT) +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 2Sgv-O53NEad for ; + Sun, 20 Oct 2013 07:50:59 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 82263431FC0 + for ; Sun, 20 Oct 2013 07:50:59 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 6058110007D; + Sun, 20 Oct 2013 17:50:48 +0300 (EEST) +From: Tomi Ollila +To: Claudio Bley +Subject: Re: notmuch on w32 +In-Reply-To: + +References: <87mwm71x91.wl%claudio.bley@gmail.com> + <87bo2lvxx3.fsf@zancas.localnet> + +User-Agent: Notmuch/0.16+112~g46b74be (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +Cc: "notmuch@notmuchmail.org" +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: Sun, 20 Oct 2013 14:51:10 -0000 + +On Sat, Oct 19 2013, Felipe Contreras wrote: + +> On Sat, Oct 19, 2013 at 2:54 PM, David Bremner wrote: +>> Claudio Bley writes: +>> +>>> I wanted to use notmuch on MS Windows and thus have ported the code to +>>> be able to compile with MinGW and MSYS using the GNU autotools on that +>>> platform. +>> +>> Do you really need autotools, or was it just the easiest path to get +>> things working on w32? +> +> No, you don't. I've compiled many things for Windows using MinGW, and +> you don't need autotools. + +Me too, using the current configure script with MSYS bash should be no +problem (if there is I'm interested to know where). + +I'd suggest you do a system that attaches to the current system with as +small changes as possible (so you get reviewers) and put all windows +specific things to separate script(s) (which is executed *only* when windows +build is detected). The gnulib dependency could be handled so that in +case (ext/*)gnulib directory does not exist, first +'git clone git://git.savannah.gnu.org/gnulib.git' is done -- and then +a specific commit is checked out from the clone (git reset --hard ) +This way we get an exact working tree from gnulib but only when someone +attempts to do w32 build (if there are some licensing issues (copyright +assignment papers???) we can require user to manually execute the script +which checks out the repository, maybe with magic command line argument) +A draft of a checkout script is at the end of this email. +(If you desire to build required parts using autotools in your custom +script please do so. In any case nobody will take the responsibility +to support the w32 build :D) + + +Tomi + +> +> In fact, autotools makes things worst (as usual), by requiring m4, +> perl, and bunch of heavy dependencies. +> +> % make CROSS_COMPILE=i486-mingw32- +> +> -- +> Felipe Contreras + +--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- + +#!/bin/sh + +set -eux + +# commit 9f15e6702a27649a59263a7ed571805a979d9e70 +# Author: Eric Blake +# Date: Fri Oct 18 10:30:42 2013 -0600 + +commit=9f15e6702a27649a59263a7ed571805a979d9e70 + +test -d ext || mkdir ext +cd ext +test -d gnulib || git clone git://git.savannah.gnu.org/gnulib.git + +cd gnulib +if git reset --hard $commit +then + : +else + git fetch origin + git reset --hard $commit +fi -- 2.26.2