From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Don't augment LD_LIBRARY_PATH (was Re: [PATCH] do not augment environment) Date: Sat, 06 Oct 2012 14:42:54 +0200 Message-ID: <87bogf7ovl.fsf@gnu.org> References: <505CF9FC.9060007@gmail.com> <5069022C.9040600@netris.org> <87y5jnn8y4.fsf_-_@tines.lan> <877gr6j7ml.fsf@gnu.org> <87mx00mixi.fsf@tines.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1349527384 7530 80.91.229.3 (6 Oct 2012 12:43:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2012 12:43:04 +0000 (UTC) Cc: Bruce Korb , guile-devel@gnu.org To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Oct 06 14:43:10 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TKTin-0002wg-Rr for guile-devel@m.gmane.org; Sat, 06 Oct 2012 14:43:09 +0200 Original-Received: from localhost ([::1]:45222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKTih-0002Qs-F8 for guile-devel@m.gmane.org; Sat, 06 Oct 2012 08:43:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKTid-0002P6-CQ for guile-devel@gnu.org; Sat, 06 Oct 2012 08:43:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKTic-0004uL-4F for guile-devel@gnu.org; Sat, 06 Oct 2012 08:42:59 -0400 Original-Received: from xanadu.aquilenet.fr ([88.191.123.111]:53957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKTib-0004uF-UB for guile-devel@gnu.org; Sat, 06 Oct 2012 08:42:58 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 8A2549584; Sat, 6 Oct 2012 14:42:55 +0200 (CEST) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eNJH6PaOr7q9; Sat, 6 Oct 2012 14:42:55 +0200 (CEST) Original-Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id ED5EA93BE; Sat, 6 Oct 2012 14:42:54 +0200 (CEST) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 15 =?iso-8859-1?Q?Vend=E9miaire?= an 221 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87mx00mixi.fsf@tines.lan> (Mark H. Weaver's message of "Fri, 05 Oct 2012 22:30:01 -0400") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 88.191.123.111 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14934 Archived-At: Hi, Mark H Weaver skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> Mark H Weaver skribis: >> >>> Following Bruce's suggestion, it causes 'sysdep_dynl_link' to manually >>> search additional directories if 'lt_dlopenext' fails to find the >>> library in the default paths. >> >> Thus, that doesn=E2=80=99t solve the problem described at >> , >> right? >> >> To solve it, we=E2=80=99d have to do our own lookup unconditionally. [...] > As I understand it, the reason given for why we cannot use that approach > is that 'libtool --mode=3Dexecute -dlopen' would not work properly, Exactly. > but why do we have to do it that way? It is a fact that some projects (at least some of mine) have been using that idiom, because that=E2=80=99s the Libtool way to say =E2=80=9Chey, loa= d this particular file, not one that may be found in the search path.=E2=80=9D See, for example, . So the goal is to keep that working. Ideally, I would accept any solution that (1) gets rid of the LD_LIBRARY_PATH export, and (2) can be shown with strace to preserve the extension search order. How does that sound? (BTW, the above message was followed-up at .) Thanks, Ludo=E2=80=99.