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 39FD6429E27 for ; Sun, 16 Oct 2011 13:05:15 -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=[RCVD_IN_DNSWL_NONE=-0.0001] 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 s8E+tdMgrKS9 for ; Sun, 16 Oct 2011 13:05:14 -0700 (PDT) Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.31.27]) by olra.theworths.org (Postfix) with ESMTP id 31F74429E26 for ; Sun, 16 Oct 2011 13:05:14 -0700 (PDT) Received: from [87.180.87.168] (helo=stokes.schwinge.homeip.net) by smtprelay04.ispgateway.de with esmtpa (Exim 4.68) (envelope-from ) id 1RFWx5-00045r-Ss for notmuch@notmuchmail.org; Sun, 16 Oct 2011 22:04:56 +0200 Received: (qmail 28747 invoked from network); 16 Oct 2011 20:04:24 -0000 Received: from kepler.schwinge.homeip.net (192.168.111.7) by stokes.schwinge.homeip.net with QMQP; 16 Oct 2011 20:04:24 -0000 Received: (nullmailer pid 20495 invoked by uid 1000); Sun, 16 Oct 2011 20:04:24 -0000 From: Thomas Schwinge To: Jameson Graef Rollins , dtk , Ali Polatel Subject: Re: [python] set rpath in setup.cfg In-Reply-To: <87pqi1s8ln.fsf@servo.finestructure.net> References: <6d84224ab757d84968df4db3a7b00fcb@jadE-Hamburg.de> <20111012153051.GE21615@hayalet> <87pqi1s8ln.fsf@servo.finestructure.net> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Sun, 16 Oct 2011 22:04:23 +0200 Message-ID: <8739es3dq0.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Df-Sender: dGhvbWFzQHNjaHdpbmdlLm5hbWU= 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: Sun, 16 Oct 2011 20:05:15 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! On Wed, 12 Oct 2011 23:34:28 -0700, Jameson Graef Rollins wrote: > 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. >=20 > 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): >=20 > LD_LIBRARY_PATH=3D/new/ld/path:$LD_LIBRARY_PATH This is in fact not safe, and may cause subtle issues: if LD_LIBRARY_PATH is empty initally, it'll evaluate to: LD_LIBRARY_PATH=3D/new/ld/path: Of this one, the last element is empty, and ld.so will thus look into the current directory for libc.so, for example. Now you cd /tmp/ and enter ls... :-) Or, as it once bit me, you're on a system with such an LD_LIBRARY_PATH set (without me knowing about it). You do glibc development, and wonder why some commands begin acting strangely when you're in the glibc build directory... Thus: LD_LIBRARY_PATH=3D/new/ld/path${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOmzjHAAoJEGe3hdm9kOii3t4IANBLzwybLBSjeTVYdB8o0Rm7 nB0xHBZCBclI5xFB6GjiETvg0NoKDQOGy8JKw6+eQkHyvFAwodFc9/q4i5SiBeR8 H5TmatS+G4EAVy3MgJlVljZg+NlSejHvEb44D4WUMI+3N5OLRa11TqAI2CnFGBeU ww/nDFRHTs7rlk/3/cBqejyzEyV8NMAm+HM3/fEYZV4gbKWMe1xj4Jh9yTXhmazJ mopAJ5A5kxu1o1AdJU12VNzPA4kFMLFwcffuZ8nJ02ahtSlueCcjnpwug67GFcAF DGM2CsojvywOuTRbAH5ynyexGzb5iCU3C3gmRJFq2nM64vS94cH3Y9w3z9YAmP0= =qzyS -----END PGP SIGNATURE----- --=-=-=--