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 AB3DE431FBC
\r
6 for <notmuch@notmuchmail.org>; Wed, 4 Mar 2015 22:57:20 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 H0sK-AKcY+-t for <notmuch@notmuchmail.org>;
\r
16 Wed, 4 Mar 2015 22:57:16 -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 7D1FE431FAE
\r
19 for <notmuch@notmuchmail.org>; Wed, 4 Mar 2015 22:57:16 -0800 (PST)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id 7D3781000E7;
\r
22 Thu, 5 Mar 2015 08:56:11 +0200 (EET)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: "J. Lewis Muir" <jlmuir@imca-cat.org>, notmuch@notmuchmail.org
\r
25 Subject: Re: [PATCH v2] lib: make notmuch shared library install_name be full
\r
27 In-Reply-To: <1425508369-28448-1-git-send-email-jlmuir@imca-cat.org>
\r
28 References: <1425508369-28448-1-git-send-email-jlmuir@imca-cat.org>
\r
29 User-Agent: Notmuch/0.19+53~gb45d2f9 (http://notmuchmail.org) Emacs/24.3.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: Thu, 05 Mar 2015 08:56:11 +0200
\r
35 Message-ID: <m24mq0nd9w.fsf@guru.guru-group.fi>
\r
37 Content-Type: text/plain
\r
38 X-BeenThere: notmuch@notmuchmail.org
\r
39 X-Mailman-Version: 2.1.13
\r
41 List-Id: "Use and development of the notmuch mail system."
\r
42 <notmuch.notmuchmail.org>
\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
46 List-Post: <mailto:notmuch@notmuchmail.org>
\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
50 X-List-Received-Date: Thu, 05 Mar 2015 06:57:21 -0000
\r
52 On Thu, Mar 05 2015, "J. Lewis Muir" <jlmuir@imca-cat.org> wrote:
\r
54 > The install_name of libnotmuch.dylib on Mac OS X is what is written
\r
55 > into a program that links against it. If it is just the name of the
\r
56 > shared library file, as opposed to the full path, the program won't be
\r
57 > able to find it when it runs and will abort. Instead, the install_name
\r
58 > should be the full path to the shared library (in its final installed
\r
61 > Why does Notmuch work without this patch when installed via Homebrew?
\r
62 > The answer is twofold. One, /usr/local/lib is a special location in
\r
63 > which the dynamic linker will look by default to find shared libraries.
\r
64 > Homebrew highly recommends installing to /usr/local, and, assuming it
\r
65 > has been configured this way, the Notmuch library will end up installed
\r
66 > in /usr/local/lib, and the dynamic linker will find it. Two, Homebrew
\r
67 > globally corrects all install names in dynamically shared libraries and
\r
68 > binaries for each package it installs. So, even if the install names in
\r
69 > a package's binaries and libraries are incorrect, Homebrew corrects them
\r
70 > automatically, and no one ever knows.
\r
72 > Why does Notmuch work without this patch when installed via MacPorts?
\r
73 > The answer is that MacPorts applies a patch just like this patch to fix
\r
81 > lib/Makefile.local | 2 +-
\r
82 > 1 file changed, 1 insertion(+), 1 deletion(-)
\r
84 > diff --git a/lib/Makefile.local b/lib/Makefile.local
\r
85 > index 7278f46..f9ecd50 100644
\r
86 > --- a/lib/Makefile.local
\r
87 > +++ b/lib/Makefile.local
\r
88 > @@ -27,7 +27,7 @@ LIBRARY_SUFFIX = dylib
\r
89 > LINKER_NAME = libnotmuch.$(LIBRARY_SUFFIX)
\r
90 > SONAME = libnotmuch.$(LIBNOTMUCH_VERSION_MAJOR).$(LIBRARY_SUFFIX)
\r
91 > LIBNAME = libnotmuch.$(LIBNOTMUCH_VERSION_MAJOR).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE).$(LIBRARY_SUFFIX)
\r
92 > -LIBRARY_LINK_FLAG = -dynamiclib -install_name $(SONAME) -compatibility_version $(LIBNOTMUCH_VERSION_MAJOR).$(LIBNOTMUCH_VERSION_MINOR) -current_version $(LIBNOTMUCH_VERSION_MAJOR).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE)
\r
93 > +LIBRARY_LINK_FLAG = -dynamiclib -install_name $(libdir)/$(SONAME) -compatibility_version $(LIBNOTMUCH_VERSION_MAJOR).$(LIBNOTMUCH_VERSION_MINOR) -current_version $(LIBNOTMUCH_VERSION_MAJOR).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE)
\r
95 > LIBRARY_SUFFIX = so
\r
96 > LINKER_NAME = libnotmuch.$(LIBRARY_SUFFIX)
\r
98 > 1.9.3 (Apple Git-50)
\r
100 > This version of the patch has a better commit message as suggested
\r
101 > by David Bremner on the mailing list. The steps for reproducing the
\r
102 > problem and the steps showing the analysis of the problem have been
\r
103 > removed. Added is an answer to the question of why Notmuch works
\r
104 > without this patch when installed via Homebrew and MacPorts.
\r
106 > The message-id of the previous version of this patch is
\r
107 > 1409541227-38895-1-git-send-email-jlmuir@imca-cat.org.
\r
108 > _______________________________________________
\r
109 > notmuch mailing list
\r
110 > notmuch@notmuchmail.org
\r
111 > http://notmuchmail.org/mailman/listinfo/notmuch
\r