1 Return-Path: <alex.boterolowry@gmail.com>
\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 93512431FBC
\r
6 for <notmuch@notmuchmail.org>; Tue, 17 Nov 2009 11:36:16 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id kZBOSJkg8HUp for <notmuch@notmuchmail.org>;
\r
11 Tue, 17 Nov 2009 11:36:14 -0800 (PST)
\r
12 Received: from mail-pw0-f51.google.com (mail-pw0-f51.google.com
\r
14 by olra.theworths.org (Postfix) with ESMTP id 97F88431FAE
\r
15 for <notmuch@notmuchmail.org>; Tue, 17 Nov 2009 11:36:14 -0800 (PST)
\r
16 Received: by pwj10 with SMTP id 10so181713pwj.30
\r
17 for <notmuch@notmuchmail.org>; Tue, 17 Nov 2009 11:36:14 -0800 (PST)
\r
18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
19 h=domainkey-signature:mime-version:received:date:message-id:subject
\r
20 :from:to:content-type;
\r
21 bh=WkALQ7xcwXfC2PRBDFoNkkMv2fR+opuFak4fTMbFETA=;
\r
22 b=beZOWf3rXiqG2Q3nZVDQPOP8JaJAElaSzEBEzbaxbQZ8MLffVuQQN75f8EbuwYoB/D
\r
23 8y1igTvWrWZ+izgzlrBArO2CB6LSKF0OOFmW9lQFmt6qI64FwqCvVDIzeM70V+kvLyYX
\r
24 soGU4Px/9QMq9a5cwC+/SxR+0/6g49niqCkps=
\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
26 h=mime-version:date:message-id:subject:from:to:content-type;
\r
27 b=EuIvjlj55KndkXlRFejdQMbLNY+CHYaR24wu8w4FnC2ddz4TOaSoDM3RKwM9x2lljY
\r
28 QclpHbqsV4GhGanr0eB8XJdNl4VICEK0mLRnTePt825FOF4PLgIuCr5Jix/ETD4LGSCI
\r
29 qeAbP9b+n/3TOqlLxR4ldCd+iDa0QMHCiWxfw=
\r
31 Received: by 10.114.253.23 with SMTP id a23mr1109744wai.155.1258486574067;
\r
32 Tue, 17 Nov 2009 11:36:14 -0800 (PST)
\r
33 Date: Tue, 17 Nov 2009 11:36:14 -0800
\r
34 Message-ID: <cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com>
\r
35 From: Alex Botero-Lowry <alex.boterolowry@gmail.com>
\r
36 To: notmuch@notmuchmail.org
\r
37 Content-Type: multipart/mixed; boundary=0016e687869333b1570478963d35
\r
38 Subject: [notmuch] preliminary FreeBSD support
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.12
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Tue, 17 Nov 2009 19:36:16 -0000
\r
53 --0016e687869333b1570478963d35
\r
54 Content-Type: multipart/alternative; boundary=0016e687869333b14e0478963d33
\r
56 --0016e687869333b14e0478963d33
\r
57 Content-Type: text/plain; charset=ISO-8859-1
\r
59 I saw the announcement this morning, and was very excited, as I had been
\r
60 hoping sup would be turned into a library,
\r
61 since I like the concept more than the UI (I'd rather an emacs interface).
\r
63 I did a preliminary compile which worked out fine, but
\r
64 sysconf(_SC_SC_GETPW_R_SIZE_MAX) returns -1 on
\r
65 FreeBSD, so notmuch_config_open segfaulted.
\r
67 Attached is a patch that supplies a default buffer size of 64 in cases where
\r
70 http://www.opengroup.org/austin/docs/austin_328.txt - seems to indicate this
\r
71 is acceptable behavior,
\r
72 and http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg016808.htmlspecifically
\r
76 --0016e687869333b14e0478963d33
\r
77 Content-Type: text/html; charset=ISO-8859-1
\r
78 Content-Transfer-Encoding: quoted-printable
\r
80 I saw the announcement this morning, and was very excited, as I had been ho=
\r
81 ping sup would be turned into a library,<br>since I like the concept more t=
\r
82 han the UI (I'd rather an emacs interface).<br><br>I did a preliminary =
\r
83 compile which worked out fine, but sysconf(_SC_SC_GETPW_R_SIZE_MAX) returns=
\r
85 FreeBSD, so notmuch_config_open segfaulted.<br><br>Attached is a patch that=
\r
86 supplies a default buffer size of 64 in cases where -1 is returned.<br><br=
\r
87 ><a href=3D"http://www.opengroup.org/austin/docs/austin_328.txt">http://www=
\r
88 .opengroup.org/austin/docs/austin_328.txt</a> - seems to indicate this is a=
\r
89 cceptable behavior,<br>
\r
90 and <a href=3D"http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg01680=
\r
91 8.html">http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg016808.html<=
\r
92 /a> specifically uses 64 as the<br>buffer size.<br><br><br>
\r
94 --0016e687869333b14e0478963d33--
\r
96 --0016e687869333b1570478963d35
\r
97 Content-Type: application/octet-stream;
\r
98 name="0001-Deal-with-situation-where-sysconf-_SC_GETPW_R_SIZE_M.patch"
\r
99 Content-Disposition: attachment;
\r
100 filename="0001-Deal-with-situation-where-sysconf-_SC_GETPW_R_SIZE_M.patch"
\r
101 Content-Transfer-Encoding: base64
\r
102 X-Attachment-Id: f_g252e6gs0
\r
104 RnJvbSBlM2JjNGJiZDdiOWQwZDA4NjgxNmFiNWY4ZjJkNmZmZWExZGQzZWE0IE1vbiBT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