Re: [PATCH v2] Omit User-Agent: header by default
[notmuch-archives.git] / 10 / 0e48353b0ba1dbe7287810bb0eea6864be09df
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 A5B00429E31\r
6         for <notmuch@notmuchmail.org>; Sat, 16 Jul 2011 13:34:45 -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 5Cov-Q6GMZZj for <notmuch@notmuchmail.org>;\r
16         Sat, 16 Jul 2011 13:34:44 -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 D2990429E29\r
21         for <notmuch@notmuchmail.org>; Sat, 16 Jul 2011 13:34:43 -0700 (PDT)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc30w-142167167212.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [142.167.167.212]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p6GKYdEZ014827\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Sat, 16 Jul 2011 17:34:39 -0300\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1QiBZO-0008Vb-V7; Sat, 16 Jul 2011 17:34:38 -0300\r
31 From: david@tethera.net\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 1/2] libnotmuch: export Xapian typeinfo symbols\r
34 Date: Sat, 16 Jul 2011 17:34:27 -0300\r
35 Message-Id: <1310848468-27665-2-git-send-email-david@tethera.net>\r
36 X-Mailer: git-send-email 1.7.5.4\r
37 In-Reply-To: <1310848468-27665-1-git-send-email-david@tethera.net>\r
38 References: <87liw4ei1t.fsf@zancas.localnet>\r
39         <1310848468-27665-1-git-send-email-david@tethera.net>\r
40 Cc: David Bremner <bremner@debian.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: Sat, 16 Jul 2011 20:34:46 -0000\r
54 \r
55 From: David Bremner <bremner@debian.org>\r
56 \r
57 The lack of such exporting seems to cause problems catching\r
58 exceptions, as suggested by\r
59 \r
60     http://gcc.gnu.org/wiki/Visibility\r
61 \r
62 This manifested in the symbol-hiding test failing when notmuch was\r
63 compile with gcc 4.4.5. On i386, this further manifested as notmuch\r
64 new failing to run (crashing with an uncaught exception on first run).\r
65 ---\r
66  lib/Makefile.local        |    4 +---\r
67  lib/gen-version-script.sh |   16 ++++++++++++++++\r
68  2 files changed, 17 insertions(+), 3 deletions(-)\r
69  create mode 100644 lib/gen-version-script.sh\r
70 \r
71 diff --git a/lib/Makefile.local b/lib/Makefile.local\r
72 index 7e2bc87..48f8852 100644\r
73 --- a/lib/Makefile.local\r
74 +++ b/lib/Makefile.local\r
75 @@ -76,9 +76,7 @@ $(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 -       printf "{\nglobal:\n" > notmuch.sym\r
80 -       sed  -n 's/^\s*\(notmuch_[a-z_]*\)\s*(.*/\t\1;/p' $< >> notmuch.sym\r
81 -       printf "local: *;\n};\n" >> notmuch.sym\r
82 +       sh lib/gen-version-script.sh < $< > $@\r
83  \r
84  $(dir)/$(SONAME): $(dir)/$(LIBNAME)\r
85         ln -sf $(LIBNAME) $@\r
86 diff --git a/lib/gen-version-script.sh b/lib/gen-version-script.sh\r
87 new file mode 100644\r
88 index 0000000..1cd33be\r
89 --- /dev/null\r
90 +++ b/lib/gen-version-script.sh\r
91 @@ -0,0 +1,16 @@\r
92 +cat <<EOF\r
93 +{\r
94 +global:\r
95 +       _ZTIN6Xapian10LogicErrorE;\r
96 +       _ZTIN6Xapian12RuntimeErrorE;\r
97 +       _ZTIN6Xapian16DocNotFoundErrorE;\r
98 +       _ZTIN6Xapian20InvalidArgumentErrorE;\r
99 +       _ZTIN6Xapian5ErrorE;\r
100 +       _ZTSN6Xapian10LogicErrorE;\r
101 +       _ZTSN6Xapian12RuntimeErrorE;\r
102 +       _ZTSN6Xapian16DocNotFoundErrorE;\r
103 +       _ZTSN6Xapian20InvalidArgumentErrorE;\r
104 +       _ZTSN6Xapian5ErrorE;\r
105 +EOF\r
106 +sed  -n 's/^\s*\(notmuch_[a-z_]*\)\s*(.*/\t\1;/p'\r
107 +printf "local: *;\n};\n"\r
108 -- \r
109 1.7.5.4\r
110 \r