Re: [PATCH] lib: make notmuch shared library install_name be full path on Mac OS X
authorJ. Lewis Muir <jlmuir@imca-cat.org>
Wed, 4 Mar 2015 18:23:36 +0000 (12:23 +1800)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:14 +0000 (14:48 -0700)
8c/7ce78e504adf17ed63081c5cad23ce67fbe40b [new file with mode: 0644]

diff --git a/8c/7ce78e504adf17ed63081c5cad23ce67fbe40b b/8c/7ce78e504adf17ed63081c5cad23ce67fbe40b
new file mode 100644 (file)
index 0000000..8b872a1
--- /dev/null
@@ -0,0 +1,87 @@
+Return-Path: <jlmuir@imca-cat.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 4757A431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  4 Mar 2015 10:24:43 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.438\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
+       tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id NqxZFdjGPelr for <notmuch@notmuchmail.org>;\r
+       Wed,  4 Mar 2015 10:24:40 -0800 (PST)\r
+Received: from tuna.imca.aps.anl.gov (tuna.imca.aps.anl.gov [164.54.200.33])\r
+       by olra.theworths.org (Postfix) with ESMTP id 27B59431FAF\r
+       for <notmuch@notmuchmail.org>; Wed,  4 Mar 2015 10:24:40 -0800 (PST)\r
+Received: from gromit.local (seal.imca.aps.anl.gov [164.54.200.39])\r
+       by tuna.imca.aps.anl.gov (Postfix) with ESMTP id EB11D20067\r
+       for <notmuch@notmuchmail.org>; Wed,  4 Mar 2015 12:23:36 -0600 (CST)\r
+Message-ID: <54F74DA8.6020706@imca-cat.org>\r
+Date: Wed, 04 Mar 2015 12:23:36 -0600\r
+From: "J. Lewis Muir" <jlmuir@imca-cat.org>\r
+MIME-Version: 1.0\r
+To: notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] lib: make notmuch shared library install_name be full\r
+       path on Mac OS X\r
+References: <1409541227-38895-1-git-send-email-jlmuir@imca-cat.org>\r
+       <87twyao35q.fsf@maritornes.cs.unb.ca>\r
+       <20150226181423.GA2822@bass.imca.aps.anl.gov>\r
+       <m2mw404hqd.fsf@guru.guru-group.fi>\r
+In-Reply-To: <m2mw404hqd.fsf@guru.guru-group.fi>\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: 7bit\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 04 Mar 2015 18:24:43 -0000\r
+\r
+On 2/26/15 1:04 PM, Tomi Ollila wrote:\r
+> The commit message is just (IMO) somewhat confusing; what is this\r
+>\r
+>   $ otool -L /opt/notmuch-current/lib/libnotmuch.dylib\r
+>\r
+> is there files /opt/notmuch-current/lib/libnotmuch.dylib and\r
+> /opt/notmuch-current/lib/libnotmuch.3.dylib in the fs\r
+\r
+Hi, Tomi.\r
+\r
+Those files are actually known to you because they are what "make\r
+install" installed.  The "./configure" script was invoked with the\r
+option "--prefix=/opt/notmuch-current".\r
+\r
+> and what does otool -L opt/notmuch-current/bin/notmuch output\r
+\r
+The otool program is kind of like the ldd program on Unix-like OSes.\r
+When invoked with the -L option, otool prints the shared libraries that\r
+the object file uses.  When invoked on a shared library, it also shows\r
+the install name of the shared library.  This is what I was trying to\r
+show was not an absolute path.\r
+\r
+In hindsight, maybe it would have been more clear if I had shown the\r
+output of "otool -L" on the notmuch binary itself.  It would have shown\r
+all the shared library dependencies with absolute paths except for\r
+libnotmuch.dylib which was just the file name which is why the dynamic\r
+linker couldn't find it when running the notmuch binary.  But I was\r
+showing the "otool -L" output on libnotmuch.dylib because that was the\r
+source of the problem (i.e. the install name was not set to an absolute\r
+path).\r
+\r
+I'm sorry for the confusing commit message.  As per David's subsequent\r
+email on this thread, I'll try submitting again with a better one.\r
+\r
+Regards,\r
+\r
+Lewis\r