Re: [RFC/PATCH] python: search parent lib directory for libnotmuch.so
authorJed Brown <jed@59A2.org>
Tue, 9 Apr 2013 15:31:12 +0000 (10:31 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:54:19 +0000 (09:54 -0800)
be/500e1e41da779d83fa5d20d9cf6ef8d6ae9d86 [new file with mode: 0644]

diff --git a/be/500e1e41da779d83fa5d20d9cf6ef8d6ae9d86 b/be/500e1e41da779d83fa5d20d9cf6ef8d6ae9d86
new file mode 100644 (file)
index 0000000..f1aa72b
--- /dev/null
@@ -0,0 +1,101 @@
+Return-Path: <five9a2@gmail.com>\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 1B9A4431FBC\r
+       for <notmuch@notmuchmail.org>; Tue,  9 Apr 2013 08:31:18 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.301\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.301 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=1, \r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 txJ0uzLGp1Gc for <notmuch@notmuchmail.org>;\r
+       Tue,  9 Apr 2013 08:31:14 -0700 (PDT)\r
+Received: from mail-ia0-f173.google.com (mail-ia0-f173.google.com\r
+       [209.85.210.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 3EE1C431FAE\r
+       for <notmuch@notmuchmail.org>; Tue,  9 Apr 2013 08:31:14 -0700 (PDT)\r
+Received: by mail-ia0-f173.google.com with SMTP id h37so6433767iak.32\r
+       for <notmuch@notmuchmail.org>; Tue, 09 Apr 2013 08:31:13 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=x-received:sender:from:to:cc:subject:in-reply-to:references\r
+       :user-agent:date:message-id:mime-version:content-type;\r
+       bh=jlzPe/LYZ8RDyDCrv5RHQ2hRAMxTSKVRAFSuM0mUB/g=;\r
+       b=SOIPizesu4PTMIWRKHCtvwZclV91qXerlqWKm1A5jKmaaOWC0ze9CKtrgrNtJ4OnHB\r
+       saaO2XoBGzFWSSn0Keiqs8EofAVMcQYh6n8ArG0gLK/br/YYHC/uWotutJrxsFXMiIdo\r
+       zwPASjh1m1KZQmxfMnGFax7uNeluorI0tdICDjqQ6EdDDTifSMV5iuAsYnl1xWbO6kHO\r
+       Tn30soIFdZZkC2FjMCjROPdWB+w+LnnsnE5DseYhekFxF+RkTaHtT0XMUQHA9BlSJJ9r\r
+       q4cdRzYm2bIGdUagf0VQYrhXKszttkwt+WsyfSfWhWr4P1D87Z54Iy3j4/B7vYj+lK0X\r
+       20aA==\r
+X-Received: by 10.50.152.229 with SMTP id vb5mr10942026igb.56.1365521473713;\r
+       Tue, 09 Apr 2013 08:31:13 -0700 (PDT)\r
+Received: from localhost (vis-v410v070.mcs.anl-external.org. [130.202.17.70])\r
+       by mx.google.com with ESMTPS id\r
+       p11sm23021653igr.4.2013.04.09.08.31.12\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Tue, 09 Apr 2013 08:31:13 -0700 (PDT)\r
+Sender: Jed Brown <five9a2@gmail.com>\r
+From: Jed Brown <jed@59A2.org>\r
+To: Justus Winter <4winter@informatik.uni-hamburg.de>, notmuch@notmuchmail.org\r
+Subject: Re: [RFC/PATCH] python: search parent lib directory for libnotmuch.so\r
+In-Reply-To: <20130409152128.7736.76003@thinkbox.jade-hamburg.de>\r
+References: <1365475646-22926-1-git-send-email-jed@59A2.org>\r
+       <20130409141333.7736.41695@thinkbox.jade-hamburg.de>\r
+       <87obdn7nwe.fsf@mcs.anl.gov>\r
+       <20130409152128.7736.76003@thinkbox.jade-hamburg.de>\r
+User-Agent: Notmuch/0.15.2+78~g5404ac5 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-unknown-linux-gnu)\r
+Date: Tue, 09 Apr 2013 10:31:12 -0500\r
+Message-ID: <87fvyz7mbj.fsf@mcs.anl.gov>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: Sebastian Spaeth <Sebastian@SSpaeth.de>\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: Tue, 09 Apr 2013 15:31:18 -0000\r
+\r
+Justus Winter <4winter@informatik.uni-hamburg.de> writes:\r
+> But why do we do that? I always thought that rpath causes more\r
+> problems and is to be avoided if possible [0]. But otoh, I didn't even\r
+> knew that the notmuch build system uses rpath.\r
+>\r
+> 0: e.g. http://wiki.debian.org/RpathIssue\r
+\r
+RPATH is bad for distributions, but great for private installs.\r
+\r
+> I actually have no strong feelings for or against this proposal. I'm\r
+> merely surprised that there is an issue that you are trying to fix\r
+> here since exactly this configuration has worked for me since the day\r
+> I started using notmuch.\r
+\r
+Sure, but you always set LD_LIBRARY_PATH instead of relying on RPATH.\r
+\r
+> And from my point of view LD_LIBRARY_PATH is the correct way to\r
+> instruct the dynamic linker (and as a similar facility the ctypes\r
+> library loader) where to look for additional libraries.\r
+\r
+LD_LIBRARY_PATH is inconvenient as hell if you have multiple installs\r
+living in different places, i.e., you write /path/to/A/bin/notmuch and\r
+have it use /path/to/B/lib/libnotmuch.so.3 just because you placed\r
+/path/to/B/lib in your LD_LIBRARY_PATH at some point in the distant past\r
+when it was needed by /path/to/B/bin/other-thing that may not even be\r
+installed any more.\r
+\r
+This happens a lot more with languages other than C and when you have\r
+different compilers with mutually-incompatible ABIs or packages that\r
+didn't bother with soname versioning.\r