1MIME-Version: 1.0 2Date: Tue, 17 Nov 2009 11:36:14 -0800 3Message-ID: <cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com> 4From: Alex Botero-Lowry <alex.boterolowry@gmail.com> 5To: notmuch@notmuchmail.org 6Content-Type: multipart/mixed; boundary=0016e687869333b1570478963d35 7Subject: [notmuch] preliminary FreeBSD support 8X-BeenThere: notmuch@notmuchmail.org 9X-Mailman-Version: 2.1.12 10Precedence: list 11List-Id: "Use and development of the notmuch mail system." 12 <notmuch.notmuchmail.org> 13List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>, 14 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe> 15List-Archive: <http://notmuchmail.org/pipermail/notmuch> 16List-Post: <mailto:notmuch@notmuchmail.org> 17List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help> 18List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>, 19 <mailto:notmuch-request@notmuchmail.org?subject=subscribe> 20Sender: notmuch-bounces@notmuchmail.org 21Errors-To: notmuch-bounces@notmuchmail.org 22 23--0016e687869333b1570478963d35 24Content-Type: multipart/alternative; boundary=0016e687869333b14e0478963d33 25 26--0016e687869333b14e0478963d33 27Content-Type: text/plain; charset=ISO-8859-1 28 29I saw the announcement this morning, and was very excited, as I had been 30hoping sup would be turned into a library, 31since I like the concept more than the UI (I'd rather an emacs interface). 32 33I did a preliminary compile which worked out fine, but 34sysconf(_SC_SC_GETPW_R_SIZE_MAX) returns -1 on 35FreeBSD, so notmuch_config_open segfaulted. 36 37Attached is a patch that supplies a default buffer size of 64 in cases where 38-1 is returned. 39 40http://www.opengroup.org/austin/docs/austin_328.txt - seems to indicate this 41is acceptable behavior, 42and http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg016808.htmlspecifically 43uses 64 as the 44buffer size. 45 46--0016e687869333b14e0478963d33 47Content-Type: text/html; charset=ISO-8859-1 48Content-Transfer-Encoding: quoted-printable 49 50I saw the announcement this morning, and was very excited, as I had been ho= 51ping sup would be turned into a library,<br>since I like the concept more t= 52han the UI (I'd rather an emacs interface).<br><br>I did a preliminary = 53compile which worked out fine, but sysconf(_SC_SC_GETPW_R_SIZE_MAX) returns= 54 -1 on<br> 55FreeBSD, so notmuch_config_open segfaulted.<br><br>Attached is a patch that= 56 supplies a default buffer size of 64 in cases where -1 is returned.<br><br= 57><a href=3D"http://www.opengroup.org/austin/docs/austin_328.txt">http://www= 58.opengroup.org/austin/docs/austin_328.txt</a> - seems to indicate this is a= 59cceptable behavior,<br> 60and <a href=3D"http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg01680= 618.html">http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg016808.html<= 62/a> specifically uses 64 as the<br>buffer size.<br><br><br> 63 64--0016e687869333b14e0478963d33-- 65--0016e687869333b1570478963d35 66Content-Type: application/octet-stream; 67 name="0001-Deal-with-situation-where-sysconf-_SC_GETPW_R_SIZE_M.patch" 68Content-Disposition: attachment; 69 filename="0001-Deal-with-situation-where-sysconf-_SC_GETPW_R_SIZE_M.patch" 70Content-Transfer-Encoding: base64 71X-Attachment-Id: f_g252e6gs0 72 73RnJvbSBlM2JjNGJiZDdiOWQwZDA4NjgxNmFiNWY4ZjJkNmZmZWExZGQzZWE0IE1vbiBTZXAgMTcg 74MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGV4YW5kZXIgQm90ZXJvLUxvd3J5IDxhbGV4LmJvdGVyb2xv 75d3J5QGdtYWlsLmNvbT4KRGF0ZTogVHVlLCAxNyBOb3YgMjAwOSAxMTozMDozOSAtMDgwMApTdWJq 76ZWN0OiBbUEFUQ0hdIERlYWwgd2l0aCBzaXR1YXRpb24gd2hlcmUgc3lzY29uZihfU0NfR0VUUFdf 77Ul9TSVpFX01BWCkgcmV0dXJucyAtMQoKLS0tCiBub3RtdWNoLWNvbmZpZy5jIHwgICAgMiArKwog 78MSBmaWxlcyBjaGFuZ2VkLCAyIGluc2VydGlvbnMoKyksIDAgZGVsZXRpb25zKC0pCgpkaWZmIC0t 79Z2l0IGEvbm90bXVjaC1jb25maWcuYyBiL25vdG11Y2gtY29uZmlnLmMKaW5kZXggMjQ4MTQ5Yy4u 80ZTcyMjBkOCAxMDA2NDQKLS0tIGEvbm90bXVjaC1jb25maWcuYworKysgYi9ub3RtdWNoLWNvbmZp 81Zy5jCkBAIC03Nyw2ICs3Nyw3IEBAIHN0YXRpYyBjaGFyICoKIGdldF9uYW1lX2Zyb21fcGFzc3dk 82X2ZpbGUgKHZvaWQgKmN0eCkKIHsKICAgICBsb25nIHB3X2J1Zl9zaXplID0gc3lzY29uZihfU0Nf 83R0VUUFdfUl9TSVpFX01BWCk7CisgICAgaWYgKHB3X2J1Zl9zaXplID09IC0xKSBwd19idWZfc2l6 84ZSA9IDY0OwogICAgIGNoYXIgKnB3X2J1ZiA9IHRhbGxvY196ZXJvX3NpemUgKGN0eCwgcHdfYnVm 85X3NpemUpOwogICAgIHN0cnVjdCBwYXNzd2QgcGFzc3dkLCAqaWdub3JlZDsKICAgICBjaGFyICpu 86YW1lOwpAQCAtMTAxLDYgKzEwMiw3IEBAIHN0YXRpYyBjaGFyICoKIGdldF91c2VybmFtZV9mcm9t 87X3Bhc3N3ZF9maWxlICh2b2lkICpjdHgpCiB7CiAgICAgbG9uZyBwd19idWZfc2l6ZSA9IHN5c2Nv 88bmYoX1NDX0dFVFBXX1JfU0laRV9NQVgpOworICAgIGlmIChwd19idWZfc2l6ZSA9PSAtMSkgcHdf 89YnVmX3NpemUgPSA2NDsKICAgICBjaGFyICpwd19idWYgPSB0YWxsb2NfemVyb19zaXplIChjdHgs 90IHB3X2J1Zl9zaXplKTsKICAgICBzdHJ1Y3QgcGFzc3dkIHBhc3N3ZCwgKmlnbm9yZWQ7CiAgICAg 91Y2hhciAqbmFtZTsKLS0gCjEuNi41LjIKCg== 92--0016e687869333b1570478963d35 93Content-Type: text/plain; charset="us-ascii" 94MIME-Version: 1.0 95Content-Transfer-Encoding: 7bit 96Content-Disposition: inline 97 98_______________________________________________ 99notmuch mailing list 100notmuch@notmuchmail.org 101http://notmuchmail.org/mailman/listinfo/notmuch 102 103--0016e687869333b1570478963d35-- 104 105