unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: alexey.pawlow@gmail.com, emacs-devel@gnu.org
Subject: Re: Wrong PATH in MSYS2/MINGW64 builds?
Date: Fri, 29 May 2015 08:55:31 +0300	[thread overview]
Message-ID: <83lhg8vsfg.fsf@gnu.org> (raw)
In-Reply-To: <55678DFF.3030908@alice.it>

> Date: Thu, 28 May 2015 23:51:59 +0200
> From: Angelo Graziosi <angelo.graziosi@alice.it>
> CC: emacs-devel@gnu.org, alexey.pawlow@gmail.com
> 
> > I think your problem is with exec-path (which is derived from PATH),
> > not with PATH directly.
> >
> > IME, it's a bad idea to have exec-path inside Emacs be different from
> > PATH outside Emacs, because then you'd have subtle differences between
> > Emacs looking for programs and programs it invokes (such as the shell,
> > for example) looking for programs.  So my advice is not to patch Emacs
> > that way.
> >
> 
> Shouldn't the option
> 
>    --libexecdir="${MINGW_PREFIX}/bin"
> 
> (added to "configure") fix this issue (being 
> MINGW_PREFIX=/c/msys64/mingw64)?

The libexec directory is for auxiliary programs that come with Emacs,
about which we _know_ how Emacs will invoke them.  (Example: hexl.)
That directory will indeed be added to exec-path, but it will then
create the very problem I warned against: the shell will not search
that directory, and so Emacs features that invoke shell commands (via
shell-command etc.) might mysteriously fail.  IOW, visiting
bzip2-compressed files might start working for you, but other features
using bzip2 via shell commands might still fail.

So no, this is not recommended.



  reply	other threads:[~2015-05-29  5:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-28 13:56 Wrong PATH in MSYS2/MINGW64 builds? Angelo Graziosi
2015-05-28 14:11 ` Óscar Fuentes
2015-05-28 15:09 ` Eli Zaretskii
2015-05-28 15:36   ` Óscar Fuentes
2015-05-28 16:37     ` Eli Zaretskii
2015-05-28 16:52       ` Yuri Khan
2015-05-28 17:09         ` Eli Zaretskii
2015-05-29  2:05           ` Yuri Khan
2015-05-29  6:05             ` Eli Zaretskii
2015-05-28 15:41   ` Angelo Graziosi
2015-05-28 16:49     ` Eli Zaretskii
2015-05-28 21:51       ` Angelo Graziosi
2015-05-29  5:55         ` Eli Zaretskii [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-05-28 15:06 Angelo Graziosi

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/emacs/

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

  git send-email \
    --in-reply-to=83lhg8vsfg.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=alexey.pawlow@gmail.com \
    --cc=angelo.graziosi@alice.it \
    --cc=emacs-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.
Code repositories for project(s) associated with this public inbox

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

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).