1 Return-Path: <sojkam1@fel.cvut.cz>
\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 35F164196F4
\r
6 for <notmuch@notmuchmail.org>; Mon, 29 Mar 2010 01:43:17 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5
\r
12 tests=[BAYES_20=-0.001] autolearn=ham
\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 0C7iEg3lbb3G for <notmuch@notmuchmail.org>;
\r
16 Mon, 29 Mar 2010 01:43:16 -0700 (PDT)
\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 3491D4196F3
\r
19 for <notmuch@notmuchmail.org>; Mon, 29 Mar 2010 01:43:16 -0700 (PDT)
\r
20 Received: from localhost (unknown [192.168.200.4])
\r
21 by max.feld.cvut.cz (Postfix) with ESMTP id D4C4819F33FA;
\r
22 Mon, 29 Mar 2010 10:43:14 +0200 (CEST)
\r
23 X-Virus-Scanned: IMAP AMAVIS
\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])
\r
25 by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,
\r
27 with ESMTP id DfwwjoMc-Se2; Mon, 29 Mar 2010 10:43:11 +0200 (CEST)
\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])
\r
29 by max.feld.cvut.cz (Postfix) with ESMTP id 8191A19F339D;
\r
30 Mon, 29 Mar 2010 10:43:11 +0200 (CEST)
\r
31 Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30])
\r
32 (Authenticated sender: sojkam1)
\r
33 by imap.feld.cvut.cz (Postfix) with ESMTPSA id 0348FFA003;
\r
34 Mon, 29 Mar 2010 10:43:11 +0200 (CEST)
\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.71)
\r
36 (envelope-from <sojkam1@fel.cvut.cz>)
\r
37 id 1NwAYw-0002j3-RU; Mon, 29 Mar 2010 10:43:10 +0200
\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>
\r
39 To: Bhaskara Marthi <bhaskara@gmail.com>, notmuch@notmuchmail.org,
\r
41 In-Reply-To: <330356ae1003282354s639a0ff5p34a6a29bbe145ed5@mail.gmail.com>
\r
42 References: <330356ae1003282354s639a0ff5p34a6a29bbe145ed5@mail.gmail.com>
\r
43 Date: Mon, 29 Mar 2010 10:43:10 +0200
\r
44 Message-ID: <87ljdbh61t.fsf@steelpick.2x.cz>
\r
46 Content-Type: text/plain; charset=us-ascii
\r
47 Subject: [notmuch] [PATCH] Fix compilation when getline is not available
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Mon, 29 Mar 2010 08:43:17 -0000
\r
62 On Mon, 29 Mar 2010, Bhaskara Marthi wrote:
\r
63 > Hi all, I'm trying to build notmuch on os x (master branch from today). I
\r
64 > got the ports for gmime and xapian, and installed talloc from source, with
\r
65 > some minor hitches (just getting talloc alone from samba failed on autoconf
\r
66 > due to lack of libreplace.m4, so I installed all of samba from a port; a
\r
67 > pkg-config file for talloc was not put in the right place after that,
\r
68 > though, so I had to make one).
\r
70 > Anyway, now compilation runs into the following error. Looks like an issue
\r
71 > with the makefile given that getline is in fact defined in compat/. How
\r
72 > should I fix this?
\r
74 The following patch should fix it.
\r
77 compat/Makefile.local | 2 +-
\r
78 2 files changed, 2 insertions(+), 2 deletions(-)
\r
80 diff --git a/Makefile b/Makefile
\r
81 index 46f001c..93c6b2b 100644
\r
84 @@ -46,7 +46,7 @@ subdirs = compat emacs lib
\r
85 global_deps = Makefile Makefile.config Makefile.local \
\r
86 $(subdirs:%=%/Makefile) $(subdirs:%=%/Makefile.local)
\r
88 -include Makefile.config Makefile.local $(subdirs:%=%/Makefile.local)
\r
89 +include Makefile.config $(subdirs:%=%/Makefile.local) Makefile.local
\r
91 # The user has not set any verbosity, default to quiet mode and inform the
\r
92 # user how to enable verbose compiles.
\r
93 diff --git a/compat/Makefile.local b/compat/Makefile.local
\r
94 index 17b4514..9f84c5f 100644
\r
95 --- a/compat/Makefile.local
\r
96 +++ b/compat/Makefile.local
\r
99 extra_cflags += -I$(dir)
\r
101 -notmuch_compat_srcs =
\r
102 +notmuch_compat_srcs :=
\r
104 ifneq ($(HAVE_GETLINE),1)
\r
105 notmuch_compat_srcs += $(dir)/getline.c $(dir)/getdelim.c
\r