Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 8a / 4ae8b0ba089d8520033ba5b5cdb581a010dc5c
1 Return-Path: <amdragon@mit.edu>\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 ED8F9431FC4\r
6         for <notmuch@notmuchmail.org>; Wed,  4 Dec 2013 08:20:07 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 z7kkQhYJt7uA for <notmuch@notmuchmail.org>;\r
16         Wed,  4 Dec 2013 08:20:02 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-8.mit.edu (dmz-mailsec-scanner-8.mit.edu\r
18         [18.7.68.37])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id D2E3B431FCB\r
22         for <notmuch@notmuchmail.org>; Wed,  4 Dec 2013 08:20:00 -0800 (PST)\r
23 X-AuditID: 12074425-b7fd96d000000c39-7b-529f56308b3c\r
24 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\r
25         (using TLS with cipher AES256-SHA (256/256 bits))\r
26         (Client did not present a certificate)\r
27         by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
28         id 20.99.03129.0365F925; Wed,  4 Dec 2013 11:20:00 -0500 (EST)\r
29 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
30         by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id rB4GJv9B029964; \r
31         Wed, 4 Dec 2013 11:19:58 -0500\r
32 Received: from drake.dyndns.org\r
33         (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
34         [216.15.114.40]) (authenticated bits=0)\r
35         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
36         by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id rB4GJqmk001674\r
37         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
38         Wed, 4 Dec 2013 11:19:53 -0500\r
39 Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
40         (envelope-from <amdragon@mit.edu>)\r
41         id 1VoFB2-0002Vw-Iv; Wed, 04 Dec 2013 11:19:52 -0500\r
42 From: Austin Clements <amdragon@MIT.EDU>\r
43 To: notmuch@notmuchmail.org\r
44 Subject: [PATCH 1/3] lib: Make VERSION macros agree with soname version\r
45 Date: Wed,  4 Dec 2013 11:19:44 -0500\r
46 Message-Id: <1386173986-9624-1-git-send-email-amdragon@mit.edu>\r
47 X-Mailer: git-send-email 1.8.4.rc3\r
48 X-Brightmail-Tracker:\r
49  H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsUixCmqrGsQNj/IYO9rDYsbrd2MFk3TnS2u\r
50         35zJ7MDscev+a3aPZ6tuMXtsOfSeOYA5issmJTUnsyy1SN8ugSvj2fwJrAUf+Cp6/59mbWCc\r
51         wtPFyMkhIWAicePUOyYIW0ziwr31bF2MXBxCArOZJP6/380K4WxglPhw8CY7hHObSaL5+leo\r
52         zFxGiY5d/cwg/WwCGhLb9i9nBLFFBKQldt6dzQpiMwt4SSy70A9mCwu4S6y5shloBwcHi4Cq\r
53         RP/nEpAwr4C9xNmzk5khzlCSWHhqG+sERt4FjAyrGGVTcqt0cxMzc4pTk3WLkxPz8lKLdC30\r
54         cjNL9FJTSjcxgoKF3UV1B+OEQ0qHGAU4GJV4eBXT5wUJsSaWFVfmHmKU5GBSEuUVDJ4fJMSX\r
55         lJ9SmZFYnBFfVJqTWnyIUYKDWUmEd3IgUI43JbGyKrUoHyYlzcGiJM57i8M+SEggPbEkNTs1\r
56         tSC1CCYrw8GhJMFrGwrUKFiUmp5akZaZU4KQZuLgBBnOAzRcFqSGt7ggMbc4Mx0if4pRUUqc\r
57         93AIUEIAJJFRmgfXC4vmV4ziQK8I82aAtPMAEwFc9yugwUxAg5sfzAMZXJKIkJJqYNz7usAp\r
58         ROv6wubc0ynr+0T7Ox4KRjPONkj5wuR0Yqk9b+HCIwYsUwvCBVnXvI+2P8Xzf1nehWf72XVm\r
59         6ZkuXd6xR8rNrKRw2+nzdZJqTTuC3WVcni7sSrsxfyrLzCqPOcYLmwVfZwgHBK0U99cQPqSm\r
60         cnKLw46CsM6pM5nUW1M/FBTtYL/6RImlOCPRUIu5qDgRAEPO98rBAgAA\r
61 X-BeenThere: notmuch@notmuchmail.org\r
62 X-Mailman-Version: 2.1.13\r
63 Precedence: list\r
64 List-Id: "Use and development of the notmuch mail system."\r
65         <notmuch.notmuchmail.org>\r
66 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
68 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
69 List-Post: <mailto:notmuch@notmuchmail.org>\r
70 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
71 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
72         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
73 X-List-Received-Date: Wed, 04 Dec 2013 16:20:08 -0000\r
74 \r
75 We have two distinct "library version" numbers: the soname version and\r
76 the version macros.  We need both for different reasons: the version\r
77 macros enable easy compile-time version detection (and conditional\r
78 compilation), while the soname version enables runtime version\r
79 detection (which includes the version checking done by things like the\r
80 Python bindings).\r
81 \r
82 However, currently, these two version numbers are different, which is\r
83 unnecessary and can lead to confusion (especially in things like\r
84 Debian, which include the soname version in the package name).  This\r
85 patch makes them the same by bumping the version macros up to agree\r
86 with the soname version.\r
87 \r
88 (We should probably keep the version number in just one place so they\r
89 can't get out of sync, but that can be done in another patch.)\r
90 ---\r
91  lib/Makefile.local | 3 +++\r
92  lib/notmuch.h      | 8 ++++++--\r
93  2 files changed, 9 insertions(+), 2 deletions(-)\r
94 \r
95 diff --git a/lib/Makefile.local b/lib/Makefile.local\r
96 index 155ac02..cd2c60d 100644\r
97 --- a/lib/Makefile.local\r
98 +++ b/lib/Makefile.local\r
99 @@ -18,6 +18,9 @@ LIBNOTMUCH_VERSION_MINOR = 0\r
100  # simply compatible changes to the implementation).\r
101  LIBNOTMUCH_VERSION_RELEASE = 0\r
102  \r
103 +# Note: Don't forget to change the VERSION macros in notmuch.h when\r
104 +# any of the above change.\r
105 +\r
106  ifeq ($(PLATFORM),MACOSX)\r
107  LIBRARY_SUFFIX = dylib\r
108  # On OS X, library version numbers go before suffix.\r
109 diff --git a/lib/notmuch.h b/lib/notmuch.h\r
110 index 7c3a30c..42188a8 100644\r
111 --- a/lib/notmuch.h\r
112 +++ b/lib/notmuch.h\r
113 @@ -41,8 +41,12 @@ NOTMUCH_BEGIN_DECLS\r
114  #define TRUE 1\r
115  #endif\r
116  \r
117 -#define NOTMUCH_MAJOR_VERSION  0\r
118 -#define NOTMUCH_MINOR_VERSION  17\r
119 +/*\r
120 + * The library version number.  This must agree with the soname\r
121 + * version in Makefile.local.\r
122 + */\r
123 +#define NOTMUCH_MAJOR_VERSION  3\r
124 +#define NOTMUCH_MINOR_VERSION  0\r
125  #define NOTMUCH_MICRO_VERSION  0\r
126  \r
127  /*\r
128 -- \r
129 1.8.4.rc3\r
130 \r