Re: [PATCH v4 09/16] index encrypted parts when asked.
[notmuch-archives.git] / e1 / 34662453a7322f142405f795471ca1683e588e
1 Return-Path: <tomi.ollila@iki.fi>\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 31D44431FBC\r
6         for <notmuch@notmuchmail.org>; Wed, 16 Jan 2013 08:01:17 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 PMXc5hY4ORXn for <notmuch@notmuchmail.org>;\r
16         Wed, 16 Jan 2013 08:01:13 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 8B9F5431FAE\r
19         for <notmuch@notmuchmail.org>; Wed, 16 Jan 2013 08:01:13 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 52D4C100045;\r
22         Wed, 16 Jan 2013 18:01:02 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: david@tethera.net, notmuch@notmuchmail.org\r
25 Subject: Re: [PATCH 4/5] debian: add python 3 bindings\r
26 In-Reply-To: <1358340262-16304-5-git-send-email-david@tethera.net>\r
27 References: <1358340262-16304-1-git-send-email-david@tethera.net>\r
28         <1358340262-16304-5-git-send-email-david@tethera.net>\r
29 User-Agent: Notmuch/0.14+260~gd7a61d6 (http://notmuchmail.org) Emacs/24.2.1\r
30         (x86_64-unknown-linux-gnu)\r
31 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
32         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
33         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
34 Date: Wed, 16 Jan 2013 18:01:01 +0200\r
35 Message-ID: <m2ehhlnmma.fsf@guru.guru-group.fi>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain\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: Wed, 16 Jan 2013 16:01:17 -0000\r
52 \r
53 On Wed, Jan 16 2013, david@tethera.net wrote:\r
54 \r
55 > From: David Bremner <bremner@debian.org>\r
56 >\r
57 > This patch is due to Jakub Wilk <jwilk@debian.org>.\r
58 >\r
59 > It does add a build depend on python3 for people using the "make\r
60 > debian-snapshot" target.\r
61 > ---\r
62 >  debian/changelog              |    4 +++-\r
63 >  debian/control                |   14 ++++++++++++++\r
64 >  debian/python-notmuch.install |    2 +-\r
65 >  debian/rules                  |    5 +++++\r
66 >  4 files changed, 23 insertions(+), 2 deletions(-)\r
67 >\r
68 > diff --git a/debian/changelog b/debian/changelog\r
69 > index f4925a1..40b7695 100644\r
70 > --- a/debian/changelog\r
71 > +++ b/debian/changelog\r
72 > @@ -4,8 +4,10 @@ notmuch (0.15~rc1-1) experimental; urgency=low\r
73 >    * Change priority to optional (Closes: #687217).\r
74 >    * Remove Dm-Upload-Allowed field, as this is no longer used by\r
75 >      Debian.\r
76 > +  * Add python3 bindings, thanks to Jakub Wilk (Closes:\r
77 > +    #683515).\r
78 >  \r
79 > - -- David Bremner <bremner@debian.org>  Mon, 07 Jan 2013 21:40:52 -0400\r
80 > + -- David Bremner <bremner@debian.org>  Wed, 16 Jan 2013 08:25:02 -0400\r
81 >  \r
82 >  notmuch (0.14-1) experimental; urgency=low\r
83 >  \r
84 > diff --git a/debian/control b/debian/control\r
85 > index 75b55a5..5bb0d05 100644\r
86 > --- a/debian/control\r
87 > +++ b/debian/control\r
88 > @@ -14,6 +14,7 @@ Build-Depends:\r
89 >   libtalloc-dev,\r
90 >   libz-dev,\r
91 >   python-all (>= 2.6.6-3~),\r
92 > + python3-all (>= 3.1.2-7~),\r
93 >   emacs23-nox | emacs23 (>=23~) | emacs23-lucid (>=23~) |\r
94 >   emacs24-nox | emacs24 (>=24~) | emacs24-lucid (>=24~),\r
95 >   gdb,\r
96 > @@ -75,6 +76,19 @@ Description: python interface to the notmuch mail search and index library\r
97 >   This package provides a Python interface to the notmuch\r
98 >   functionality, directly interfacing with a shared notmuch library.\r
99 >  \r
100 > +Package: python3-notmuch\r
101 > +Architecture: all\r
102 > +Section: python\r
103 > +Depends: ${misc:Depends}, ${python3:Depends}, libnotmuch3\r
104 > +Description: Python 3 interface to the notmuch mail search and index library\r
105 > + Notmuch is a system for indexing, searching, reading, and tagging\r
106 > + large collections of email messages in maildir or mh format. It uses\r
107 > + the Xapian library to provide fast, full-text search with a very\r
108 > + convenient search syntax.\r
109 > + .\r
110 > + This package provides a Python 3 interface to the notmuch\r
111 > + functionality, directly interfacing with a shared notmuch library.\r
112 > +\r
113 >  Package: notmuch-emacs\r
114 >  Architecture: all\r
115 >  Section: mail\r
116 > diff --git a/debian/python-notmuch.install b/debian/python-notmuch.install\r
117 > index 607c065..b2cc136 100644\r
118 > --- a/debian/python-notmuch.install\r
119 > +++ b/debian/python-notmuch.install\r
120 > @@ -1 +1 @@\r
121 > -usr/lib/python*\r
122 > +usr/lib/python2*\r
123 > diff --git a/debian/rules b/debian/rules\r
124 > index 8e30353..45e970a 100755\r
125 > --- a/debian/rules\r
126 > +++ b/debian/rules\r
127 > @@ -1,5 +1,7 @@\r
128 >  #!/usr/bin/make -f\r
129 >  \r
130 > +python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {}\r
131 > +\r
132 \r
133 This could save 1-n fork/execve pairs (depending the number of outputs\r
134 py3versions provides). Also IMHO this is a bit more self-evident:\r
135 \r
136 python3_all = py3versions -s | tr ' ' '\n' | xargs -t -I {} env {}\r
137 \r
138 All of the other (drop-in) replacements are more complex, like:\r
139 \r
140 python3_all = exec sh -c 'for cmd in `exec py3versions -s`; do $$cmd "$$@"' 0\r
141 \r
142 .. but this (untested version) uses least number of forks & execves.\r
143 \r
144 Still, maybe least amount of time wasted is to stick with\r
145 the original ;) -- but by all means, play with the options\r
146 if you wish to do so, I don't think Beijing air pollution\r
147 situation will be any better ATM whatever you do ;)\r
148 \r
149 LGTM for rest of the series (too).\r
150 \r
151 Tomi\r
152 \r
153 >  %:\r
154 >       dh $@ --with python2\r
155 >  \r
156 > @@ -9,13 +11,16 @@ override_dh_auto_configure:\r
157 >  override_dh_auto_build:\r
158 >       dh_auto_build\r
159 >       dh_auto_build --sourcedirectory bindings/python\r
160 > +     cd bindings/python && $(python3_all) setup.py build\r
161 >       $(MAKE) -C contrib/notmuch-mutt\r
162 >  \r
163 >  override_dh_auto_clean:\r
164 >       dh_auto_clean\r
165 >       dh_auto_clean --sourcedirectory bindings/python\r
166 > +     cd bindings/python && $(python3_all) setup.py clean -a\r
167 >       $(MAKE) -C contrib/notmuch-mutt clean\r
168 >  \r
169 >  override_dh_auto_install:\r
170 >       dh_auto_install\r
171 >       dh_auto_install --sourcedirectory bindings/python\r
172 > +     cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp\r
173 > -- \r
174 > 1.7.10.4\r
175 >\r
176 > _______________________________________________\r
177 > notmuch mailing list\r
178 > notmuch@notmuchmail.org\r
179 > http://notmuchmail.org/mailman/listinfo/notmuch\r