Re: Applying patches directly from emails?
[notmuch-archives.git] / 28 / a5b1aa440492908706fe13148df03b98eea0b6
1 Return-Path: <tomi.ollila@iki.fi>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 4254E431FC2\r
6         for <notmuch@notmuchmail.org>; Sun, 20 Oct 2013 07:51:10 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 2Sgv-O53NEad for <notmuch@notmuchmail.org>;\r
16         Sun, 20 Oct 2013 07:50:59 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 82263431FC0\r
19         for <notmuch@notmuchmail.org>; Sun, 20 Oct 2013 07:50:59 -0700 (PDT)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 6058110007D;\r
22         Sun, 20 Oct 2013 17:50:48 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Claudio Bley <claudio.bley@googlemail.com>\r
25 Subject: Re: notmuch on w32\r
26 In-Reply-To:\r
27  <CAMP44s3UeDJVYY+qDjyJ6qKOWZ59tyGzj776HrGh=wMV_JvnvQ@mail.gmail.com>\r
28 References: <87mwm71x91.wl%claudio.bley@gmail.com>\r
29         <87bo2lvxx3.fsf@zancas.localnet>\r
30         <CAMP44s3UeDJVYY+qDjyJ6qKOWZ59tyGzj776HrGh=wMV_JvnvQ@mail.gmail.com>\r
31 User-Agent: Notmuch/0.16+112~g46b74be (http://notmuchmail.org) Emacs/24.3.1\r
32         (x86_64-unknown-linux-gnu)\r
33 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
34         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
35         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
36 Date: Sun, 20 Oct 2013 17:50:48 +0300\r
37 Message-ID: <m2k3h86lo7.fsf@guru.guru-group.fi>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain\r
40 Cc: "notmuch@notmuchmail.org" <notmuch@notmuchmail.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sun, 20 Oct 2013 14:51:10 -0000\r
54 \r
55 On Sat, Oct 19 2013, Felipe Contreras <felipe.contreras@gmail.com> wrote:\r
56 \r
57 > On Sat, Oct 19, 2013 at 2:54 PM, David Bremner <david@tethera.net> wrote:\r
58 >> Claudio Bley <claudio.bley@googlemail.com> writes:\r
59 >>\r
60 >>> I wanted to use notmuch on MS Windows and thus have ported the code to\r
61 >>> be able to compile with MinGW and MSYS using the GNU autotools on that\r
62 >>> platform.\r
63 >>\r
64 >> Do you really need autotools, or was it just the easiest path to get\r
65 >> things working on w32?\r
66 >\r
67 > No, you don't. I've compiled many things for Windows using MinGW, and\r
68 > you don't need autotools.\r
69 \r
70 Me too, using the current configure script with MSYS bash should be no\r
71 problem (if there is I'm interested to know where). \r
72 \r
73 I'd suggest you do a system that attaches to the current system with as\r
74 small changes as possible (so you get reviewers) and put all windows\r
75 specific things to separate script(s) (which is executed *only* when windows\r
76 build is detected). The gnulib dependency could be handled so that in \r
77 case (ext/*)gnulib directory does not exist, first\r
78 'git clone git://git.savannah.gnu.org/gnulib.git' is done -- and then\r
79 a specific commit is checked out from the clone (git reset --hard <hash>)\r
80 This way we get an exact working tree from gnulib but only when someone\r
81 attempts to do w32 build (if there are some licensing issues (copyright\r
82 assignment papers???) we can require user to manually execute the script\r
83 which checks out the repository, maybe with magic command line argument)\r
84 A draft of a checkout script is at the end of this email.\r
85 (If you desire to build required parts using autotools in your custom\r
86 script please do so. In any case nobody will take the responsibility\r
87 to support the w32 build :D)\r
88 \r
89 \r
90 Tomi\r
91 \r
92 >\r
93 > In fact, autotools makes things worst (as usual), by requiring m4,\r
94 > perl, and bunch of heavy dependencies.\r
95 >\r
96 > % make CROSS_COMPILE=i486-mingw32-\r
97 >\r
98 > -- \r
99 > Felipe Contreras\r
100 \r
101 --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--\r
102 \r
103 #!/bin/sh\r
104 \r
105 set -eux\r
106 \r
107 # commit 9f15e6702a27649a59263a7ed571805a979d9e70\r
108 # Author: Eric Blake <eblake@redhat.com>\r
109 # Date:   Fri Oct 18 10:30:42 2013 -0600\r
110 \r
111 commit=9f15e6702a27649a59263a7ed571805a979d9e70\r
112 \r
113 test -d ext || mkdir ext\r
114 cd ext\r
115 test -d gnulib || git clone git://git.savannah.gnu.org/gnulib.git\r
116 \r
117 cd gnulib\r
118 if git reset --hard $commit\r
119 then\r
120         :\r
121 else\r
122         git fetch origin\r
123         git reset --hard $commit\r
124 fi\r