unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Bruce Korb <bkorb@gnu.org>
Cc: Guile Development <guile-devel@gnu.org>
Subject: Re: [PATCH] do not augment environment
Date: Mon, 01 Oct 2012 12:59:34 -0400	[thread overview]
Message-ID: <5069CBF6.9030108@netris.org> (raw)
In-Reply-To: <5069AB0F.4010805@gnu.org>

On 10/01/2012 10:39 AM, Bruce Korb wrote:
> On 09/30/12 19:38, Mark H Weaver wrote:
>> In the current code, SCM_LIB_DIR and SCM_EXTENSIONS_DIR are only
>> added to the library search path when GUILE_SYSTEM_EXTENSIONS_PATH
>> is not set.  Your patch mishandles this, because it _always_ acts
>> as if SCM_LIB_DIR and SCM_EXTENSIONS_DIR have been added to the search path.
>
> Always inserting "GUILE_SYSTEM_EXTENSIONS_PATH=" into the environment
> is a better fix than erasing LD_LIBRARY_PATH, but I hadn't read and
> digested the source.  Thanks for the pointer.

Are you deploying this fix in widely-used software, or just within your 
private environment?  If the latter, that's fine, and you can disregard 
the rest of this message.

If the former, then we need to be careful.  By setting 
GUILE_SYSTEM_EXTENSIONS_PATH="", you will break Guile programs that need 
to load extensions, not just within your own program, but within any 
subprocesses that might be unrelated to your project.

Also, our internal hack of setting GUILE_SYSTEM_EXTENSIONS="" during the 
Guile build is not documented as far as I know, and might change in the 
future.  It's actually a bad hack, for the same reasons given above. 
For example, if 'gcc' started using Guile, then setting 
GUILE_SYSTEM_EXTENSIONS="" within the Guile build could break gcc.

I admit that we created this mess by deploying a bad hack, but let's try 
to avoid getting ourselves into an even bigger mess by deploying more 
bad hacks that lock us into preserving our current hacks.

Before I spend any more time thinking about this, can you please answer 
my question above?

      Thanks,
        Mark



  reply	other threads:[~2012-10-01 16:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-21 23:36 [PATCH] do not augment environment Bruce Korb
2012-10-01  1:13 ` Bruce Korb
2012-10-01  2:38 ` Mark H Weaver
2012-10-01 14:24   ` Bruce Korb
2012-10-01 14:39   ` Bruce Korb
2012-10-01 16:59     ` Mark H Weaver [this message]
2012-10-01 18:27       ` Bruce Korb
2012-10-03 10:31   ` [PATCH] Don't augment LD_LIBRARY_PATH (was Re: [PATCH] do not augment environment) Mark H Weaver
2012-10-04 20:37     ` Ludovic Courtès
2012-10-06  2:30       ` Mark H Weaver
2012-10-06 12:36         ` Mark H Weaver
2012-10-07 21:16           ` Ludovic Courtès
2012-10-06 12:42         ` Ludovic Courtès
2012-10-06 14:31           ` Mark H Weaver
2012-10-05  9:43     ` Sjoerd van Leent Privé
2012-10-05 21:58       ` Mark H Weaver
2012-11-27 22:54     ` [PATCH] Fix library search order and don't change LD_LIBRARY_PATH Mark H Weaver
2012-11-27 22:59       ` Ludovic Courtès
2012-11-27 23:23         ` Mark H Weaver
2012-11-27 23:01       ` Bruce Korb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5069CBF6.9030108@netris.org \
    --to=mhw@netris.org \
    --cc=bkorb@gnu.org \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).