all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Glenn Morris <rgm@gnu.org>
Cc: 20330@debbugs.gnu.org
Subject: bug#20330: Do not capture build-time $PATH in 'emacs' binary
Date: Wed, 15 Apr 2015 21:45:46 +0200	[thread overview]
Message-ID: <87d235yy39.fsf@gnu.org> (raw)
In-Reply-To: <qyegnluxq9.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 15 Apr 2015 13:07:10 -0400")

Glenn Morris <rgm@gnu.org> skribis:

> Ludovic Courtès wrote:
>
>> +;; Reset 'exec-path' so we don't capture the build-time $PATH in the
>> +;; 'emacs' executable.
>> +(setq-default exec-path nil)
>> +(setq exec-path nil)
>
> I'm not sure this is a good way to solve your issue.
> Eg it will cause "Erase Customizations" on exec-path to set it to nil.

OTOH, at startup, ‘init_callproc_1’ does:

  Vexec_path = nconc2 (decode_env_path ("PATH", ""), Vexec_path);

So it looks rather safe.  WDYT?

Ludo’.





  reply	other threads:[~2015-04-15 19:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-14 11:51 bug#20330: Do not capture build-time $PATH in 'emacs' binary Ludovic Courtès
2015-04-14 14:39 ` Eli Zaretskii
2015-04-14 16:10   ` Ludovic Courtès
2015-04-14 16:38     ` Eli Zaretskii
2015-04-15  7:45       ` Ludovic Courtès
2015-04-15 16:12         ` Eli Zaretskii
2015-04-15 16:37           ` Ludovic Courtès
2015-04-15 16:49             ` Eli Zaretskii
2015-04-15 17:07 ` Glenn Morris
2015-04-15 19:45   ` Ludovic Courtès [this message]
2015-04-16 15:37     ` Glenn Morris
2015-04-16 15:49       ` Eli Zaretskii
2015-04-16 19:25         ` Glenn Morris
2015-04-16 19:33           ` Eli Zaretskii
2015-04-20 21:48           ` Glenn Morris

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

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

  git send-email \
    --in-reply-to=87d235yy39.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=20330@debbugs.gnu.org \
    --cc=rgm@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.