all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: 12955@debbugs.gnu.org
Subject: bug#12955: 24.3.50; Build process on MS-Windows: sometimes needs "human intervention"
Date: Thu, 22 Nov 2012 05:41:27 +0200	[thread overview]
Message-ID: <83a9uauwwo.fsf@gnu.org> (raw)
In-Reply-To: <CAH8Pv0hHPzT44tdrr2VRAtt9WsaU=140BX+URVAF00sb30z_mQ@mail.gmail.com>

> Date: Wed, 21 Nov 2012 21:49:53 +0100
> From: Dani Moncayo <dmoncayo@gmail.com>
> 
> Sometimes, when building the trunk on MS-Windows, the make process get
> stuck when this like of `src/makefile' is executed:
> 
>   cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h"
> 
> What happens is that a new cmd.exe session is open and waiting for
> input, when the expected behavior for that session is to execute the
> command between double quotes and exit.  So I have to copy&paste the
> command, execute it and exit the cmd session so that the build process
> can continue.
> 
> This problem is known to Eli, Juanma and those who build Emacs on
> Windows, and is related to MSYS and the translation it performs with
> filesystem paths ("/c" is translated to "c:\" for example).
> 
> If you have MSYS installed in your system, it is easy to reproduce the problem:
> 1. Open a cmd.exe console.
> 2. Run: sh  (to start a bash session).
> 3. Run: cmd /c "dir".
> 
> --> A new cmd session is created, it is waiting for input and the
> "dir" command has not been executed.
> 
> Fortunately, I just found a solution for this: just remove the space
> between the `/c' and the double quote:
> 3. Run: cmd /c"dir".
> 
> --> This time the cmd session executes the "dir" command and then
> ends, returning control to the bash session.

Sorry, I don't want to do this.  This might work now, but it does so
by pure luck, and might break in some future version of cmd, because
there _should_ be a space between /c and the command that follows.

The solution to this is simple: don't involve MSYS in building the
native port of Emacs.  It boils down to removing MSYS from PATH in the
shell window where you run the build scripts.





  parent reply	other threads:[~2012-11-22  3:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21 20:49 bug#12955: 24.3.50; Build process on MS-Windows: sometimes needs "human intervention" Dani Moncayo
2012-11-21 22:43 ` Dani Moncayo
2012-11-22  3:41 ` Eli Zaretskii [this message]
2012-11-22  7:19   ` Dani Moncayo
2012-11-22 17:05     ` Eli Zaretskii
2012-11-22 19:16       ` Dani Moncayo
2012-11-23  8:53         ` Eli Zaretskii
2012-11-23 19:55           ` Dani Moncayo
2012-11-23 21:43             ` 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

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

  git send-email \
    --in-reply-to=83a9uauwwo.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=12955@debbugs.gnu.org \
    --cc=dmoncayo@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 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.