Re: [PATCH v2] Omit User-Agent: header by default
[notmuch-archives.git] / 12 / b058e2c62805edd6f0fdfb6e6afa553ef7664d
1 Return-Path: <jlmuir@imca.aps.anl.gov>\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 1738A431FB6\r
6         for <notmuch@notmuchmail.org>; Fri,  5 Sep 2014 05:47: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: 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 NrDoXns8A7Tt for <notmuch@notmuchmail.org>;\r
16         Fri,  5 Sep 2014 05:47:08 -0700 (PDT)\r
17 Received: from tuna.imca.aps.anl.gov (tuna.imca.aps.anl.gov [164.54.200.33])\r
18         by olra.theworths.org (Postfix) with ESMTP id 395A2431FAF\r
19         for <notmuch@notmuchmail.org>; Fri,  5 Sep 2014 05:47:08 -0700 (PDT)\r
20 Received: from bass.imca.aps.anl.gov (bass.imca.aps.anl.gov [164.54.200.38])\r
21         by tuna.imca.aps.anl.gov (Postfix) with SMTP id 019442005F\r
22         for <notmuch@notmuchmail.org>; Fri,  5 Sep 2014 07:47:05 -0500 (CDT)\r
23 Received: (qmail 9258 invoked by uid 502); 5 Sep 2014 12:47:05 -0000\r
24 Date: Fri, 5 Sep 2014 07:47:05 -0500\r
25 From: "J. Lewis Muir" <jlmuir@imca-cat.org>\r
26 To: David Bremner <david@tethera.net>\r
27 Subject: Re: BUG: bad notmuch shared library install_name on Mac OS X\r
28 Message-ID: <20140905124705.GA9173@bass.imca.aps.anl.gov>\r
29 References: <54089FBC.20404@imca-cat.org>\r
30  <87wq9jtawy.fsf@maritornes.cs.unb.ca>\r
31 Mime-Version: 1.0\r
32 Content-Type: text/plain; charset=us-ascii\r
33 Content-Disposition: inline\r
34 In-Reply-To: <87wq9jtawy.fsf@maritornes.cs.unb.ca>\r
35 Cc: notmuch@notmuchmail.org\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.13\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40         <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Fri, 05 Sep 2014 12:47:16 -0000\r
49 \r
50 On 9/4/14, 2:58 PM, David Bremner wrote:\r
51 > "J. Lewis Muir" <jlmuir@imca-cat.org> writes:\r
52\r
53 >> Hello.\r
54 >>\r
55 >> I submitted a patch [1] to fix a bug in how the notmuch shared\r
56 >> library is built on Mac OS X, but perhaps it's not clear it fixes a\r
57 >> bug, so I wanted to just request it be tagged as a bug for nmbug.\r
58\r
59 > Done, at least twice (waves to Jani).  \r
60 \r
61 Hi, David.\r
62 \r
63 Great!  Thanks!\r
64 \r
65 > The usual problem we have with OS/X patches is finding somebody to\r
66 > review them.\r
67 \r
68 OK.  I guess I can't help there, but the commit message does give short\r
69 instructions for how to reproduce the problem, so hopefully someone will\r
70 be able to review it.\r
71 \r
72 > It's a little surprising to me that it was completely\r
73 > broken before, since there have been people using notmuch on OS/X.\r
74 \r
75 Right.  I wonder if most people using notmuch on Mac OS X do so via\r
76 Homebrew or MacPorts.  In this case, they would never encounter the\r
77 problem because notmuch has already been packaged for them.\r
78 \r
79 Both Homebrew and MacPorts address the problem but in different ways.\r
80 Homebrew uses install_name_tool to correct the install_name on the\r
81 shared library post install.  Homebrew actually does this automatically\r
82 for all libraries (i.e. via fix_install_names) [1][2], so even the\r
83 package maintainer might never see the problem, and the formula has no\r
84 patch or indication of a needed install_name fix [3].\r
85 \r
86 I don't think MacPorts automatically fixes install_name problems, hence\r
87 its notmuch port does apply a patch [4][5] that is exactly the same as\r
88 what I submitted.\r
89 \r
90 I checked Fink, but it does not appear to have a notmuch package.\r
91 \r
92 Personally, I use Pkgsrc, and it did not have this patch for its notmuch\r
93 package, but I submitted it, and it has recently been committed to the\r
94 -current tree [6].\r
95 \r
96 Another possibility is that people running notmuch on Mac OS X may set\r
97 DYLD_LIBRARY_PATH [7] in their environment to point to where their\r
98 libraries are installed.  If this contains the path where the notmuch\r
99 shared library is installed, then the notmuch binary would be able to\r
100 find the notmuch shared library even if its install_name is not a full\r
101 path.  But this should definitely not be a requirement for running a\r
102 program; I think DYLD_LIBRARY_PATH should only be used in development.\r
103 \r
104 Thanks!\r
105 \r
106 Lewis\r
107 \r
108 [1] https://github.com/Homebrew/homebrew/blob/master/Library/Homebrew/formula_installer.rb\r
109 [2] https://github.com/Homebrew/homebrew/blob/master/Library/Homebrew/keg_fix_install_names.rb\r
110 [3] https://github.com/Homebrew/homebrew/blob/master/Library/Formula/notmuch.rb\r
111 [4] https://trac.macports.org/browser/trunk/dports/mail/notmuch/Portfile\r
112 [5] https://trac.macports.org/browser/trunk/dports/mail/notmuch/files/patch-lib-Makefile.local.diff\r
113 [6] http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/mail/notmuch/patches/patch-lib_Makefile.local?rev=1.1&content-type=text/x-cvsweb-markup&only_with_tag=MAIN\r
114 [7] https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/dyld.1.html\r