Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / d9 / afee6a5756af45d99179809d497c7f06a6c2b7
1 Return-Path: <bremner@tethera.net>\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 24693429E2E\r
6         for <notmuch@notmuchmail.org>; Sun, 26 Jun 2011 18:09:16 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 x4qPmiQ+xD7d for <notmuch@notmuchmail.org>;\r
16         Sun, 26 Jun 2011 18:09:15 -0700 (PDT)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 4D3FD431FD0\r
21         for <notmuch@notmuchmail.org>; Sun, 26 Jun 2011 18:09:15 -0700 (PDT)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc30w-142167176081.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [142.167.176.81]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p5R1990I020741\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Sun, 26 Jun 2011 22:09:11 -0300\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1Qb0K5-0005hw-1M; Sun, 26 Jun 2011 22:09:09 -0300\r
31 From: david@tethera.net\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH] libnotmuch: build symbols list without relying on gcc\r
34         -aux-info.\r
35 Date: Sun, 26 Jun 2011 22:08:52 -0300\r
36 Message-Id: <1309136932-21910-1-git-send-email-david@tethera.net>\r
37 X-Mailer: git-send-email 1.7.5.4\r
38 Cc: David Bremner <bremner@debian.org>\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\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: Mon, 27 Jun 2011 01:09:17 -0000\r
52 \r
53 From: David Bremner <bremner@debian.org>\r
54 \r
55 Carl reports "gcc -aux-info notmuch.aux lib/notmuch.h" does not\r
56 generate notmuch.aux for him with Debian gcc 4.6.0-8. A small\r
57 modification of the original sed regular expression allows us to work\r
58 directly from lib/notmuch.h, rather than preprocessing with gcc.\r
59 \r
60 As with most such simple regex based "parsing", this is quite\r
61 sensitive to the input format, and needs that each symbol to be\r
62 exported from libnotmuch should\r
63 \r
64 - start with "notmuch_"\r
65 - be the first non-whitespace token on the line\r
66 - be followed by an open parenthesis.\r
67 ---\r
68  lib/Makefile.local |    5 ++---\r
69  1 files changed, 2 insertions(+), 3 deletions(-)\r
70 \r
71 diff --git a/lib/Makefile.local b/lib/Makefile.local\r
72 index a33ba34..0459fd0 100644\r
73 --- a/lib/Makefile.local\r
74 +++ b/lib/Makefile.local\r
75 @@ -76,9 +76,8 @@ $(dir)/$(LIBNAME): $(libnotmuch_modules) notmuch.sym\r
76         $(call quiet,CXX $(CXXFLAGS)) $(libnotmuch_modules) $(FINAL_LIBNOTMUCH_LDFLAGS) $(LIBRARY_LINK_FLAG) -o $@\r
77  \r
78  notmuch.sym: lib/notmuch.h\r
79 -       gcc -aux-info notmuch.aux $<\r
80         printf "{\nglobal:\n" > notmuch.sym\r
81 -       sed  -n 's/.*\(notmuch_[a-z_]*\) (.*/\t\1;/p' notmuch.aux >> notmuch.sym\r
82 +       sed  -n 's/^\s*\(notmuch_[a-z_]*\)\s*(.*/\t\1;/p' $< >> notmuch.sym\r
83         printf "local: *;\n};\n" >> notmuch.sym\r
84  \r
85  $(dir)/$(SONAME): $(dir)/$(LIBNAME)\r
86 @@ -103,4 +102,4 @@ install-$(dir): $(dir)/$(LIBNAME)\r
87         $(LIBRARY_INSTALL_POST_COMMAND)\r
88  \r
89  SRCS  := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs)\r
90 -CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/$(SONAME) $(dir)/$(LINKER_NAME) $(dir)$(LIBNAME) libnotmuch.a notmuch.aux notmuch.sym\r
91 +CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/$(SONAME) $(dir)/$(LINKER_NAME) $(dir)$(LIBNAME) libnotmuch.a notmuch.sym\r
92 -- \r
93 1.7.5.4\r
94 \r