1 Return-Path: <jinwoo68@gmail.com>
\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 12CDD431FAF
\r
6 for <notmuch@notmuchmail.org>; Wed, 4 Mar 2015 14:40:44 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=2.639 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 DNS_FROM_AHBL_RHSBL=2.438, FREEMAIL_ENVFROM_END_DIGIT=1,
\r
14 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id 5+7DcVR5J7pN for <notmuch@notmuchmail.org>;
\r
18 Wed, 4 Mar 2015 14:40:40 -0800 (PST)
\r
19 Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com
\r
20 [209.85.223.175]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id C0EB4431FAE
\r
23 for <notmuch@notmuchmail.org>; Wed, 4 Mar 2015 14:40:40 -0800 (PST)
\r
24 Received: by iecat20 with SMTP id at20so18088322iec.6
\r
25 for <notmuch@notmuchmail.org>; Wed, 04 Mar 2015 14:39:47 -0800 (PST)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
27 h=from:to:subject:in-reply-to:references:user-agent:date:message-id
\r
28 :mime-version:content-type;
\r
29 bh=vxyyIZ64lfFzwwzlJreY3QF9N49KhF9WbPiKK8ugtlA=;
\r
30 b=Km+0eUp3oQlNp+JyMPb+HTv6M4s7G2gI3VEKvPgBj/gMSunSdJ7lnaBTc241/r2weL
\r
31 ftPE4IH2cipZV7GmGQ1CcgGuYslHT9oEyzBzBx9t3yQ7vYqCO6OGweLsKr/aTeEMinMG
\r
32 mY8ssz1SCP4EcNITjWSH2s9cNpVogDb2CCI8DCcJMej0zyrrMitM6ZuKQ6E0Po46K9jE
\r
33 3vloAqvQiNmHuL9G1pvvtqwP1YAyhy2fMV9J5ucFmrduPjy5YOxqKH8g+joAqmk5HmD/
\r
34 22d9fTHjBzOt4jbB9KIZbu9ci/dfShF4sTadupHhLtEwJgoxoDtD0///DTAmFVgWA67e
\r
36 X-Received: by 10.107.164.221 with SMTP id d90mr16160054ioj.13.1425508786921;
\r
37 Wed, 04 Mar 2015 14:39:46 -0800 (PST)
\r
38 Received: from localhost ([2620:0:1000:407c:94fb:a3ba:4a7f:aa53])
\r
39 by mx.google.com with ESMTPSA id 192sm3710920ioo.38.2015.03.04.14.39.45
\r
40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
41 Wed, 04 Mar 2015 14:39:45 -0800 (PST)
\r
42 From: Jinwoo Lee <jinwoo68@gmail.com>
\r
43 To: "J. Lewis Muir" <jlmuir@imca-cat.org>, notmuch@notmuchmail.org
\r
44 Subject: Re: [PATCH v2] lib: make notmuch shared library install_name be full
\r
46 In-Reply-To: <1425508369-28448-1-git-send-email-jlmuir@imca-cat.org>
\r
47 References: <1425508369-28448-1-git-send-email-jlmuir@imca-cat.org>
\r
48 User-Agent: Notmuch/0.19+67~g326e188 (http://notmuchmail.org) Emacs/24.4.1
\r
49 (x86_64-apple-darwin13.2.0)
\r
50 Date: Wed, 04 Mar 2015 14:39:44 -0800
\r
51 Message-ID: <yq65egp44cb3.fsf@jinwoo-macbookair.roam.corp.google.com>
\r
53 Content-Type: text/plain
\r
54 X-BeenThere: notmuch@notmuchmail.org
\r
55 X-Mailman-Version: 2.1.13
\r
57 List-Id: "Use and development of the notmuch mail system."
\r
58 <notmuch.notmuchmail.org>
\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
62 List-Post: <mailto:notmuch@notmuchmail.org>
\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
66 X-List-Received-Date: Wed, 04 Mar 2015 22:40:44 -0000
\r
68 On Wed, Mar 4, 2015 at 02:32 PM, "J. Lewis Muir" <jlmuir@imca-cat.org> wrote:
\r
69 > The install_name of libnotmuch.dylib on Mac OS X is what is written
\r
70 > into a program that links against it. If it is just the name of the
\r
71 > shared library file, as opposed to the full path, the program won't be
\r
72 > able to find it when it runs and will abort. Instead, the install_name
\r
73 > should be the full path to the shared library (in its final installed
\r
76 Thanks for this fix! I built notmuch last night on my mac using the
\r
77 prefix of "/opt/local", and it revealed this problem. Manually moving
\r
78 libnotmuch.dylib to $HOME/lib fixed it. I'll try again once this patch
\r
82 > Why does Notmuch work without this patch when installed via Homebrew?
\r
83 > The answer is twofold. One, /usr/local/lib is a special location in
\r
84 > which the dynamic linker will look by default to find shared libraries.
\r
85 > Homebrew highly recommends installing to /usr/local, and, assuming it
\r
86 > has been configured this way, the Notmuch library will end up installed
\r
87 > in /usr/local/lib, and the dynamic linker will find it. Two, Homebrew
\r
88 > globally corrects all install names in dynamically shared libraries and
\r
89 > binaries for each package it installs. So, even if the install names in
\r
90 > a package's binaries and libraries are incorrect, Homebrew corrects them
\r
91 > automatically, and no one ever knows.
\r
93 > Why does Notmuch work without this patch when installed via MacPorts?
\r
94 > The answer is that MacPorts applies a patch just like this patch to fix
\r