unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Juanma Barranquero" <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: sh.exe needed to bootstrap on Windows?
Date: Mon, 16 Jul 2007 23:46:10 +0300	[thread overview]
Message-ID: <ufy3orsa5.fsf@gnu.org> (raw)
In-Reply-To: <f7ccd24b0707161328rb9786f3j6785afad94010ae9@mail.gmail.com> (lekktu@gmail.com)

> Date: Mon, 16 Jul 2007 22:28:22 +0200
> From: "Juanma Barranquero" <lekktu@gmail.com>
> Cc: "Dan Nicolaescu" <dann@ics.uci.edu>, emacs-devel@gnu.org
> 
> On 7/16/07, Eli Zaretskii <eliz@gnu.org> wrote:
> > But why
> > does it fail to find sh.exe in your case?  Do you even have sh.exe?
> 
> Not in the path, no.
> 
> Perhaps some tool tries to run sh?

What I see is that Emacs runs shell-command-to-string from vc-bzr.el:

  (defun vc-bzr-version ()
    "Return a three-numeric element list with components of the bzr version.
  This is of the form (X Y Z) for revision X.Y.Z.  The elements are zero
  if running `vc-bzr-program' doesn't produce the expected output."
    (or vc-bzr-version
	(setq vc-bzr-version
	      (let ((s (shell-command-to-string
			(concat (shell-quote-argument vc-bzr-program)
				" --version"))))
		(if (string-match "\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)$" s)
		    (list (string-to-number (match-string 1 s))
			  (string-to-number (match-string 2 s))
			  (string-to-number (match-string 3 s)))
		  '(0 0 0))))))

And, since in the absence of sh.exe Emacs sets SHELL to cmdproxy, this
is what Emacs looks for.  The problem is, bootstrap did not yet create
cmdproxy at this point.

The call to vc-bzr-version comes from vc-before-save which is called
when Emacs is about to save loaddefs.el that it
generated. vc-before-save calls vc-backend, which calls
vc-call-backend, which calls vc-find-backend-function, and that winds
up in vc-bzr, presumably because it tries every possible backend in
sequence.

Can you see whether in your case the backtrace points to the same
problem (i.e. shell-command-to-string called by vc-bzr)?  If so, could
you please try to find out why on your machine Emacs is looking for
sh.exe?

  reply	other threads:[~2007-07-16 20:46 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16  9:10 sh.exe needed to bootstrap on Windows? Juanma Barranquero
2007-07-16 19:15 ` Eli Zaretskii
2007-07-16 19:54   ` Juanma Barranquero
2007-07-16 20:19     ` Eli Zaretskii
2007-07-16 20:28       ` Juanma Barranquero
2007-07-16 20:46         ` Eli Zaretskii [this message]
2007-07-16 21:01           ` Dan Nicolaescu
2007-07-16 21:19             ` Eli Zaretskii
2007-07-16 21:30               ` Dan Nicolaescu
2007-07-16 22:01                 ` Eli Zaretskii
2007-07-16 22:40                   ` Dan Nicolaescu
2007-07-16 22:44                     ` Eli Zaretskii
2007-07-16 22:53                       ` Dan Nicolaescu
2007-07-17  3:15                         ` Eli Zaretskii
2007-07-16 20:34       ` Dan Nicolaescu
2007-07-17  7:56       ` Jason Rumney
2007-07-17  8:43         ` Dan Nicolaescu
2007-07-17 11:26         ` Eli Zaretskii
2007-07-17 11:39           ` Juanma Barranquero
2007-07-17 11:45           ` Andreas Schwab
2007-07-17 12:51             ` Thien-Thi Nguyen
2007-07-17 13:13               ` David Kastrup
2007-07-17 20:02               ` Eli Zaretskii
2007-07-17 20:03             ` Eli Zaretskii
2007-07-17 16:52           ` Stefan Monnier
2007-07-17 20:06             ` Eli Zaretskii
2007-07-17 22:11               ` Juanma Barranquero
2007-07-16 22:47 ` Eli Zaretskii
2007-07-17 10:07   ` Juanma Barranquero
2007-07-17 10:33     ` Eli Zaretskii

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=ufy3orsa5.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    /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).