Re: encoding of message-ids
[notmuch-archives.git] / 4e / 77b52325a1f5d4fdfb46b9cd33d75651b6cc71
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 A1087431FD2\r
6         for <notmuch@notmuchmail.org>; Thu, 26 Feb 2015 10:20:18 -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: 2.438\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 Sl91gRz7xQdG for <notmuch@notmuchmail.org>;\r
16         Thu, 26 Feb 2015 10:20:15 -0800 (PST)\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 768DC431FBF\r
19         for <notmuch@notmuchmail.org>; Thu, 26 Feb 2015 10:20:15 -0800 (PST)\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 26A8920063\r
22         for <notmuch@notmuchmail.org>; Thu, 26 Feb 2015 12:14:23 -0600 (CST)\r
23 Received: (qmail 2849 invoked by uid 502); 26 Feb 2015 18:14:23 -0000\r
24 Date: Thu, 26 Feb 2015 12:14:23 -0600\r
25 From: "J. Lewis Muir" <jlmuir@imca-cat.org>\r
26 To: David Bremner <david@tethera.net>\r
27 Subject: Re: [PATCH] lib: make notmuch shared library install_name be full\r
28         path on Mac OS X\r
29 Message-ID: <20150226181423.GA2822@bass.imca.aps.anl.gov>\r
30 References: <1409541227-38895-1-git-send-email-jlmuir@imca-cat.org>\r
31         <87twyao35q.fsf@maritornes.cs.unb.ca>\r
32 Mime-Version: 1.0\r
33 Content-Type: text/plain; charset=us-ascii\r
34 Content-Disposition: inline\r
35 In-Reply-To: <87twyao35q.fsf@maritornes.cs.unb.ca>\r
36 Cc: notmuch@notmuchmail.org\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Thu, 26 Feb 2015 18:20:18 -0000\r
50 \r
51 On 2/25/15 1:34 AM, David Bremner wrote:\r
52 > Unfortunately we did not receive any feedback from Mac users in the\r
53 > meantime. It would be nice to know that your patch won't break the\r
54 > existing macports and brew packages.  I suppose that those work\r
55 > because they install the libraries into a well known location.\r
56 \r
57 Hi, David.\r
58 \r
59 I just tried installing to /usr/local (now on OS X Yosemite 10.10.2),\r
60 and you're right about that; it appears that because it's a standard\r
61 location, it works without my patch.  Looking at the dyld(1) man page,\r
62 it says the following for the DYLD_FALLBACK_LIBRARY_PATH environment\r
63 variable (and I think the fact that /usr/local/lib is in the default\r
64 list is the reason why it works without the patch):\r
65 \r
66   This is a colon separated list of directories that contain\r
67   libraries.  It is used as the default location for libraries\r
68   not found in their install path.  By default, it is set to\r
69   $(HOME)/lib:/usr/local/lib:/lib:/usr/lib.\r
70 \r
71 However, if I install to /opt, it does *not* work without my patch.  So,\r
72 I'm still confident that the patch is correct and needed.\r
73 \r
74 The reason it works in Homebrew is twofold.  One, assuming Homebrew\r
75 installs packages to /usr/local, the dynamic linker finds the notmuch\r
76 library in /usr/local/lib because it's in the default list of locations\r
77 that the dynamic linker looks for libraries.  Two, Homebrew globally\r
78 corrects all install names in dynamically shared libraries and binaries\r
79 for all packages.  So, even if the package is broken, Homebrew corrects\r
80 it automatically, and no one ever knows.\r
81 \r
82 The reason it works in MacPorts is because they apply a patch that's the\r
83 same as what I submitted!  See:\r
84 \r
85   https://trac.macports.org/browser/trunk/dports/mail/notmuch/files/patch-lib-Makefile.local.diff\r
86 \r
87 For any OS X notmuch developer willing to test this, here are\r
88 the five commands to run to reproduce the problem (note: another\r
89 libnotmuch*.dylib must *not* be in /usr/local/lib where it would\r
90 be found automatically by the dynamic linker; similarly, no DYLD_*\r
91 environment variables should be set for this test; obviously, change the\r
92 CFLAGS and LDFLAGS environment variables in the ./configure command to\r
93 point to where the libraries are that notmuch needs):\r
94 \r
95 ===\r
96 $ git clone git://notmuchmail.org/git/notmuch\r
97 $ CFLAGS='-I/pkg/include' LDFLAGS='-L/pkg/lib' ./configure --prefix=/opt --without-emacs\r
98 $ make\r
99 $ make install\r
100 $ /opt/bin/notmuch --version\r
101 ===\r
102 \r
103 When I run the just-installed notmuch in that last command, it produces\r
104 the following output:\r
105 \r
106 ===\r
107 dyld: Library not loaded: libnotmuch.4.dylib\r
108   Referenced from: /opt/bin/notmuch\r
109   Reason: image not found\r
110 Trace/BPT trap: 5 (core dumped)\r
111 ===\r
112 \r
113 Regards,\r
114 \r
115 Lewis\r