From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Don't augment LD_LIBRARY_PATH (was Re: [PATCH] do not augment environment) Date: Fri, 05 Oct 2012 17:58:23 -0400 Message-ID: <87txu8mvi8.fsf@tines.lan> References: <505CF9FC.9060007@gmail.com> <5069022C.9040600@netris.org> <87y5jnn8y4.fsf_-_@tines.lan> <506EABA5.8070309@gmail.com> 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 1349474347 9508 80.91.229.3 (5 Oct 2012 21:59:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2012 21:59:07 +0000 (UTC) Cc: guile-devel@gnu.org To: Sjoerd van Leent =?utf-8?Q?Priv=C3=A9?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Oct 05 23:59:13 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 1TKFvK-00070R-Iq for guile-devel@m.gmane.org; Fri, 05 Oct 2012 23:59:10 +0200 Original-Received: from localhost ([::1]:49909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKFvE-00059J-Nq for guile-devel@m.gmane.org; Fri, 05 Oct 2012 17:59:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKFvB-000595-8s for guile-devel@gnu.org; Fri, 05 Oct 2012 17:59:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKFvA-0000nC-6D for guile-devel@gnu.org; Fri, 05 Oct 2012 17:59:01 -0400 Original-Received: from world.peace.net ([96.39.62.75]:45624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKFvA-0000ll-1n for guile-devel@gnu.org; Fri, 05 Oct 2012 17:59:00 -0400 Original-Received: from turntable.mit.edu ([18.160.0.29] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TKFus-0006Xi-MD; Fri, 05 Oct 2012 17:58:43 -0400 In-Reply-To: <506EABA5.8070309@gmail.com> ("Sjoerd van Leent \=\?utf-8\?Q\?Pri\?\= \=\?utf-8\?Q\?v\=C3\=A9\=22's\?\= message of "Fri, 05 Oct 2012 11:43:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 96.39.62.75 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:14930 Archived-At: Sjoerd van Leent Priv=C3=A9 writes: > Just a quick note. Now with GUILE_SYSTEM_EXTENSIONS_PATH, this could > be very practical when developing a module. However, if a module is > already present AND is inside SCM_LIB_DIR or SCM_EXTENSIONS_DIR, it > would never override that situation. I believe there should be a way > to be able to override the normal behavior. If GUILE_SYSTEM_EXTENSIONS_PATH is set, then neither SCM_LIB_DIR nor SCM_EXTENSIONS_DIR are added to the search path. This is currently the case, and my patch would not change that. There is one complication though: SCM_LIB_DIR is normally $prefix/lib, which is usually in the default system library search path. However, it is still possible to override the normal behavior by manually modifying LD_LIBRARY_PATH. Is there any reason why that's a suboptimal solution for use when developing a module? Having said this, I'm not convinced that my patch does the right thing. I'm still trying to understand the needed requirements. I'll talk more about this is my response to Ludovic. Thanks for the feedback! Regards, Mark