Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 86B4D431FD0 for ; Thu, 13 Oct 2011 00:09:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6TEXjAk4xyHE for ; Thu, 13 Oct 2011 00:09:58 -0700 (PDT) Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id BB6C9431FB6 for ; Thu, 13 Oct 2011 00:09:57 -0700 (PDT) Received: from taco2.nixu.fi (localhost [127.0.0.1]) by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9D79lKR024363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 13 Oct 2011 10:09:47 +0300 Received: (from too@localhost) by taco2.nixu.fi (8.14.3/8.14.3/Submit) id p9D79lnX024361; Thu, 13 Oct 2011 10:09:47 +0300 X-Authentication-Warning: taco2.nixu.fi: too set sender to tomi.ollila@nixu.com using -f From: Tomi Ollila To: Jameson Graef Rollins Subject: Re: [python] set rpath in setup.cfg References: <6d84224ab757d84968df4db3a7b00fcb@jadE-Hamburg.de> <20111012153051.GE21615@hayalet> <87pqi1s8ln.fsf@servo.finestructure.net> X-Face: HhBM'cA~ (Jameson Graef Rollins's message of "Wed, 12 Oct 2011 23:34:28 -0700") Message-ID: User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 07:09:58 -0000 On Thu 13 Oct 2011 09:34, Jameson Graef Rollins writes: > On Thu, 13 Oct 2011 08:12:03 +0200, dtk wrote: >> in my experience, it tends to cause awkward side effects that are hard to >> debug, the main problem being that it overrides all default paths and is >> hard to target at a single problematic application. > > I think it's fairly straightforward to prepend a library path to the ld > library path without overriding all defaults with something like this > (for bash): > > LD_LIBRARY_PATH=/new/ld/path:$LD_LIBRARY_PATH I also have local notmuch installations (3 of them); notmuch command (among others) are wrapped in a shell script which setups environment variables like: PATH=/path/to/iroot/bin:$PATH LD_LIBRARY_PATH=/path/to/iroot/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} export PATH LD_LIBRARY_PATH and then exec /path/to/iroot/bin/notmuch "$@" I don't recall a situation when this have failed. > jamie. Tomi